EasyManua.ls Logo

ARTERY AT32F403ACGU7 - User Manual

Default Icon
490 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Loading...
AT32F403A/407 Series Reference Manual
2021.12.01 Page 1 Ver 2.02
ARM
®
-based 32-bit Cortex
®
-M4F MCU+FPU with 256 to 1024 KB Flash, sLib,
USB, Ethernet, 2 CANs, 17 timers, 3 ADCs, 21 communication interfaces
Feature
Core: ARM
®
32-bit Cortex
®
-M4F CPU with FPU
240 MHz maximum frequency, with a Memory
Protection Unit (MPU), single-cycle multiplication
and hardware division
Floating Point Unit (FPU)
DSP instructions
Memories
256 to 1024 KBytes of Flash memory
sLib: configurable part of main Flash set as a library
area with code excutable but secured, non-readable
SPIM interface: extra interfacing up to 16 Mbytes of
external SPI Flash (as instruction/data memory)
Up to 96 + 128 KBytes of SRAM
External memory controller (XMC) with 2 Chip
Select, supports multiplexed SRAM/NOR/PSRAM
and NAND memories
LCD parallel interface, 8080/6800 modes
Clock, Reset, and Power management
2.6 V ~ 3.6 V application suppy and I/Os
Power on reset (POR)/ low voltage reset (LVR), and
power voltage monitor (PVM)
4 to 25 MHz crystal (HEXT)
Internal 48 MHz factory-trimmed RC (accuracy 1%
at T
A
=25 °C, 2.5 % at T
A
=-40 to +105 °C), with
automatic clock calibration (ACC)
Internal 40 kHz RC oscillator (LICK)
32.768 kHz crystal oscillator (LEXT)
Low power consumption
Sleep, Deepsleep, and Standby modes
V
BAT
supply for RTC and 42 x 16-bit battery powered
registers (BPR)
3 x 12-bit 0.5 μs A/D converters, up to 16 channels
Conversion range: 0 V to 3.6 V
Triple sample and hold capability
Temparature sensor
2 x 12-bit D/A converters
DMA: 14-channel DMA controller
Peripherals supported: timers, ADCs, SDIOs,
I
2
Ss, SPIs, I
2
Cs, and USARTs
Debug Mode
Serial wire debug (SWD) and JTAG interface
Cortex
®
-M4F Embedded Trace Macrocell (ETM
TM
)
Up to 80 Fast I/O Interfaces
37/51/80 multifunctional and bidirectional I/Os, all
mappable to 16 external interrupt vectors and almost 5
V-tolerant
All fast I/Os, control registers accessable with f
AHB
speed
Up to 17 Timers
Up to 8 x 16-bit timers + 2 x 32-bit timers; each with 4
IC/OC/PWM or pulse counter and quadrature
(incremental) encoder input.
Up to 2 x 16-bit motor control PWM advanced timers
with dead-time generator and emergency brake
2 x Watchdog timers
SysTick timer: 24-bit downcounter
2 x 16-bit basic timers to drive the DAC
Up to 21 Communication Interfaces
Up to 3 x I
2
C interfaces (SMBus/PMBus)
Up to 8 x USARTs (ISO7816 interface, LIN, IrDA
capability, and modem control)
Up to 4 x SPIs (50 Mbit/s), all with I
2
S interface
multiplexed,. I
2
S2/ I
2
S3 support full-duplex
Up to 2 x CAN interfaces (2.0B Active)
USB2.0 full-speed interface supporting Crystal-less
Up to 2 x SDIO interfaces
10/100M Ethernet MAC with dedicated DMA and
SRAM(4 KBytes): IEEE1588 hardware support, MII/RMII
available
CRC Calculation Unit
96-bit unique ID (UID)
Packages
LQFP100 14x14 mm
LQFP64 10x10 mm
LQFP48 7x7 mm
QFN48 6 x 6 mm
List of Models
Internal Flash
Model
1024 KBytes
AT32F403ACGU7, AT32F403ACGT7,
AT32F403ARGT7, AT32F403AVGT7,
AT32F407RGT7, AT32F407VGT7, AT32F407AVGT7
512 KBytes
AT32F403ACEU7, AT32F403ACET7,
AT32F403ARET7, AT32F403AVET7,
AT32F407RET7, AT32F407VET7
256 KBytes
AT32F403ACCU7, AT32F403ACCT7,
AT32F403ARCT7, AT32F403AVCT7,
AT32F407RCT7, AT32F407VCT7, AT32F407AVCT7

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the ARTERY AT32F403ACGU7 and is the answer not in the manual?

Summary

Feature

Memories

Flash memory (256-1024 KB), SRAM (96+128 KB), external memory interface, XMC controller.

Clock, Reset, and Power management

Operating voltage, POR/LVR, clock sources (HEXT, HICK, LICK), power-on reset, automatic clock calibration.

3 x 12-bit 0.5 μs A;D converters

Up to 16 channels, 0 V to 3.6 V conversion range, triple sample and hold capability.

DMA: 14-channel DMA controller

Supports peripherals like timers, ADCs, SDIOs, I2Cs, SPIs, I2Cs, and USARTs.

Up to 17 Timers

8x 16-bit timers, 2x 32-bit timers; OC/PWM/encoder input support; Motor control timers.

Up to 21 Communication Interfaces

I2C, USART/UART, SPI, CAN, USB2.0, SDIO, Ethernet MAC interfaces.

List of Models

Lists internal flash models and corresponding part numbers.

System architecture

ARM Cortex-M4 F processor

Low power, DSP, FPU support, ARMv7-M architecture, Thumb instruction set.

Interrupt and exception vectors

Table listing interrupt sources, priority, type, name, description, and address.

Memory resources

Internal memory address map

Maps program memory (Flash), data memory (SRAM), and peripheral registers to addresses.

Flash memory

Up to 1024 KB on-chip Flash, zero wait state, single cycle 32-bit read operation.

SRAM memory

Up to 96 KB SRAM, supports byte/half-word/word access, dynamic switch.

Peripheral address map

Maps peripherals to specific address boundaries across AHB and APB buses.

Power control (PWC)

Main Features

Power domains, power saving modes, voltage regulator, power voltage detector, VBAT supply.

POR;LVR

Analog POR module for power reset, VPOR and VLVR reset triggers, hysteresis.

Power voltage monitor (PVM)

Monitors power supply variations, PVMOF bit, hysteresis voltage VHYS_P, PVM interrupt.

Power saving modes

Sleep, Deepsleep, Standby modes; clock slowing and gating for power reduction.

Clock and reset manage (CRM)

Clock

Provides HEXT, HICK, PLL, LEXT, LICK clock sources; AHB/APB clock division.

Clock sources

Details HEXT, HICK, PLL, LEXT, LICK clock sources and their characteristics.

System clock

System clock selection and switching among HICK, HEXT, PLL.

Peripheral clock

Clocks for SysTick, ADCs, Timers, USB, RTC, Watchdog.

Reset

System reset sources (NRST, WDT, WWDT, software, low-power, POR, LVR).

System reset

Lists system reset sources and their effects on registers.

Flash memory controller (FLASH)

Flash memory introduction

Divides Flash memory into main, external, information block, and registers.

Flash memory operation

Details unlock/lock, erase, programming, and read operations.

User system data area operation

Covers unlock/lock, erase, and programming operations for user system data.

Flash memory protection

Discusses access protection and erase/program protection mechanisms.

General-purpose I;Os (GPIOs)

GPIO structure

Describes GPIO pin configuration for input and output modes.

General-purpose input configuration

Configuration for input modes like floating, pull-up/pull-down.

Analog input;output configuration

Configuration for analog input/output modes, disabling digital features.

General-purpose output configuration

Configuration for output modes like Push-Pull and Open-Drain.

I;O port protection

Mechanism to freeze I/O configuration using LOCK.

Multiplex function I;Os (IOMUX)

IOMUX structure

Basic structure of IOMUX, showing interaction with peripherals and GPIO controller.

MUX Input configuration

Configuration for I/O pins as multiplexed function inputs.

MUX output or bidirectional MUX configuration

Configuration for MUX outputs and bidirectional MUX, including remapping.

IOMUX map priority

Priority rules for mapping multiple peripheral functions to the same pin.

IOMUX remap register (IOMUX_REMAP)

Register for SPI1, PTP, SPI3 IO multiplexing, SWD/JTAG, MII/RMII, CAN2, EMAC, ADC2.

IOMUX external interrupt configuration register1 (IOMUX_EXINTC1)

Configures input sources for EXINT3, EXINT2, EXINT1, EXINT0.

IOMUX external interrupt configuration register2 (IOMUX_EXINTC2)

Configures input sources for EXINT7, EXINT6, EXINT5, EXINT4.

IOMUX remap register4 (IOMUX_REMAP4)

Configures IO multiplexing for TMR5, TMR4, TMR3, TMR2.

IOMUX remap register5 (IOMUX_REMAP5)

Configures IO multiplexing for SPI4, SPI3, SPI2, SPI1.

IOMUX remap register6 (IOMUX_REMAP6)

Configures IO multiplexing for UART4, USART3, USART2, USART1, SDIO2, CAN2, CAN1.

IOMUX remap register7 (IOMUX_REMAP7)

Configures XMC_NADV, XMC, PD0/PD1 mapping, SWJTAG, ADC2.

IOMUX remap register8 (IOMUX_REMAP8)

Configures EMAC IO multiplexing.

External interrupt;Event controller (EXINT)

Function overview and configuration procedure

Details EXINT lines, internal sources, and configuration steps.

Interrupt enable register (EXINT_INTEN)

Enables or disables interrupt requests on specific lines.

Event enable register (EXINT_EVTEN)

Enables or disables event requests on specific lines.

Polarity configuration register1 (EXINT_ POLCFG1)

Configures rising edge event detection for interrupt/event lines.

Polarity configuration register2 (EXINT_ POLCFG2)

Configures falling edge event detection for interrupt/event lines.

Software trigger register (EXINT_ SWTRG)

Allows software to generate trigger interrupts.

Interrupt status register (EXINT_ INTSTS)

Provides status of interrupt lines.

DMA controller (DMA)

DMA configuration

Steps to configure DMA, including peripheral/memory addresses and data count.

Programmable data transfer width

Explains PWIDTH and MWIDTH bits for data transfer width configuration.

Interrupts

Describes DMA interrupt sources (half-transfer, complete, error).

Flexible DMA request mapping

Describes programming the request source for each channel using CHx_SRC.

DMA interrupt status register (DMA_STS)

Provides status flags for DMA interrupts (transfer error, half-transfer, complete).

DMA interrupt flag clear register (DMA_CLR)

Register to clear DMA interrupt flags.

DMA channelx configuration register (DMA_CxCTRL)

Configures channel parameters like priority, direction, increment mode, circular mode.

DMA channelx number of data register (DMA_CxDTCNT)

Holds the number of data bytes to be transferred.

DMA channelx peripheral address register (DMA_CxPADDR)

Stores the base address of the peripheral data register.

DMA channelx memory address register (DMA_CxMADDR)

Stores the base address of the memory for data transfer.

Channel source register (DMA_SRC_SEL0)

Selects the source for channels CH1 to CH4.

Channel source register1 (DMA_SRC_SEL1)

Selects the source for channels CH5 to CH7 and enables flexible mapping.

CRC calculation unit (CRC)

Data register (CRC_DT)

Used for inputting data and reading CRC calculation results.

Control register (CRC_CTRL)

Controls CRC calculation unit operation and reset.

I2 C interface

I2 C main features

Lists key I2C features like modes, address modes, interrupts, DMA, SMBus, PMBus.

I2 C function overview

Explains I2C bus protocol with SDA and SCL lines, start/stop conditions.

I2 C interface

Details I2C clocking and operation modes (master/slave).

I2 C clock

Clocking mechanism for I2C, including division and frequency requirements.

Communication process

Details master and slave communication sequences.

Address control

Explains 7-bit and 10-bit addressing modes, including special slave addresses.

Clock stretching capability

Explains clock stretching feature for synchronizing slave data transfer.

I2 C slave communication flow

Step-by-step flow for I2C slave transmitter and receiver operations.

I2 C master communication flow

Step-by-step flow for I2C master transmitter and receiver operations.

I2 C interrupt requests

Lists all I2C interrupt events and their corresponding enable bits.

Control register1 (I2 C_CTRL1)

Controls I2C peripheral reset, SMBus alert, PEC, master acknowledge, stop condition, general call, etc.

Control register2 (I2 C_CTRL2)

Controls DMA transfer, data transfer interrupt, event interrupt, error interrupt, and clock frequency.

Data register (I2 C_DT)

Stores data received or to be transmitted.

Status register1 (I2 C_STS1)

Provides status flags for SMBus alert, timeout, PEC error, overload/underload, ACK fail, arbitration lost, bus error.

Status register2 (I2 C_STS2)

Provides status flags for PEC value, received address, SMBus host/device address, general call address, transmission direction, and bus status.

Clock control register (I2 C_ CLKCTRL)

Configures I2C speed mode, duty cycle, and clock speed.

Universal synchronous;asynchronous receiver;transmitter (USART)

USART main features

Lists features like full/half-duplex, programmable baud rate, frame format, interrupts, DMA, etc.

Configuration procedure

Steps for configuring operation modes like LIN, Smartcard, Infrared, Hardware flow control, Silent, Synchronous.

USART frame format and configuration

Defines USART data frame format, including start/data/stop bits, parity, and break frames.

DMA transfer introduction

Introduction to using DMA for high-speed transmission/reception.

Transmission using DMA

Steps for configuring DMA for USART data transmission.

Reception using DMA

Steps for configuring DMA for USART data reception.

Baud rate generation

Explains USART baud rate generation using internal counter and PCLK.

Transmitter

Details the USART transmitter operation and configuration.

Transmitter configuration

Steps for configuring USART transmitter, including enable, duplex mode, mode, frame format, interrupts, DMA, baud rate.

Receiver

Details the USART receiver operation and configuration.

Receiver configuration

Steps for configuring USART receiver, including enable, duplex mode, mode, frame format, interrupts, DMA, baud rate.

Start bit and noise detection

How start bits and noise are detected using oversampling techniques.

USART interrupt generator

Control center for USART interrupts, mapping interrupt sources to enable bits.

Status register (USART_STS)

Provides status flags for CTS, break frame, transmit buffer, idle line, parity error, noise error, framing error.

Data register (USART_DT)

Holds the data value for read and write operations.

Baud rate register (USART_BAUDR)

Defines the USART divider for baud rate generation.

Control register1 (USART_CTRL1)

Controls USART enable, data bits, wakeup mode, parity, parity selection, interrupts.

Control register2 (USART_CTRL2)

Controls LIN mode, stop bits, clock enable, clock polarity, clock phase, last bit clock pulse, break frame.

Control register3 (USART_CTRL3)

Controls CTS, RTS, DMA, Smartcard, and NACK enable.

Serial peripheral interface (SPI)

SPI description

Details SPI modes, DMA transfer, CRC, frequency, clock polarity/phase.

Full-duplex;half-duplex selector

Selects between full-duplex and half-duplex modes for SPI communication.

Single-wire bidirectional half-duplex mode

Shows IO connection and operation for single-wire bidirectional half-duplex mode.

SPI control register1 (SPI_CTRL1)

Controls single-line modes, CRC calculation, frame bit number, active modes, and CS enable.

SPI control register2 (SPI_CTRL2)

Controls master clock frequency division, transmit/receive interrupts, and error interrupts.

SPI status register (SPI_STS)

Provides status flags for busy, overflow, mode errors, CRC errors, underload, audio channel state, and transmit/receive buffer status.

SPI data register (SPI_DT)

Holds data for read and write operations.

SPI_I2 S register (SPI_I2 SCTRL)

Selects I2S mode, enables I2S, configures operation mode, PCM format, data bits, channel bits.

Timer

Basic timer (TMR6 and TMR7)

Introduction and main features of basic timers, including clock source and upcounter.

TMR6 and TMR7 main features

Lists features like internal clock, 16-bit counter, DAC trigger synchronization, interrupts.

TMR6 and TMR7 function overview

Details count clock, counting modes, and debug mode.

General-purpose timer (TMR2 to TMR5)

Introduction and main features of general-purpose timers.

TMRx main features

Lists main features for TMR9/12 and TMR10/11/13/14.

TMRx functional overview

Details count clock, counting modes, TMR input function, TMR output function.

Advanced-control timers (TMR1 and TMR8)

Introduction to TMR1 and TMR8 as advanced-control timers with capture/compare.

Count clock

Describes count clock sources for TMR1/TMR8 (internal, external, internal trigger).

Internal clock (CK_INT)

How CK_INT is divided by prescaler for counter clock.

External clock (TRGIN;EXT)

How TRGIN and EXT signals provide counter clock for TMR1/TMR8.

Internal trigger input (ISx)

Timer synchronization using TRGOUT signal and STIS selection.

Counting mode

Explains upcounting, downcounting, up/down counting, repetition counter, and encoder interface modes.

Window watchdog timer (WWDT)

Watchdog timer (WDT)

Real-time clock (RTC)

Battery powered registers (BPR)

Analog-to-digital converter (ADC)

Digital-to-analog converter (DAC)

CAN

Function overview

Overview of CAN controller functionality: filtering, FIFOs, mailboxes, standard/extended identifiers.

External memory controller

Operation mode

Describes pin signals for NAND Flash and access address.

SDIO interface

Universal serial bus full-seed device interface (USBFS)

HICK auto clock calibration (ACC)

Main features

Lists features: programmable center/boundary frequency, precision, status flags, interrupt sources, calibration modes.

Ethernet media access control (EMAC)

Debug (DEBUG)

ARTERY AT32F403ACGU7 Specifications

General IconGeneral
Microcontroller CoreARM Cortex-M4
Flash Memory256 KB
Max Clock/CPU Frequency120 MHz
Mounting TypeSurface Mount
GPIO Pins37
ADC Channels16
ADC Resolution12 bit
DAC Channels2
DAC Resolution12 bit
Operating Voltage2.6V to 3.6V
Communication InterfacesI2C, SPI, USART
Operating Temperature-40°C to +85°C

Related product manuals