MAX32520
MAX32520
MAX32520
120MHz
ARM® CORTEX® -M4
Tx/Rx
FIFO
1 × I2C MASTER/SLAVE
WITH FPU
7.3728MHz 120MHz SHARED PAD
FUNCTIONS
8kHz NVIC
TIMERS/PWM
Tx/Rx
FIFO
1 × 2-WIRE UART
CAPTURE/
MEMORY COMPARE
POWER-ON RESET,
BROWNOUT MONITOR, SPI GPIO/
RSTN FLASH 1 x SPI MASTER/SLAVE ALTERNATE
Tx/Rx
FIFO
SUPPLY VOLTAGE I 2C
2MB (4 CS) FUNCTION
MONITORS UART
DUAL BANK UP TO 27
MULTI-LAYER BUS MATRIX – AHB/APB JTAG
CACHE
VDD 1 x SPI/QSPI MASTER/
MEMORY Tx/Rx SLAVE (2 CS) EXTERNAL
DECRYPTION UNIT FIFO INTERRUPTS
REG SINGLE OUTPUT SERIAL FLASH
VOLTAGE EMULATION
CACHE 16KB EXTERNAL
REGULATION
VSSA TAMPER
&
POWER CONTROL 4 × 32-BIT TIMERS
SRAM
VDDA
170KB (SEC-DED)
TABLE OF CONTENTS
General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Benefits and Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Simplified Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
32 TQFN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
30 WLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Electrical Characteristics—SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Electrical Characteristics—I2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
32 TQFN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
30 WLP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Arm Cortex-M4 with FPU Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Internal Flash Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Internal SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Internal ROM and Boot Loader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Clocking Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
ChipDNA Physically Unclonable Function (PUF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
True Random Number Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Serial Flash Emulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Cryptographic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
AES Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
ECDSA Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
SHA Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
RSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
I2C Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Debug and Development Interface (SWD/JTAG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Interrupt Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Standard DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
LIST OF FIGURES
Figure 1. SPI Master Mode Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 2. SPI Slave Mode Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 3. I2C Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 4. Timer Block Diagram, 32-Bit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
LIST OF TABLES
Table 1. Wake-Up Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the
device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for
extended periods may affect device reliability.
Package Information
32 TQFN
Package Code T3255+8C
Outline Number 21-0140
Land Pattern Number 90-0013
Thermal Resistance, Single-Layer Board:
Junction to Ambient (θJA) 47°C/W
Junction to Case (θJC) 1.70°C/W
Thermal Resistance, Four-Layer Board:
Junction to Ambient (θJA) 29°C/W
Junction to Case (θJC) 1.70°C/W
30 WLP
Package Code W302N2+1
Outline Number 21-100380
Land Pattern Number Refer to Application Note 1891
Thermal Resistance, Four-Layer Board:
Junction to Ambient (θJA) 49.38°C/W
Junction to Case (θJC) N/A
For the latest package outline information and land patterns (footprints), go to www.maximintegrated.com/packages. Note that a “+”, “#”, or “-” in the package code indicates
RoHS status only. Package drawings may show a different suffix character, but the drawing pertains to the package regardless of RoHS status.
Package thermal resistances were obtained using the method described in JEDEC specification JESD51-7, using a four-layer board. For detailed information on package thermal
considerations, refer to www.maximintegrated.com/thermal-tutorial.
Electrical Characteristics
(Limits are 100% tested at TA = +25°C and TA = +105°C. Limits over the operating temperature range and relevant supply voltage
range are guaranteed by design and characterization. Specifications marked GBD are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
POWER SUPPLIES
Input Supply Voltage,
VDD 1.71 1.8 3.6 V
Digital
Input Supply Voltage,
VDDA 1.71 1.8 3.6 V
Analog
Electrical Characteristics—SPI
(Timing specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
MASTER MODE
SPI Master Operating fSYS_CLK = 120MHz, fMCK(MAX) =
fMCK 60 MHz
Frequency fSYS_CLK/2
SPI Master SCK Period tMCK 1/fMCK ns
SCK Output Pulse-
tMCH, tMCL tMCK/2 ns
Width High/Low
MOSI Output Hold Time
tMOH tMCK/2 ns
After SCK Sample Edge
MOSI Output Valid to
tMOV tMCK/2 ns
Sample Edge
MOSI Output Hold Time
tMLH tMCK/2 ns
After SCK Low Idle
MISO Input Valid to
SCK Sample Edge tMIS 5 ns
Setup
MISO Input to SCK
tMIH tMCK/2 ns
Sample Edge Hold
SLAVE MODE
SPI Slave Operating
fSCK 50 MHz
Frequency
SPI Slave SCK Period tSCK 1/fSCK ns
SCK Input Pulse-Width
tSCH, tSCL tSCK/2
High/Low
Electrical Characteristics—I2C
(TIming specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
STANDARD MODE
Standard mode, from VIH(MIN) to
Output Fall Time tOF 150 ns
VIL(MAX)
SCL Clock Frequency fSCL 0 100 kHz
Low Period SCL Clock tLOW 4.7 μs
High Time SCL Clock tHIGH 4.0 μs
Setup Time for
Repeated Start tSU;STA 4.7 μs
Condition
Hold Time for Repeated
tHD;STA 4.0 μs
Start Condition
Data Setup Time tSU;DAT 300 ns
Data Hold Time tHD;DAT 10 ns
Rise Time for SDA and
tR 800 ns
SCL
Fall Time for SDA and
tF 200 ns
SCL
Setup Time for a Stop
tSU;STO 4.0 μs
Condition
Bus Free Time Between
a Stop and Start tBUS 4.7 μs
Condition
Data Valid Time tVD;DAT 3.45 μs
tMIS tMIH
MISO/SDIOx
(INPUT) MSB MSB-1 LSB
tSIS tSIH
MOSI/SDIOx
(INPUT) MSB MSB-1 LSB
tSOV tSLH
MISO/SDIOx MSB MSB-1 LSB
(OUTPUT)
SDA
tOF tR
tSU;STO
tSP
tSU;DAT tSU;STA tHIGH
SCL
tHD;STA
tHD;DAT
tLOW
tVD;ACK
tVD;DAT
Pin Configuration
32 TQFN
TOP VIEW
P1.7
P1.6
P1.5
P1.4
P1.3
P1.2
P1.1
P1.0
24 23 22 21 20 19 18 17
RSTN 25 16 P0.15
P1.8 26 15 P0.14
VDD 27 14 P0.13
REG 28 13 P0.12
MAX32520
VSSA 29 12 P0.11
VDDA 30 11 P0.10
1 2 3 4 5 6 7 8
*EP =
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
EXPOSED
PAD
5mm x 5mm
Pin Description
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
UART
P0.0: GPIO0 Port 0
1 P0.0 P0.0 UART_RXD —
UART_RXD: UART Data Input
P0.1: GPIO1 Port 0
2 P0.1 P0.1 UART_TXD —
UART_TXD: UART Data Output
SPI
P0.2: GPIO2 Port 0
SPI0_DIO0: Quad SPI I/O 0 (SPI0 Master Out
SPI0_DIO0 SFSPIS_DIO0
3 P0.2 P0.2 Slave In)
(MOSI0) (SFSI)
SFSPIS_DIO0: Serial Flash SPI Slave I/O 0
(SFSPI Slave In)
P0.3: GPIO3 Port 0
SPI0_DIO1: Quad SPI I/O 1 (SPI0 Master In
SPI0_DIO1 SFSPIS_DIO1
4 P0.3 P0.3 Slave Out)
(MISO0) (SFSO)
SFSPIS_DIO1: Serial Flash SPI I/O 1 (SFSPI
Slave Out)
P0.4: GPIO4 Port 0
5 P0.4 P0.4 SCK0 SFSPIS_SCK SCK0: SPI0 Clock
SFSPIS_SCK: Serial Flash SPI Clock
P0.5: GPIO5 Port 0
6 P0.5 P0.5 SSEL0_0 SFSPIS_SS0 SSEL0_0: SPI0 Slave Select 0
SFSPIS_SS0: Serial Flash SPI Slave Select 0
32 TQFN
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
P0.6: GPIO6 Port 0
7 P0.6 P0.6 SSEL0_1 SFSPIS_SS1 SSEL0_1: SPI0 Slave Select 1
SFSPIS_SS1: Serial Flash SPI Slave Select 1
P0.7: GPIO7 Port 0
8 P0.7 P0.7 SPI0_DIO2 SFSPIS_DIO2 SPI0_DIO2: Quad SPI I/O 2
SFSPIS_DIO2: Serial Flash SPI I/O 2
P0.8: GPIO8 Port 0
9 P0.8 P0.8 SPI0_DIO3 SFSPIS_DIO3 SPI0_DIO3: Quad SPI I/O3
SFSPIS_DIO3: Serial Flash SPI I/O 3
P0.11: GPIO11 Port 0
12 P0.11 P0.11 MISO1 —
MISO1: SPI1 Master In Slave Out
P0.12: GPIO12 Port 0
13 P0.12 P0.12 MOSI1 —
MOSI1: SPI1 Master Out Slave In
P0.13: GPIO13 Port 0
14 P0.13 P0.13 SCK1 —
SCK1: SPI1 Clock
P0.14: GPIO14 Port 0
15 P0.14 P0.14 SSEL1_0 —
SSEL1_0: SPI1 Slave Select 0
P0.15: GPIO15 Port 0
16 P0.15 P0.15 SSEL1_1 —
SSEL1_1: SPI1 Slave Select 1
I²C
P0.9: GPIO9 Port 0
10 P0.9 P0.9 SDA —
SDA: I2C Data
P0.10: GPIO10 Port 0
11 P0.10 P0.10 SCL —
SCL: I2C Clock
TIMER
P1.0: GPIO0 Port 1
17 P1.0 P1.0 TCLK0 —
TCLK0: Timer 0 Clock I/O
P1.1: GPIO1 Port 1
18 P1.1 P1.1 TCLK1 —
TCLK1: Timer 1 Clock I/O
P1.6: GPIO6 Port 1
23 P1.6 P1.6 TCLK2 SSEL1_2 TCLK2: Timer 2 Clock I/O
SSEL1_2: SPI1 Slave Select 2
P1.7: GPIO7 Port 1
24 P1.7 P1.7 TCLK3 SSEL1_3 TCLK3: Timer 3 Clock I/O
SSEL1_3: SPI1 Slave Select 3
JTAG
P1.2: GPIO2 Port 1
19 P1.2 P1.2 TDI —
TDI: JTAG Test Data Input
P1.3: GPIO3 Port 1
20 P1.3 P1.3 TDO —
TDO: JTAG Test Data Output
P1.4: GPIO4 Port 1
21 P1.4 P1.4 TMS/SWDIO — TMS/SWDIO: JTAG Mode Select / Single Wire
Debug I/O
32 TQFN
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
P1.5: GPIO5 Port 1
22 P1.5 P1.5 TCK/SWCLK — TCK/SWCLK: JTAG Test Clock / Single Wire
Debug Clock
EXTERNAL TAMPER
EXT_SENS_OU P1.8: GPIO8 Port 1
26 P1.8 P1.8 —
T EXT_SENS_OUT: External Sensor Output
P1.9: GPIO9 Port 1
31 P1.9 P1.9 EXT_SENS_IN —
EXT_SENS_IN: External Sensor Input
P1.10: GPIO10 Port 1
TAMPER_OUT: External Tamper Detection
32 P1.10 P1.10 TAMPER_OUT —
Output. This pin is active when external tamper
is detected.
POWER AND SYSTEM
VDD: Core and I/O supply voltage. Bypass VDD
27 VDD VDD — — with 1μf and 100nF capacitors with ESR
<100mΩ
REG: Regulator Capacitor. Bypass REG with
28 REG REG — —
1μf and 100nF capacitors with ESR < 100mΩ
29 VSSA VSSA — — VSSA: 1.8V Analog Ground
VDDA: 1.8V Analog Power Supply. Bypass
30 VDDA VDDA — — VDDA with 1μf and 100nF capacitors with ESR <
100mΩ
— EP VSS — — Exposed Pad. Ground.
RSTN: Hardware Reset (Active-Low) Input. The
device remains in reset while this pin is in its
active state. When the pin transitions to its
inactive state, the device performs a warm reset
25 RSTN RSTN — — (resetting all logic) and begins execution. This
pin has an internal pullup to the VDD supply.
This pin should be left unconnected if the
system design does not provide a reset signal to
the device.
Pin Configuration
30 WLP
TOP VIEW
(BUMP SIDE DOWN)
1 2 3 4 5 6
+
VSS P0.9 P0.11 P0.12 P0.15 P1.0
A
2.6mm x 2.6mm
Pin Description
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
UART
P0.0: GPIO0 Port 0
E1 P0.0 P0.0 UART_RXD —
UART_RXD: UART Data Input
P0.1: GPIO1 Port 0
D1 P0.1 P0.1 UART_TXD —
UART_TXD: UART Data Output
SPI
P0.2: GPIO2 Port 0
SPI0_DIO0: Quad SPI I/O 0 (SPI0 Master Out
SPI0_DIO0 SFSPIS_DIO0
D3 P0.2 P0.2 Slave In)
(MOSI0) (SFSI)
SFSPIS_DIO0: Serial Flash SPI Slave I/O 0
(SFSPI Slave In)
P0.3: GPIO3 Port 0
SPI0_DIO1: Quad SPI I/O 1 (SPI0 Master In
SPI0_DIO1 SFSPIS_DIO1
D4 P0.3 P0.3 Slave Out)
(MISO0) (SFSO)
SFSPIS_DIO1: Serial Flash SPI I/O 1 (SFSPI
Slave Out)
P0.4: GPIO4 Port 0
C1 P0.4 P0.4 SCK0 SFSPIS_SCK SCK0: SPI0 Clock
SFSPIS_SCK: Serial SPI Clock
30 WLP
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
P0.5: GPIO5 Port 0
C2 P0.5 P0.5 SSEL0_0 SFSPIS_SS0 SSEL0_0: SPI0 Slave Select 0
SFSPIS_SS0: Serial Flash SPI Slave Select 0
P0.6: GPIO6 Port 0
B1 P0.6 P0.6 SSEL0_1 SFSPIS_SS1 SSEL0_1: SPI0 Slave Select 1
SFSPIS_SS1: Serial Flash SPI Slave Select 1
P0.7: GPIO7 Port 0
C3 P0.7 P0.7 SPI0_DIO2 SFSPIS_DIO2 SPI0_DIO2: Quad SPI I/O 2
SFSPIS_DIO2: Serial Flash SPI I/O 2
P0.8: GPIO8 Port 0
B2 P0.8 P0.8 SPI0_DIO3 SFSPIS_DIO3 SPI0_DIO3: Quad SPI I/O3
SFSPIS_DIO3: Serial Flash SPI I/O 3
P0.11: GPIO11 Port 0
A3 P0.11 P0.11 MISO1 —
MISO1: SPI1 Master In Slave Out
P0.12: GPIO12 Port 0
A4 P0.12 P0.12 MOSI1 —
MOSI1: SPI1 Master Out Slave In
P0.13: GPIO13 Port 0
C4 P0.13 P0.13 SCK1 —
SCK1: SPI1 Clock
P0.14: GPIO14 Port 0
B4 P0.14 P0.14 SSEL1_0 —
SSEL1_0: SPI1 Slave Select 0
P0.15: GPIO15 Port 0
A5 P0.15 P0.15 SSEL1_1 —
SSEL1_1: SPI1 Slave Select 1
I²C
P0.9: GPIO9 Port 0
A2 P0.9 P0.9 SDA —
SDA: I2C Data
P0.10: GPIO10 Port 0
B3 P0.10 P0.10 SCL —
SCL: I2C Clock
TIMER
P1.0: GPIO0 Port1
A6 P1.0 P1.0 TCLK0 —
TCLK0: Timer 0 Clock I/O
P1.1: GPIO1 Port1
B5 P1.1 P1.1 TCLK1 —
TCLK1: Timer 1 Clock I/O
JTAG
P1.2: GPIO2 Port 1
B6 P1.2 P1.2 TDI —
TDI: JTAG Test Data Input
P1.3: GPIO3 Port 1
C6 P1.3 P1.3 TDO —
TDO: JTAG Test Data Output
P1.4: GPIO4 Port 1
C5 P1.4 P1.4 TMS/SWDIO — TMS/SWDIO: JTAG Mode Select / Single Wire
Debug I/O
P1.5: GPIO5 Port 1
D5 P1.5 P1.5 TCK/SWCLK — TCK/SWCLK: JTAG Test Clock / Single Wire
Debug Clock
30 WLP
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
POWER AND SYSTEM
VDD: Core and I/O Supply Voltage. Bypass VDD
D6 VDD VDD — — with 1μf and 100nF capacitors with ESR <
100mΩ.
REG: Regulator Capacitor. Bypass REG with
E5 REG REG — —
1μf and 100nF capacitors with ESR < 100mΩ.
E3 VSSA VSSA — — VSSA: 1.8V Analog Ground
VDDA: 1.8V Analog Power Supply. Bypass
E2 VDDA VDDA — — VDDA with 1μf and 100nF capacitors with ESR <
100mΩ.
E4, A1 VSS VSS — — Ground
RSTN: Hardware Reset (Active-Low) Input. The
device remains in reset while this pin is in its
active state. When the pin transitions to its
inactive state, the device performs a warm reset
E6 RSTN RSTN — — (resetting all logic) and begins execution. This
pin has an internal pullup to the VDD supply.
This pin should be left unconnected if the
system design does not provide a reset signal to
the device.
P1.10: GPIO10 Port 1
TAMPER_OUT: External Tamper Detection
D2 P1.10 P1.10 TAMPER_OUT —
Output. This pin is active when external tamper
is detected.
Detailed Description
DeepCover embedded security solutions cloak sensitive data under multiple layers of advanced physical security
to provide the most secure key storage possible. The DeepCover secure microcontroller MAX32520 provides an
interoperable, secure, and cost-effective solution to build new generations of trusted embedded systems and
communication devices such as wireless access points. The MAX32520 incorporates Maxim's patented ChipDNA™ PUF
technology. ChipDNA technology involves a physically unclonable function (PUF) that enables cost-effective protection
against invasive physical attacks. Using the random variation of semiconductor device characteristics that naturally occur
during wafer fabrication, the ChipDNA circuit generates a unique output value that is repeatable over time, temperature,
and operating voltage. Attempts to probe or observe ChipDNA operation modifies the underlying circuit characteristics to
prevent the discovery of the unique value used by the chip cryptographic functions. The MAX32520 utilizes the ChipDNA
output as key content to cryptographically secure all device stored data and optionally, under user control, as the private
key for the ECDSA signing operation. The MAX32520 integrates an Arm Cortex-M4 processor, 2MB of flash, 136KB of
system RAM + 34KB ECC, 8KB of one-time-programmable (OTP) memory and 128KB of boot ROM.
In addition to hardware crypto functions, the MAX32520 provides a FIPS/NIST-compliant true random number generator,
as well as environmental and tamper detection circuitry to facilitate system-level security for the application.
The MAX32520 microcontroller includes multiple communication interfaces: two SPI ports, one UART, and an I2C bus.
The four on-chip timers also support PWM output generation for direct control of external devices. One of the SPI ports
has a serial flash emulation mode to allow direct code fetching and thus enable a secure boot for a host microcontroller.
Memory
IP protection.
A dedicated state machine enables direct access to the flash block. Thanks to this state machine the MAX32520 can
emulate a serial flash and the content of the flash is directly accessible from a host CPU. The typical application is the
support of the secure boot function for a host processor.
Internal SRAM
The internal 170KB SRAM provides low-power retention of application information in all power modes except shutdown.
The SRAM can be configured as 136KB + 34KB ECC SEC-DED.
The internal SRAM can be divided into granular banks that create a flexible SRAM retention architecture. This data
retention feature is optional and configurable. This granularity allows the application to minimize its power consumption
by only retaining the most essential data.
Clocking Scheme
The high-frequency internal oscillator operates at a nominal frequency of 120MHz. It is the primary clock source for the
digital logic and peripherals. Select a 7.3728MHz internal oscillator to optimize active power consumption. A nanopower
8kHz ring oscillator is also available. Wakeup is possible from either the 7.3728MHz internal oscillator or the 120MHz
internal oscillator.
Cryptographic Functions
AES Engine
The dedicated hardware-based AES engine supports the following algorithms:
● AES-128
● AES-192
● AES-256
ECDSA Engine
The ECDSA engine enables ECDSA signature and verification for following key lengths:
● 256 bits
● 384 bits
● 521 bits
Brainpool and NIST curves are supported.
SHA Engine
The SHA engine supports following SHA algorithms:
● SHA-1
● SHA-256
● SHA-384
● SHA-512
RSA
A crypto API enables RSA computation with key lengths up to 4096 bits.
UART
The universal asynchronous receiver-transmitter (UART) interface supports full-duplex asynchronous communication,
including:
● 16-byte send/receive FIFO
● Full-duplex operation for asynchronous data transfers
● Interrupts available for frame error, parity error, Rx FIFO overrun, and FIFO full/partially full conditions
● Automatic parity and frame error detection
● Independent baud-rate generator
● Programmable 9th bit parity support
● Multidrop support
● Start/stop bit support
● Baud Rate Generation with ±2%
● Maximum baud rate 1843.2kB
● Two DMA channels can be connected (read and write FIFOs)
● Programmable word size (5 bits to 8 bits)
Note: No hardware flow control using RTS/CTS.
I2C Interface
The I2C interface is a bidirectional, two-wire serial bus that provides a medium-speed communications network. It can
operate as a one-to-one, one-to-many or many-to-many communications medium. The I2C master/slave interface to a
wide variety of I2C-compatible peripherals. This engine support both standard mode and fast mode I2C standards. It
provides the following features:
● Master or slave mode operation
● Supports standard (7-bit) addressing or 10-bit addressing
● Support for clock stretching to allow slower slave devices to operate on higher speed busses
● Multiple transfer rates
• Standard mode: 100kbps
• Fast mode: 400kbps
• Fast mode plus: 1000kbps
● Internal filter to reject noise spikes
● Receiver FIFO depth of 16 bytes
● Transmitter FIFO depth of 16 bytes
SPI
The serial peripheral interface (SPI) is a synchronous interface allowing multiple SPI-compatible devices to be
interconnected.
The provided SPI supports the following features:
● Full-duplex, synchronous communication of 8-/16-bit characters
● 4-wire interface plus
• 1 additional slave select (SPI0)
• 3 additional slave selects (SPI1)
● Master and slave mode of operation
● Master mode data transfer rate of up to one-fourth of the APB clock frequency
● Slave mode data transfer rate of up to one-eighth of the APB clock frequency
● Dedicated baud rate generator
● 8 x 16 transmit and receive FIFOs
● Transmit and receive DMA support
The MAX32520 has two SPI ports SPI0 and SPI1.
Interrupt Sources
The Arm nested vector interrupt controller (NVIC) provides a high-speed, deterministic interrupt response, interrupt
masking, and multiple interrupt sources. Each peripheral is connected to the NVIC and can have multiple interrupt flags
to indicate the specific source of the interrupt within the peripheral.
Programmable Timers
Four 32-bit timers provide timing, capture/compare, or generation of pulse-width modulated (PWM) signals.
● 32-bit up/down autoreload
● Programmable 16-bit prescaler
● PWM output generation
● Capture, compare, and capture/compare capability
● GPIOs can be assigned as external timer inputs, clock gating or capture, limited to an input frequency of 1/4 of the
peripheral clock frequency
● Timer output pin
● Timer interrupt
32-BIT COMPARE
REGISTER
TIMER
COMPARE
APB INTERRUPT
CLOCK INTERRUPT
32-BIT TIMER PWM AND TIMER
(WITH PRESCALER) OUTPUT
CONTROL
COMPARE TIMER
32-BIT OUTPUT
PWM/COMPARE
TIMER
INPUT
Watchdog Timer
A watchdog timer (WDT) is provided. The watchdog uses a 32-bit timer with prescaler to generate the watchdog reset.
When enabled, the watchdog timer must be written prior to timeout. Failure to write the watchdog timer prior to the pre-
programmed interval time results in a watchdog timeout. The WDT1 is set on reset if a watchdog expiration caused the
system reset. The clock source for the watchdog timer is the system clock.
Power Management
Active Mode
In this mode, the CPU is executing application code and all digital and analog peripherals are available on-demand.
Dynamic clocking disables peripherals not in use, providing the optimal mix of high-performance and low-power
consumption.
Sleep Mode
This mode consumes less power, but wakes faster because the clocks can optionally be enabled.
The device status is as follows:
● The CPU is asleep
● Peripherals are on
● Standard DMA blocks are available for optional use.
DeepSleep Mode
This mode corresponds to the Arm Cortex-M4 DeepSleep mode. In this mode, CPU and critical peripheral configuration
settings and all volatile memory is preserved.
The device status is as follows:
● The CPU is off.
● The GPIO pins retain their state.
● The transition from DeepSleep to Active mode is faster than the transition from Backup mode because system
initialization is not required.
● The system oscillators are all disabled to provide additional power savings over Sleep mode.
• 120MHz high-speed oscillator
• 7.3728MHz oscillator
Backup Mode
This mode places the CPU in a static, low-power state that supports a fast wake-up to Active mode feature.
The device status is as follows:
● CPU is off.
● Only 72KB, 64KB, 32KB, or 8KB of the SRAM can be retained.
Wake-Up Sources
The sources of wake-up from the Sleep, DeepSleep, and Backup operating modes can be summarized in Table 1.
Security Monitor
Internal Sensor
The behavior of the system is constantly monitored by a range of internal sensors. The internal sensors include
environmental sensors such as die shield sensor, fault detection sensors and temperature sensor. Furthermore, there
are core sensors monitoring internal core voltage on all rails.
Secure Serial Boot/External Code Flash with JEDEC Flash Command Support
1.8V 1.8V
MAX32520
NONSECURE HOST MCU
SPI_D0 SFSPIS_DIO0
SPI_D1 SFSPIS_DIO1 UP TO
SPI_D2 SFSPIS_DIO2 MAXIMUM
SPI_D3 SFSPIS_DIO3 FLASH SIZE
SERIAL FLASH
SPI_SCK SFSPIS_SCK SPI EMULATION
SPI_CS SFSPIS_SS0
GPIO RSTN
VSS VSSA
SI
VSS VSSA SO BLUETOOTH
SCK LOW ENERGY
CS
Ordering Information
PART DEBUG INTERFACE PIN-PACKAGE
MAX32520-BNJ+ Yes 32 TQFN
MAX32520-BNS+ No 32 TQFN
MAX32520-BNS+T No 32 TQFN
MAX32520/W+JU* Yes 30 WLP
MAX32520/W+U* No 30 WLP
MAX32520/W+T* No 30 WLP
+Denotes a lead(Pb)-free/RoHS-compliant package.
T = Tape and reel. Full reel.
*Future product—contact factory for availability.
Revision History
REVISION REVISION PAGES
DESCRIPTION
NUMBER DATE CHANGED
0 6/19 Initial release —
For pricing, delivery, and ordering information, please visit Maxim Integrated’s online storefront at https://www.maximintegrated.com/en/storefront/storefront.html.
Maxim Integrated cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim Integrated product. No circuit patent
licenses are implied. Maxim Integrated reserves the right to change the circuitry and specifications without notice at any time. The parametric values (min and max
limits) shown in the Electrical Characteristics table are guaranteed. Other parametric values quoted in this data sheet are provided for guidance.
Maxim Integrated and the Maxim Integrated logo are trademarks of Maxim Integrated Products, Inc. © 2019 Maxim Integrated Products, Inc.