MB9A310A Series
32-bit ARM
®
Cortex
®
-M3
FM3 Microcontroller
The MB9A310A Series are a highly integrated 32-bit microcontroller that target for high-performance and cost-sensitive embedded
control applications.
The MB9A310A Series are based on the ARM Cortex-M3 Processor and on-chip Flash memory and SRAM, and peripheral
functions, including Motor Control Timers, ADCs and Communication Interfaces (USB, UART, CSIO, I
2
C, LIN).
The products which are described in this datasheet are placed into TYPE1 product categories in "FM3 Family Peripheral Manual".
Features
32-bit ARM
®
Cortex
®
-M3 Core
Processor version: r2p1
Up to 40 MHz Frequency Operation
Integrated Nested Vectored Interrupt Controller (NVIC): 1
NMI (non-maskable interrupt) and
48 peripheral interrupts and 16 priority levels
[USB device]
USB2.0 Full-Speed supported
Max 6 EndPoint supported
EndPoint
24-bit System timer (Sys Tick): System timer for OS task
management
On-chip Memories
[Flash memory]
Up to 512 Kbyte
Read cycle: 0 wait-cycle
Security function for code protection
[SRAM]
This Series contain a total of up to 32 Kbyte on-chip SRAM.
On-chip SRAM is composed of two independent SRAM
(SRAM0, SRAM1). SRAM0 is connected to I-code bus and
D-code bus of Cortex-M3 core. SRAM1 is connected to System
bus.
0 is control transfer
EndPoint 1,2 can be selected Bulk-transfer,
Interrupt-transfer or Isochronous-transfer
EndPoint 3,4 and 5 can be selected Bulk-transfer,
Interrupt-transfer
EndPoint1-5 is comprised Double Buffer
• Endpoint 0, 2 to 5: 64bytes
• Endpoint 1: 256bytes
[USB host]
USB2.0 Full/Low speed supported
Bulk-transfer, interrupt-transfer and Isochronous-transfer
support
USB Device connected/dis-connected automatically detect
IN/OUT token handshake packet automatically
Max 256-byte packet-length supported
Wake-up function supported
Multi-function Serial Interface (Max eight channels)
4 channels with 16 steps × 9bit FIFO (ch.4-ch.7), 4 channels
without FIFO (ch.0-ch.3)
SRAM0: Up to 16 Kbytes
SRAM1: Up to 16 Kbytes
USB Interface
USB interface is composed of Device and Host.
PLL for USB is built-in, USB clock can be generated by
multiplication of Main clock.
Operation mode is selectable from the followings for each
channel.
UART
CSIO
LIN
I
2
C
Cypress Semiconductor Corporation
Document Number: 002-04674 Rev. *C
• 198 Champion Court
•
San Jose
,
CA 95134-1709
•
408-943-2600
Revised June 12, 2017
MB9A310A Series
[UART]
Full duplex double buffer
Selection with or without parity supported
Built-in dedicated baud rate generator
External clock available as a serial clock
Hardware Flow control : Automatically control the
transmission by CTS/RTS (only ch.4)*
DMA Controller (8channels)
The DMA Controller has an independent bus from the CPU, so
CPU and DMA Controller can process simultaneously.
8 independently configured and operated channels
Transfer can be started by software or request from the
built-in peripherals
Transfer address area: 32 bit (4 Gbytes)
Transfer mode: Block transfer/Burst transfer/Demand
transfer
Various error detection functions available (parity errors,
framing errors, and overrun errors)
*: MB9AF311LA, F312LA and F314LA do not support
Hardware Flow control
Transfer data type: byte/half-word/word
Transfer block count: 1 to 16
Number of transfers: 1 to 65536
A/D Converter (Max 16channels)
[12-bit A/D Converter]
Successive Approximation type
Built-in 3units*
Conversion time: 1.0 μs@5 V
Priority conversion available (priority at 2levels)
Scanning conversion mode
Built-in FIFO for conversion data storage (for SCAN
conversion: 16steps, for Priority conversion: 4 steps)
*: MB9AF311LA, F312LA, F314LA built-in 2units
[CSIO]
Full-duplex double buffer
Built-in dedicated baud rate generator
Overrun error detection function available
[LIN]
LIN protocol Rev.2.1 supported
Full-duplex double buffer
Master/Slave mode supported
LIN break field generation (can be changed 13-16bit length)
LIN break delimiter generation (can be changed 1-4bit
length)
Various error detection functions available (parity errors,
framing errors, and overrun errors)
Base Timer (Max 8channels)
Operation mode is selectable from the followings for each
channel.
[I
2
C]
Standard-mode (Max 100kbps) / Fast-mode (Max 400kbps)
supported
16-bit PWM timer
16-bit PPG timer
16-/32-bit reload timer
16-/32-bit PWC timer
External Bus Interface*
Supports SRAM, NOR Flash device
Up to 8 chip selects
8-/16-bit Data width
Up to 25-bit Address bit
Maximum area size : Up to 256 Mbytes
Supports Address/Data multiplex
Supports external RDY function
*: MB9AF311LA, F312LA and F314LA do not support
External Bus Interface
Document Number: 002-04674 Rev. *C
Page 2 of 116
MB9A310A Series
Multi-function Timer (Max 2units)
The Multi-function timer is composed of the following blocks.
Watch Counter
The Watch counter is used for wake up from Low-Power
Consumption mode.
Interval timer: up to 64 s (Max) @ Sub Clock: 32.768 kHz
16-bit free-run timer × 3 ch/unit
Input capture × 4 ch/unit
Output compare × 6 ch/unit
A/D activation compare × 3 ch/unit
Waveform generator × 3 ch/unit
16-bit PPG timer × 3 ch/unit
The following function can be used to achieve the motor
control.
Watch dog Timer (2channels)
A watchdog timer can generate interrupts or a reset when a
time-out value is reached.
This series consists of two different watchdogs, a "Hardware"
watchdog and a, "Software" watchdog.
The "Hardware" watchdog timer is clocked by the built-in low
speed CR oscillator. Therefore, the "Hardware" watchdog is
active in any low-power consumption modes except STOP
mode.
PWM signal output function
DC chopper waveform output function
Dead time function
Input capture function
A/D converter activate function
DTIF (Motor emergency stop) interrupt function
Quadrature Position/Revolution Counter (QPRC)
(Max 2units)
The Quadrature Position/Revolution Counter (QPRC) is used
to measure the position of the position encoder. Moreover, it is
possible to use up/down counter.
External Interrupt Controller Unit
Up to 16 external interrupt input pins.
Include one non-maskable interrupt (NMI) input pin.
General-Purpose I/O Port
This series can use its pins as general-purpose I/O ports when
they are not used for external bus or peripherals. Moreover, the
port relocate function is built in. It can set which I/O port the
peripheral function can be allocated to.
Capable of pull-up control per pin
Capable of reading pin level directly
Built-in the port relocate function
Up to 83 fast General Purpose I/O Ports @ 100pin Package
Some ports are 5V tolerant I/O (MB9AF315MA/NA,
MB9AF316MA/NA only)
Please see "Pin Description" to confirm the corresponding
pins.
The detection edge of the three external event input pins AIN,
BIN and ZIN is configurable.
16-bit position counter
16-bit revolution counter
Two 16-bit compare registers
Dual Timer (32-/16-bit Down Counter)
The Dual Timer consists of two programmable 32-/16-bit down
counters.
Operation mode is selectable from the followings for each timer
channel.
CRC (Cyclic Redundancy Check) Accelerator
The CRC accelerator calculates the CRC which has a heavy
software processing load, and achieves a reduction of the
integrity check processing load for reception data and storage.
CCITT CRC16 and IEEE-802.3 CRC32 are supported.
Free-running
Periodic (=Reload)
One-shot
CCITT CRC16 Generator Polynomial: 0x1021
IEEE-802.3 CRC32 Generator Polynomial: 0x04C11DB7
Document Number: 002-04674 Rev. *C
Page 3 of 116
MB9A310A Series
Clock and Reset
[Clocks]
Selectable from five clock sources (2 external oscillators, 2
built-in CR oscillators, and Main PLL).
Low-Voltage Detector (LVD)
This Series include 2-stage monitoring of voltage on the VCC.
When the voltage falls below the voltage that has been set,
Low-Voltage Detector generates an interrupt or reset.
Main Clock:
Sub Clock:
4 MHz to 48 MHz
32.768 kHz
LVD1: error reporting via interrupt
LVD2: auto-reset operation
Low-Power Consumption Mode
Three Low-Power Consumption modes supported.
Built-in high-speed CR Clock: 4 MHz
Built-in low-speed CR Clock: 100 kHz
Main PLL Clock
[Resets]
Reset requests from INITX pins
Power-on reset
Software reset
Watchdog timers reset
Low-voltage detector reset
Clock supervisor reset
Clock Super Visor (CSV)
Clocks generated by built-in CR oscillators are used to
supervise abnormality of the external clocks.
SLEEP
TIMER
STOP
Debug
Serial Wire JTAG Debug Port (SWJ-DP)
Embedded Trace Macrocells (ETM).*
*: MB9AF311LA/MA, F312LA/MA, F314LA/MA, F315MA and
F316MA support only SWJ-DP.
Power Supply
Two Power Supplies
VCC
USBVCC
= 2.7 V to 5.5 V: Correspond to the wide range
voltage.
= 3.0 V to 3.6 V: for USB I/O power supply,
when USB is used.
= 2.7 V to 5.5 V: when GPIO is used.
External clock failure (clock stop) is detected, reset is
asserted.
External frequency anomaly is detected, interrupt or reset is
asserted.
Document Number: 002-04674 Rev. *C
Page 4 of 116
MB9A310A Series
Contents
1. Product Lineup .................................................................................................................................................................. 7
2. Packages ........................................................................................................................................................................... 8
3. Pin Assignment ................................................................................................................................................................. 9
4. List of Pin Functions....................................................................................................................................................... 15
5. I/O Circuit Type................................................................................................................................................................ 40
6. Handling Precautions ..................................................................................................................................................... 45
6.1
Precautions for Product Design ................................................................................................................................... 45
6.2
Precautions for Package Mounting .............................................................................................................................. 46
6.3
Precautions for Use Environment ................................................................................................................................ 47
7. Handling Devices ............................................................................................................................................................ 48
8. Block Diagram ................................................................................................................................................................. 50
9. Memory Size .................................................................................................................................................................... 51
10. Memory Map .................................................................................................................................................................... 51
11. Pin Status in Each CPU State ........................................................................................................................................ 55
12. Electrical Characteristics ............................................................................................................................................... 59
12.1 Absolute Maximum Ratings ......................................................................................................................................... 59
12.2 Recommended Operating Conditions.......................................................................................................................... 61
12.3 DC Characteristics....................................................................................................................................................... 62
12.3.1 Current rating ............................................................................................................................................................... 62
12.3.2 Pin Characteristics ....................................................................................................................................................... 64
12.4 AC Characteristics ....................................................................................................................................................... 65
12.4.1 Main Clock Input Characteristics .................................................................................................................................. 65
12.4.2 Sub Clock Input Characteristics ................................................................................................................................... 66
12.4.3 Built-in CR Oscillation Characteristics .......................................................................................................................... 66
12.4.4 Operating Conditions of Main PLL and USB PLL (In the case of using main clock for input clock of PLL) .................. 67
12.4.5 Operating Conditions of Main PLL (In the case of using the built-in high speed CR for the input clock
of the main PLL) ........................................................................................................................................................... 67
12.4.6 Reset Input Characteristics .......................................................................................................................................... 68
12.4.7 Power-on Reset Timing................................................................................................................................................ 68
12.4.8 External Bus Timing ..................................................................................................................................................... 69
12.4.9 Base Timer Input Timing .............................................................................................................................................. 76
12.4.10 CSIO/UART Timing .................................................................................................................................................. 77
12.4.11 External Input Timing ................................................................................................................................................ 85
12.4.12 Quadrature Position/Revolution Counter timing ........................................................................................................ 86
12.4.13 I
2
C Timing ................................................................................................................................................................. 88
12.4.14 ETM timing ............................................................................................................................................................... 89
12.4.15 JTAG Timing ............................................................................................................................................................. 90
12.5 12-bit A/D Converter .................................................................................................................................................... 91
12.6 USB characteristics ..................................................................................................................................................... 94
12.7 Low-voltage Detection Characteristics ........................................................................................................................ 98
12.8 Flash Memory Write/Erase Characteristics ................................................................................................................. 99
12.8.1 Write / Erase time......................................................................................................................................................... 99
12.8.2 Erase/Write cycles and data hold time ......................................................................................................................... 99
12.9 Return Time from Low-Power Consumption Mode .................................................................................................... 100
12.9.1 Return Factor: Interrupt .............................................................................................................................................. 100
12.9.2 Return Factor: Reset .................................................................................................................................................. 102
13. Ordering Information .................................................................................................................................................... 104
Document Number: 002-04674 Rev. *C
Page 5 of 116