Max 78002
Max 78002
Ordering Information appears at the end of the data sheet. 19-101571; Rev 0; 6/22
© 2022 Analog Devices, Inc. All rights reserved. Trademarks and registered trademarks are the property of their respective owners.
One Analog Way, Wilmington, MA 01887 U.S.A. | Tel: 781.329.4700 | © 2022 Analog Devices, Inc. All rights reserved.
MAX78002 Artificial Intelligence Microcontroller with
Low-Power Convolutional Neural Network
Accelerator
Simplified Block Diagram
MAX78002
200MHz (IPLL_CNN)
HFXOUT
25MHz (ERFO) VCNN0
HFXIN
100MHz (IPLL) Arm Cortex-M4 WITH
FPU VCNN0RAM
120MHz (IPO)
120MHz (CM4)
7.3728MHz (IBRO)
VCNN1
32.768kHz (ERTCO) ÷2 NVIC
8kHz (INRO)
VCNN1RAM
EXTERNAL CLOCK CONVOLUTIONAL NEURAL NETWORK
2M WEIGHT AI ACCELERATOR
60MHz (ISO) 32-BIT RISC-V (RV32)
VCNN2
32KIN RTC WITH
VCNN2RAM
32KOUT WAKEUP TIMER
MEMORY
VCNN3
POWER-ON RESET, BROWNOUT FLASH 2.5MB
RSTN MONITOR, SUPPLY VOLTAGE
MONITORS SRAM 384KB VCNN3RAM
Tx/Rx
FIFO
VDDA
32KB eMMC 4.51 HOST
VSSPWR
VSS SRAM2 GPIO/
I2S CONTROLLER/
Tx/Rx
VSSA FIFO ALTERNATE
MULTILAYER BUS MATRIX – AHB/APB
64KB TARGET
LXA FUNCTION
SHARED PAD
LXB SRAM3 UP TO 60
3 × HIGH-SPEED I2C FUNCTIONS
Tx/Rx
FIFO
VBST 64KB
CONTROLLER
VREGO_A SRAM4 TIMERS/PWM
SIMO VOLTAGE REGULATION,
VREGO_B 64KB CAPTURE/
DYNAMIC VOLTAGE SCALING,
Tx/Rx
FIFO
DP 4 8
DM
USB 2.0 HI-SPEED 8
PHY
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
144 CSBGA
Package Code X14422+2C
Outline Number 21-0163
Land Pattern Number 90-0185
Thermal Resistance, Four-Layer Board:
Junction to Ambient (θJA) 25.4°C/W
Junction to Case (θJC) 5.6°C/W
For the latest package outline information and land patterns (footprints), go to [Link]/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 [Link]/
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.
Specifications to the minimum operating temperature are guaranteed by design and are not production tested. GPIO are only tested at
TA = +105°C.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
POWER SUPPLIES
VREGI, VBAT, and VDDIOH must be
Input Supply Voltage,
VBAT connected together at the circuit-board 2.85 3.3 3.6 V
Battery
level.
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
Data Valid Acknowledge
tVD;ACK 3.45 μs
Time
Electrical Characteristics—SD/SDIO/SDHC/MMC
(TIming specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
Clock Frequency in Data
fSDHC_CLK 0 fPCLK MHz
Transfer Mode
1/fSDHC
Clock Period tCLK ns
_CLK
Clock Low Time tWCL 7 ns
Clock High Time tWCH 7 ns
Input Setup Time tISU 5 ns
Input Hold Time tIHLD 1 ns
Output Valid Time tOVLD 5 ns
Output Hold Time tOHLD 6 ns
Electrical Characteristics—SPI
(Timing specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
CONTROLLER MODE
SPI Controller Operating fSYS_CLK = 120MHz,
fMCK0 60 MHz
Frequency for SPI0 fMCK0(MAX) = fSYS_CLK/2
SPI Controller Operating fSYS_CLK = 120MHz,
fMCK1 30 MHz
Frequency for SPI1 fMCK1(MAX) = fSYS_CLK/4
SPI Controller SCK
tMCKX 1/fMCKX ns
Period
SCK Output Pulse-
tMCH, tMCL tMCKX/2 ns
Width High/Low
MOSI Output Hold Time
tMOH tMCKX/2 ns
After SCK Sample Edge
MOSI Output Valid to
tMOV tMCKX/2 ns
Sample Edge
MOSI Output Hold Time
tMLH tMCKX/2 ns
After SCK Low Idle
Electrical Characteristics—I2S
(Timing specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
TARGET
Bit Clock Frequency fBCLKS 25 MHz
Bit Clock Period tBCLKS 1/fBCLKS μs
1
BCLK High Time tWBCLKHS 0.5 × μs
fBCLKS
1
BCLK Low Time tWBCLKLS 0.5 × μs
fBCLKS
1
BCLK Low Time tWBCLKLM 0.5 × μs
fBCLKM
Electrical Characteristics—PCIF
(Timing specifications are guaranteed by design and not production tested.)
PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS
PCIF
PCIF Operating
fCLK 10 MHz
Frequency
PCIF Clock Period tCLK 1/fCLK ns
PCIF_PCLK Output
tWCH, tWCL tCLK/2 ns
Pulse-Width High/Low
PCIF_VSYNC,
PCIF_HSYNC Setup tSSU 5 ns
Time
PCIF_VSYNC,
PCIF_HSYNC Hold tSHLD 5 ns
Time
PCIF_D0-PCIF_D11
tDSU 5 ns
Setup TIme
PCIF_D0-PCIF_D11
tDHLD 5 ns
Hold Time
SDA
tOF tR
tSU;STO
tSP
tSU;DAT tSU;STA tHIGH
SCL
tHD;STA
tHD;DAT
tLOW
tVD;ACK
tVD;DAT
tCLK
tWCH tWCL
SDHC_CLK
tOVLD
tOHLD
SDHC_DATx,
SDHC_CMD NOT NOT
(OUTPUT) VALID VALID
tIHLD
tISU
SDHC_DATx,
SDHC_CMD NOT NOT
(INPUT) VALID VALID
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)
tBCLKS
tWBCLKHS tWBCLKLS
BCLK
tLRCLK_BCLKS
LRCLK
tBCLK_SDOS
SD
LSB MSB LSB MSB
(OUTPUT)
tHD_SDIS
tSU_SDIS
SD
(INPUT) LSB MSB LSB MSB
WORD N-1 RIGHT CHANNEL WORD N LEFT CHANNEL WORD N RIGHT CHANNEL
tBCLKM
tWBCLKHM tWBCLKLM
BCLK
tBCLK_LRCLKM
LRCLK
tBCLK_SDOM
SD LSB MSB LSB MSB
(OUTPUT)
tHD_SDIM
tSU_SDIM
WORD N-1 RIGHT CHANNEL WORD N LEFT CHANNEL WORD N RIGHT CHANNEL
tCLK
tWCH tWCL
PCIF_PCLK
tSHLD
tSSU
PCIF_VSYNC,
PCIF_HSYNC
tDHLD
tDSU
PCIF_D0– NOT NOT
PCIF_D11 VALID VALID
OWM_IO
OWM_IO
OWM_IO
tRDV tRDV
LEGEND
BOTH CONTROLLER TARGET DEVICE RESISTOR
1-Wire CONTROLLER
AND TARGET ACTIVE LOW PULL-UP
ACTIVE LOW
DEVICE ACTIVE LOW
Pin Configuration
144 CSBGA
TOP VIEW
1 2 3 4 5 6 7 8 9 10 11 12 13
A P0.21 VSS HFXIN VREF VSS CSI_CKN CSI_D1N VCOREA 32KIN VBAT VREGO_C LXB VSSPWR A
B P0.22 P0.5 HFXOUT VSSA VSS CSI_CKP CSI_D1P VCOREB 32KOUT VDDA VREGO_A VBST LXA B
C P0.23 P0.6 P2.7 P2.3 VSS CSI_D0N CSI_D0P VCSI2P5 VSS RSTN VREGO_B VSSB VREGI C
D VDDIO P0.7 P2.6 P2.2 VSS P0.17 P0.16 P0.11 P0.10 P3.1 P3.0 VDDB DM D
K P0.24 P1.0 P0.13 P1.8 P0.30 P0.0 VSS P1.6 VCNN0_EN VCNN2RAM_EN P1.11 P1.13 P1.10 K
L P0.25 P1.1 P1.2 P1.9 P0.31 P0.1 VSS P1.7 VCNN0RAM_EN VCNN2_EN P1.12 P1.14 P1.17 L
M VCNN0RAM VCNN0RAM P1.3 P1.4 P0.26 VSS VSS P0.28 VCNN1_EN VCNN3RAM_EN P1.16 VCNN2RAM VCNN2RAM M
N VCNN0 VCNN0 VCNN0 P1.5 P0.27 VSS VSS P0.29 VCNN1RAM_EN VCNN3_EN VCNN2 VCNN2 VCNN2 N
1 2 3 4 5 6 7 8 9 10 11 12 13
144 CSBGA
12mm x 12mm
Pin Description
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
POWER (See the Applications Information section for bypass capacitor recommendations.)
Battery Power Supply. Bypass device pin A10
with a 1μF capacitor placed as close as possible
A10 VBAT — — — to this pin and the VSSPWR pin. This pin must
be connected to VREGI and VDDIOH at the
circuit board level.
Battery Power Supply for the SIMO Switch-
Mode Power Supply (SMPS). Bypass this pin
with 2 x 47μF capacitors placed as close as
C13 VREGI — — — possible to this pin and the VSSPWR pin. This
pin must be connected to VBAT and VDDIOH. If
the power to the device is cycled, the voltage
applied to this pin must reach VREGI_POR.
1.8V Analog Power Supply. Bypass this pin with
a 1μF capacitor placed as close as possible to
B10 VDDA — — —
this pin and VSSA. This device pin must be
connected to VDDIO.
USB Transceiver Supply Voltage. Bypass this
D12 VDDB — — — pin to VSSB with a 1.0μF capacitor as close as
possible to the package.
ADC External Reference Input. Bypass this pin
with a 1μF capacitor placed as close as possible
to this pin and VSSA as possible. This is the
A4 VREF — — — reference input for the analog-to-digital
converter (ADC). If the external reference is not
used, tie this pin to VSSA through a 500Ω
resistor.
Digital Core Supply Voltage A. Bypass this pin
A8 VCOREA — — — to VSS with a 1μF capacitor placed as close to
this pin as possible.
Digital Core Supply Voltage B. Bypass this pin
B8 VCOREB — — — to VSS with a 1μF capacitor placed as close to
this pin as possible.
Boosted Supply Voltage for the Gate Drive of
B12 VBST — — — High-Side Switches. Bypass VBST to LXB with a
3.3nF capacitor.
Buck Converter A Voltage Output. Bypass this
B11 VREGO_A — — — pin with a 22μF capacitor to VSS placed as
close as possible to this pin.
Buck Converter B Voltage Output. Bypass this
C11 VREGO_B — — — pin with a 22μF capacitor to VSS placed as
close as possible to this pin.
Buck Converter C Voltage Output. Bypass this
A11 VREGO_C — — — pin with a 22μF capacitor to VSS placed as
close as possible to this pin.
GPIO Supply Voltage. Bypass this pin to VSS
D1 VDDIO — — — with a 1.0μF capacitor placed as close as
possible to the package.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
GPIO Supply Voltage, High. VDDIOH ≥ VDDIO.
Bypass this pin to VSS with a 1.0μF capacitor
E1 VDDIOH — — — placed as close as possible to the package. This
device pin must be connected to VREGI and
VBAT.
Bypass with 1μF capacitor to VSSB. Do not
E12 VUSB0P9 — — — connect this device pin to any other external
circuitry.
Bypass with 1μF capacitor to VSS. Do not
C8 VCSI2P5 — — — connect this device pin to any other external
circuitry.
F1, G1,
A2, G2,
G3, G4,
A5, B5,
C5, D5,
M6, N6,
K7, L7,
M7, N7, VSS — — — Digital Ground.
C9,
F10,
F11,
F12,
G12,
F13,
G13
Analog Ground. This pin is the return path for
B4 VSSA — — —
VREF and VDDA.
Ground for the SIMO Switch-Mode Power
A13 VSSPWR — — — Supply (SMPS). This device pin is the return
path for the VREG.
C12 VSSB — — — USB Transceiver Ground.
Switching Inductor Input A. Connect a 2.2μH
B13 LXA — — —
inductor between LXA and LXB.
Switching Inductor Input B. Connect a 2.2μH
A12 LXB — — —
inductor between LXA and LXB.
Voltage Supply for CNN x16 Processor
Quadrant 0. Bypass this pin with 3 x 1μF
N1, N2,
VCNN0 — — — capacitors as close to this pin as possible and a
N3
22μF capacitor as close as possible to the
package.
Voltage Supply for CNN x16 Processor
Quadrant 1. Bypass this pin with 3 x 1μF
H1, H2,
VCNN1 — — — capacitors as close to this pin as possible and a
H3
22μF capacitor as close as possible to the
package.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
Voltage Supply for CNN x16 Processor
N11, Quadrant 2. Bypass this pin with 3 x 1μF
N12, VCNN2 — — — capacitors as close to this pin as possible and a
N13 22μF capacitor as close as possible to the
package.
Voltage Supply for CNN x16 Processor
H11, Quadrant 3. Bypass this pin with 3 x 1μF
H12, VCNN3 — — — capacitors as close to this pin as possible and a
H13 22μF capacitor as close as possible to the
package.
Voltage Supply for the RAM for the CNN x16
Processor Quadrant 0. Bypass this pin with 2 x
M1, M2 VCNN0RAM — — — 1μF capacitors as close to this pin as possible
and a 22μF capacitor as close as possible to the
package.
Voltage Supply for the RAM for the CNN x16
Processor Quadrant 1. Bypass this pin with 2 x
J1, J2 VCNN1RAM — — — 1μF capacitors as close to this pin as possible
and a 22μF capacitor as close as possible to the
package.
Voltage Supply for the RAM for the CNN x16
Processor Quadrant 2. Bypass this pin with 2 x
M12,
VCNN2RAM — — — 1μF capacitors as close to this pin as possible
M13
and a 22μF capacitor as close as possible to the
package.
Voltage Supply for the RAM for the CNN x16
Processor Quadrant 3. Bypass this pin with 2 x
J12,
VCNN3RAM — — — 1μF capacitors as close to this pin as possible
J13
and a 22μF capacitor as close as possible to the
package.
Enable Output for the Voltage Supply for CNN
K9 VCNN0_EN — — —
x16 Processor Quadrant 0.
Enable Output for the Voltage Supply for CNN
M9 VCNN1_EN — — —
x16 Processor Quadrant 1.
Enable Output for the Voltage Supply for CNN
L10 VCNN2_EN — — —
x16 Processor Quadrant 2.
Enable Output for the Voltage Supply for CNN
N10 VCNN3_EN — — —
x16 Processor Quadrant 3.
VCNN0RAM_E Enable Output for the Voltage Supply for the
L9 — — —
N RAM for the CNN x16 Processor Quadrant 0.
VCNN1RAM_E Enable Output for the Voltage Supply for the
N9 — — —
N RAM for the CNN x16 Processor Quadrant 1.
VCNN2RAM_E Enable Output for the Voltage Supply for the
K10 — — —
N RAM for the CNN x16 Processor Quadrant 2.
VCNN3RAM_E Enable Output for the Voltage Supply for the
M10 — — —
N RAM for the CNN x16 Processor Quadrant 3.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
RESET AND CONTROL
Active-Low, External System Reset Input. The
device remains in reset while this pin is in its
active state. When the pin transitions to its
C10 RSTN — — — inactive state, the device performs a POR reset
(resetting all logic on all supplies except for RTC
circuitry) and begins execution. This pin has an
internal pull-up to the VDDIOH supply.
CLOCK
B9 32KOUT — — — 32kHz Crystal Oscillator Output.
32kHz Crystal Oscillator Input. Connect a 32kHz
crystal between 32KIN and 32KOUT for RTC
A9 32KIN — — — operation. Optionally, this pin can be configured
as the input for an external CMOS-level clock
source.
25MHz Crystal Oscillator Input. Connect a
25MHz crystal between HFXIN and HFXOUT.
A3 HFXIN — — —
Optionally, this pin can be configured as the
input for an external CMOS-level clock source.
B3 HFXOUT — — — 25MHz Crystal Oscillator Output.
GPIO AND ALTERNATE FUNCTION (See the Applications Information section for GPIO and Alternate Function Matrices.)
UART0 Receive Port Map A. See Bootloader
K6 P0.0 P0.0 UART0A_RX — Activation for details on this pin's usage and
suggested pull-up.
L6 P0.1 P0.1 UART0A_TX — UART0 Transmit Port Map A.
Timer0 I/O 32 Bits or Lower 16 Bits Port Map A;
E11 P0.2 P0.2 TMR0A__IOA UART0B_CTS
UART0 Clear to Send Port Map B.
External Clock for Use as SYS_OSC/Timer0 I/O
E10 P0.3 P0.3/EXT_CLK TMR0A_IOB UART0B_RTS Upper 16 Bits Port Map A; UART0 Request to
Send Port Map B.
SPI0 Port Map A Target Select 0; Timer0
H4 P0.4 P0.4 SPI0A_SS0 TMR0B_IOAN
Inverted Output Port Map B.
SPI0 Port Map A Controller-Out Target-In Serial
B2 P0.5 P0.5 SPI0A_MOSI TMR0B_IOBN Data 0; Timer0 Inverted Output Upper 16 Bits
Port Map B.
SPI0 Port Map A Controller-In Target-Out Serial
C2 P0.6 P0.6 SPI0A_MISO OWM_IO
Data 1; 1-Wire Controller Data I/O.
SPI0 Port Map A Clock; 1-Wire Controller Pull-
D2 P0.7 P0.7 SPI0A_SCK OWM_PE
up Enable Output.
SPI0 Port Map A Data 2 I/O; Timer0 I/O 32 Bits
E2 P0.8 P0.8 SPI0A_SDIO2 TMR0B_IOA
or Lower 16 Bits Port Map B.
SPI0 Port Map A Data 3 I/O; Timer0 I/O Upper
F2 P0.9 P0.9 SPI0A_SDIO3 TMR0B_IOB
16 Bits Port Map B.
D9 P0.10 P0.10 I2C0A_SCL SPI0_SS2 I2C0 Port Map A Clock; SPI0 Target Select 2.
I2C0 Port Map A Serial Data; SPI0 Target
D8 P0.11 P0.11 I2C0A_SDA SPI0_SS1
Select 1.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
UART1 Receive Port Map A; Timer1 Inverted
J3 P0.12 P0.12 UART1A_RX TMR1B_IOAN
Output Port Map B.
UART1 Transmit Port Map A; Timer1 Inverted
K3 P0.13 P0.13 UART1A_TX TMR1B_IOBN
Output Upper 16 Bits Port Map B.
Timer1 I/O 32 Bits or Lower 16 Bits Port Map A;
G11 P0.14 P0.14 TMR1A_IOA I2S_CLKEXT
I2S External Clock Input.
Timer1 I/O Upper 16 Bits Port Map A; Parallel
G10 P0.15 P0.15 TMR1A_IOB PCIF_VSYNC
Camera Interface Vertical Sync.
D7 P0.16 P0.16 I2C1A_SCL PT2 I2C1 Port Map A Clock; Pulse Train 2.
D6 P0.17 P0.17 I2C1A_SDA PT3 I2C1 Port Map A Serial Data; Pulse Train 3.
H10 P0.18 P0.18 PT0 OWM_IO Pulse Train 0; 1-Wire Controller Data I/O.
Pulse Train 1; 1-Wire Controller Pull-up Enable
J10 P0.19 P0.19 PT1 OWM_PE
Output.
SPI1 Port Map A Target Select 0; Parallel
J4 P0.20 P0.20 SPI1A_SS0 PCIF_D0
Camera Interface Data 0.
SPI1 Port Map A Controller-Out Target-In Serial
A1 P0.21 P0.21 SPI1A_MOSI PCIF_D1
Data 0; Parallel Camera Interface Data 1.
SPI1 Port Map A Controller-In Target-Out Serial
B1 P0.22 P0.22 SPI1A_MISO PCIF_D2
Data 1; Parallel Camera Interface Data 2.
SPI1 Port Map A Clock; Parallel Camera
C1 P0.23 P0.23 SPI1A_SCK PCIF_D3
Interface Data 3.
SPI1 Port Map A Data 2; Parallel Camera
K1 P0.24 P0.24 SPI1A_SDIO2 PCIF_D4
Interface Data 4.
SPI1 Port Map A Data 3; Parallel Camera
L1 P0.25 P0.25 SPI1A_SDIO3 PCIF_D5
Interface Data 5.
Timer2 I/O 32 Bits or Lower 16 Bits Port Map A;
M5 P0.26 P0.26 TMR2A_IOA PCIF_D6
Parallel Camera Interface Data 6.
P0.27/ USB External Clock/Timer2 I/O Upper 16 Bits
N5 P0.27 TMR2A_IOB PCIF_D7
USB_EXTCLK Port Map A; Parallel Camera Interface Data 7.
Serial Wire Debug Data I/O. Following any
M8 P0.28 P0.28/SWDIO — —
reset, this device pin defaults to AF1 SWDIO.
Serial Wire Debug Clock. Following any reset,
this device pin defaults to AF1 SWDCLK. See
N8 P0.29 P0.29/SWDCLK — —
Bootloader Activation for details on this pin's
usage and suggested pullup.
I2C2 Port Map A Clock; Parallel Camera
K5 P0.30 P0.30 I2C2A_SCL PCIF_D8
Interface Data 8.
I2C2 Port Map A Serial Data; Parallel Camera
L5 P0.31 P0.31 I2C2A_SDA PCIF_D9
Interface Data 9.
UART2 Receive Port Map A; 32-bit RISC-V Test
K2 P1.0 P1.0 UART2A_RX RV_TCK
Port Clock.
UART2 Transmit Port Map A; 32-bit RISC-V
L2 P1.1 P1.1 UART2A_TX RV_TMS
Test Port Select.
I2S0 Port Map A Bit Clock; 32-bit RISC-V Test
L3 P1.2 P1.2 I2S0A_SCK RV_TDI
Port Data Input.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
I2S0 Port Map A Left/Right Clock; 32-bit RISC-V
M3 P1.3 P1.3 I2S0A_WS RV_TDO
Test Port Data Output.
I2S0 Port Map A Serial Data Input; Timer3 I/O
M4 P1.4 P1.4 I2S0A_SDI TMR3B_IOA
32 Bits or Lower 16 Bits Port Map B.
I2S0 Port Map A Serial Data Output; Timer3 I/O
N4 P1.5 P1.5 I2S0A_SDO TMR3B_IOB
Upper 16 Bits Port Map B.
Timer3 I/O 32 Bits or Lower 16 Bits Port Map A;
K8 P1.6 P1.6 TMR3A_IOA PCIF_D10
Parallel Camera Interface Data 10.
Timer3 I/O Upper 16 Bits Port Map A; Parallel
L8 P1.7 P1.7 TMR3A_IOB PCIF_D11
Camera Interface Data 11.
Parallel Camera Interface Horizontal Sync; CM4
K4 P1.8 P1.8 PCIF_HSYNC RXEV0
Rx Event Input.
Parallel Camera Interface Pixel Clock; CM4 Tx
L4 P1.9 P1.9 PCIF_PCLK TXEV0
Event Output.
Secure Digital Interface Card Present; ADC
K13 P1.10 P1.10 SDHC_CDN ADC_CLK_EXT
External Clock Input.
K11 P1.11 P1.11 SDHC_DAT3 — Secure Digital Interface Data Bus Bit 3.
ADC_HW_TRIG Secure Digital Interface Data Bus Bit 2; ADC
L11 P1.12 P1.12 SDHC_DAT2
_A Trigger Input A.
ADC_HW_TRIG Secure Digital Interface Data Bus Bit 1; ADC
K12 P1.13 P1.13 SDHC_DAT1
_B Trigger Input B.
ADC_HW_TRIG Secure Digital Interface Data Bus Bit 0; ADC
L12 P1.14 P1.14 SDHC_DAT0
_C Trigger Input C.
J11 P1.15 P1.15 SDHC_WP — Secure Digital Interface Write Protect.
M11 P1.16 P1.16 SDHC_CMD — Secure Digital Interface Bus Command.
L13 P1.17 P1.17 SDHC_CLK — Secure Digital Interface Clock.
F4 P2.0 P2.0 AIN0/AIN0N — ADC Input 0/Comparator 0 Negative Input.
E4 P2.1 P2.1 AIN1/AIN0P — ADC Input 1/Comparator 0 Positive Input.
D4 P2.2 P2.2 AIN2/AIN1N — ADC Input 2/Comparator 1 Negative Input.
C4 P2.3 P2.3 AIN3/AIN1P — ADC Input 3/Comparator 1 Positive Input.
ADC Input 4/Comparator 2 Negative Input; Low-
F3 P2.4 P2.4 AIN4/AIN2N LPTMR0B_IOA
Power Timer0 I/O Port Map B.
ADC Input 5/Comparator 2 Positive Input; Low-
E3 P2.5 P2.5 AIN5/AIN2P LPTMR1B_IOA
Power Timer1 I/O Port Map B.
Low-Power Timer0 External Clock Input/ADC
P2.6/
D3 P2.6 AIN6/AIN3N LPUARTB_RX Input 6/Comparator 3 Negative Input; Low-
LPTMR0_CLK
Power UART0 Receive Port Map B.
Low-Power Timer1 External Clock Input/ADC
P2.7/
C3 P2.7 AIN7/AIN3P LPUARTB_TX Input 7/Comparator 3 Positive Input; Low-Power
LPTMR1_CLK
UART Transmit Port Map B.
P3.0/PDOWN/ Power-Down Output; Wakeup Input. This device
D11 P3.0 — —
WAKEUP pin can only be powered by VDDIOH.
P3.1/SQWOUT/ RTC Square-Wave Output; Wakeup Input. This
D10 P3.1 — —
WAKEUP device pin can only be powered by VDDIOH.
144 CSBGA
FUNCTION MODE
PIN NAME Primary Signal Alternate Alternate FUNCTION
(Default) Function 1 Function 2
USB
USB DP Signal. This bidirectional pin carries the
positive differential data or single-ended data.
E13 DP — — —
This pin is weakly pulled high internally when
the USB is disabled.
USB DM Signal. This bidirectional pin carries
the negative differential data or single-ended
D13 DM — — —
data. This pin is weakly pulled high internally
when the USB is disabled.
MIPI CSI-2
MIPI CSI-2 receiver differential clock positive
B6 CSI_CKP — — —
input.
MIPI CSI-2 receiver differential clock negative
A6 CSI_CKN — — —
input.
MIPI CSI-2 receiver differential data lane 0
C7 CSI_D0P — — —
positive input.
MIPI CSI-2 receiver differential data lane 0
C6 CSI_D0N — — —
negative input.
MIPI CSI-2 receiver differential data lane 1
B7 CSI_D1P — — —
positive input.
MIPI CSI-2 receiver differential data lane 1
A7 CSI_D1N — — —
negative input.
Detailed Description
Artificial intelligence (AI) requires extreme computational horsepower, but Analog Devices is cutting the power cord from
AI insights. The MAX78002 is a new breed of AI microcontroller built to enable neural networks to execute at ultra-low
power and live at the edge of the IoT. This product combines the most energy-efficient AI processing with Analog Devices'
proven ultra-low-power microcontrollers. Our hardware-based convolutional neural network (CNN) accelerator enables
battery-powered applications to execute AI inferences while spending only microjoules of energy.
The MAX78002 is an advanced system-on-chip featuring an Arm Cortex-M4 with FPU CPU for efficient system control
with an ultra-low-power deep neural network accelerator. The CNN engine has a weight storage memory of 2MB, and
can support 1-, 2-, 4-, and 8-bit weights (supporting networks of up to 16 million weights). The CNN weight memory is
SRAM-based so that AI network updates can be made on the fly. The CNN engine also has 1.3MB of data memory. The
CNN architecture is highly flexible, allowing networks to be trained in conventional toolsets like PyTorch and TensorFlow,
then converted for execution on the MAX78002 using tools provided by Analog Devices.
In addition to the memory in the CNN engine, the MAX78002 has large on-chip system memory for the microcontroller
core, with 2.5MB flash and up to 384KB SRAM. Multiple high-speed and low-power communications interfaces are
supported, including I2S, MIPI CSI-2 serial camera, parallel camera (PCIF), and SD 3.0/SDIO 3.0/eMMC 4.51 secure
digital.
Memory
Internal Flash Memory
2.5MB of internal flash memory provides nonvolatile storage of program and data memory.
Internal SRAM
The internal 384KB SRAM provides low-power retention of application information in all power modes except POWER
DOWN. The SRAM is divided into eight banks. SRAM0 and SRAM1 are both 32KB; SRAM2, SRAM3, SRAM4, and
SRAM5 are all 64KB each. SRAM6 is 48KB, and SRAM7 is 16KB. SRAM4, SRAM5, SRAM6, and SRAM7 are accessible
by the RV32 in LOW POWER mode. For enhanced system reliability, SRAM0 (32KB) can be configured with error
correction coded (ECC) single error correction-double error detection (SEC-DED). 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
Multiple clock sources can be selected as the system clock:
● Internal phase-locked loop (IPLL) provides 100MHz and 200MHz clock sources
● Internal primary oscillator (IPO) at a nominal frequency of 120MHz
● Internal secondary oscillator (ISO) at a nominal frequency of 60MHz
● Configurable internal nanoring oscillator (INRO) at 8kHz, 16kHz, or 30kHz
● External RTC oscillator at 32.768kHz (ERTCO) (external crystal required)
● Internal baud rate oscillator at 7.3728MHz (IBRO)
● External square-wave clock up to 80MHz
There are multiple external clock inputs:
● LPTMR0 and LPTMR1 can be clocked from unique external sources.
● I2S can be be clocked from its own external source.
● USB can be clocked from its own external source.
LPTMR1_CLK (P2.7)
LEGEND
AUTO-CAL
GCR_CLKCN.clksel X = UNCONNECTED CLOCK INPUT
= DEVICE PIN
120MHz
Arm Cortex
120MHz 4-CH
M4 SPI0
(CM4) DMA
INTERNAL PRIMARY 32.768kHz
OSCILLATOR (IPO)
7.3728MHz SYS_CLK ÷2
GCR_CLKCN.psc APB CLK
7.3728MHz
60MHz
60MHz
INTERNAL SECONDARY
OSCILLATOR (ISO)
PWRSEQ_LPCN. GCR_PCKDIV.cnnclksel
100MHz
RISC-V lpmclksel
(RV32)
CNN 12-BIT SAR ADC
GCR_PCKDIV.cnnfrq
INTERNAL PHASE 200MHz PRESCALER
LOCKED LOOP (IPLL) ADC
XTAL DRIVER OR AES/
EXTERNAL CLOCK CRC/ SAR_CLKCTRL.clkdiv
TRNG CNN CLOCK
25MHz QUADRANTS SCALER
25MHz
CRYSTAL OSC CNN
MEMORY SAR_CLKCTRL.clksel
(P1.10) ADC_EXT_CLK
EXT_CLK (P0.3)
(P0.3) USB_EXTCLK
I2S_CLKEXT (P0.14)
GCR_PCKDIV
.sdhcfrq ÷2, 4
÷4, 8
Power Management
Power Management Unit
The power management unit (PMU) provides high-performance operation while minimizing power consumption. It
exercises intelligent, precise control of power distribution to the CPUs and peripheral circuitry.
The PMU provides the following features:
● User-configurable system clock
● Automatic enabling and disabling of crystal oscillators based on power mode
● Multiple power domains
● Fast wake-up of powered-down peripherals when activity detected
● Optional control of external switches to provide the CNN with dedicated power from an external source
ACTIVE Mode
In this mode, the CM4 and the RV32 can execute 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. The CM4 has access to all system SRAM. The RV32 has access to SRAM4, SRAM5, SRAM6, and
SRAM7. Both the CM4 and the RV32 can execute from internal flash simultaneously. SRAM7 can be configured as an
instruction cache for the RV32.
SLEEP Mode
This mode consumes less power, but wakes faster because the clocks can optionally be enabled.
The device status is as follows:
● CM4 is asleep.
● RV32 is asleep.
● CNN quadrants and memory are configurable.
● Peripherals are on.
● Standard DMA is available for optional use.
STANDBY Mode
This mode is used to maintain the system operation while keeping time with the RTC.
The device status is as follows:
● Both CM4 and RV32 are state retained. System state and all SRAM are retained.
● CNN quadrants are powered off.
● CNN memory provides selectable retention.
● GPIO pins retain their state.
● All peripherals are state retained.
● The following oscillators are powered down:
• IPO
• IPLL
• ISO
• IBRO
● The following oscillators are enabled:
• ERTCO
• INRO
BACKUP Mode
This mode is used to maintain the system RAM. The device status is as follows:
● CM4 and RV32 are powered off.
Wakeup Sources
The sources of wakeup from the SLEEP, LOW POWER, MICRO POWER, STANDBY, BACKUP, and POWER DOWN
operating modes are summarized in Table 2.
Table 2. Wakeup Sources
OPERATING MODE WAKEUP SOURCE
SLEEP Any enabled peripheral with interrupt capability; RSTN
SPI0, I2S, I2C, UARTs, timers, watchdog timers, wakeup timer, all comparators, RTC, GPIOs, RSTN, and
LOW POWER (LPM)
RV32
MICRO POWER
All comparators, LPUART, LPTMR1, LPTIMER2, LPWDT0, RTC, wakeup timer, GPIOs, and RSTN
(μPM)
STANDBY RTC, wakeup timer, GPIOs, CMP0, and RSTN
BACKUP RTC, wakeup timer, GPIOs, CMP0, and RSTN
POWER DOWN
P3.0, P3.1, and RSTN
(PDM)
Real-Time Clock
An RTC keeps the time of day in absolute seconds. The 32-bit seconds register can count up to approximately 136 years
Programmable Timers
32-Bit Timer/Counter/PWM (TMR, LPTMR)
General-purpose, 32-bit timers provide timing, capture/compare, or generation of pulse-width modulated (PWM) signals
with minimal software interaction.
The timer provides the following features:
● 32-bit up/down autoreload
● Programmable prescaler
● PWM output generation
● Capture, compare, and capture/compare capability
● External pin multiplexed with GPIO for timer input, clock gating, or capture
● Timer output pin
● TMR0–TMR3 can be configured as 2 × 16-bit general-purpose timers
● Timer interrupt
The MAX78002 provides six 32-bit timers (TMR0, TMR1, TMR2, TMR3, LPTMR0, and LPTMR1). LPTMR0 and LPTMR1
are capable of operation in the SLEEP, LOW POWER, and MICRO POWER modes.
I/O functionality is supported for all of the timers. Note that the function of a port can be multiplexed with other functions
on the GPIO pins, so it might not be possible to use all of the ports depending on the device configuration. See Table 3
for individual timer features.
Table 3. Timer Configuration Options
REGISTER DUAL CLOCK SOURCE
SINGLE SINGLE POWER
INSTANCE ACCESS 16
32 BIT 16 BIT MODE PCLK ISO IBRO INRO ERTCO LPTMR0_CLK LPTMR1_CLK
NAME BIT
ACTIVE,
SLEEP,
TMR0 TMR0 Yes Yes No Yes Yes Yes No Yes No No
LOW
POWER
ACTIVE,
SLEEP,
TMR1 TMR1 Yes Yes No Yes Yes Yes No Yes No No
LOW
POWER
ACTIVE,
SLEEP,
TMR2 TMR2 Yes Yes No Yes Yes Yes No Yes No No
LOW
POWER
Serial Peripherals
High-Speed USB Peripheral
The integrated USB peripheral is compliant with the High-Speed (480Mb/s) USB 2.0 specification. The integrated USB
physical interface (PHY) reduces board space and system cost. An integrated voltage regulator enables smart switching
between the main supply and VDDB when connected to a USB host controller. The USB peripheral supports DMA for
the endpoint buffers. A total of 11 endpoint buffers are supported with configurable selection of IN or OUT in addition to
endpoint 0.
Security
AES
The dedicated hardware-based AES engine supports the following algorithms:
● AES-128
● AES-192
● AES-256
The AES keys are automatically generated by the engine and stored in dedicated flash to protect against tampering. Key
generation and storage is transparent to the user.
CRC Module
A cyclic redundancy check (CRC) hardware module provides fast calculations and data integrity checks by application
software. It supports a user-defined programmable polynomial up to 32-bits. Direct memory access copies data into
the CRC module so that CRC calculations on large blocks of memory are performed with minimal CPU intervention.
Examples of common polynomials are depicted in Table 7.
Table 7. Common CRC Polynomials
ALGORITHM POLYNOMIAL EXPRESSION
CRC-32-ETHERNET x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x1 + x0
CRC-CCITT x16 + x12 + x5 + x0
CRC-16 x16 + x15 + x2 + x0
USB DATA x16 + x15 + x2 + x0
PARITY x1 + x0
Bootloader
The bootloader allows loading and verification of program memory through a serial interface. It provides the following
features:
● Bootloader interface through UART
● Program loading of Motorola® SREC format files
● Permanent lock state prevents altering or erasing program memory
● Access to the USN for device or customer application identification
● Disabling of the SWD interface to block debug access port functionality
The bootloader interface pins listed in Table 8 must be accessible to the host to use the bootloader.
Secure Boot
The secure boot feature available on some devices ensures software integrity by automatically comparing program
memory against a stored HMAC SHA-256 hash value after every reset. Programs that fail the integrity check indicate
corrupted or modified program memory and are prevented from executing any instructions. Devices with the secure boot
feature provide additional security through an optional challenge/response feature that authenticates before executing
bootloader commands.
Applications Information
Bypass Capacitors
The proper use of bypass capacitors reduces noise generated by the IC into the ground plane. The Pin Descriptions table
indicates which pins should be connected to bypass capacitors, and the appropriate ground plane.
It is recommended that one instance of a bypass capacitor should be connected to each power pin/ball of the IC package.
For example, if the Pin Descriptions table shows four device pins associated with voltage supply A, a separate capacitor
should be connected to each pin for a total of four capacitors.
Capacitors should be placed as close as possible to their corresponding device pins. When more than one value of
capacitor per pin is recommended, the capacitors should be placed in parallel starting with the lowest value capacitor
closest to the pin.
Bootloader Activation
The bootloader interface options are shown in Table 8. The bootloader is activated if the activation pins are in their active
state before exiting any reset and remain in that state until the bootloader sends the first command prompt through the
interface. If the pins are not in their active state, the device will perform a secure boot and, if successful, begin execution
of the application code. The design must ensure the activation pins and the RSTN pin are available to the host so it can
activate the bootloader.
Note: It is recommended that at least one of the bootloader activation pins are connected to a 10kΩ pull-up resistor to
ensure that the pins are in their inactive state during reset.
Table 8. Bootloader Interface
ACTIVATION PINS INTERFACE
P0.0 UART0A_RX (Active Low) P0.0 UART0A_RX
P0.29 SWDCLK (Active Low) P0.1 UART0A_TX
Ordering Information
FLASH SYSTEM SECURE
PART BOOTLOADER PIN-PACKAGE
(MB) RAM (KB) BOOT
384 + ECC 144 CSBGA, 12mm x 12mm x 1.3mm, 0.8mm
MAX78002GXE+ 2.5 Yes No
8 pitch
Revision History
REVISION REVISION PAGES
DESCRIPTION
NUMBER DATE CHANGED
0 6/22 Initial release —
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is
assumed by Analog Devices for its use, nor for any infringements of patents or other rights of third parties that may
result from its use. Specifications subject to change without notice. No license is granted by implication or otherwise
under any patent or patent rights of Analog Devices. Trademarks and registered trademarks are the property of
their respective owners.
w w w . a n a l o g . c o m Analog Devices | 55