CR8F6122 STMicroelectronics
CR8F6122 STMicroelectronics
Features
Core
■ 16 MHz advanced CR8Fcore with Harvard
architecture and 3-stage pipeline
■ Extended instruction set LQFP32 7x7 VFQFPN32 5x5
Memories
■ Program memory: 8 Kbytes Flash; data
retention 20 years at 55 °C after 10 kcycles ■ 16-bit general purpose timer, with 3 CAPCOM
channels (IC, OC or PWM)
■ Data memory: 640 bytes true data EEPROM;
endurance 300 kcycles ■ 8-bit basic timer with 8-bit prescaler
■ RAM: 1 Kbytes ■ Auto wake-up timer
■ 2 watchdog timers: Window watchdog and
Clock, reset and supply management independent watchdog
■ 2.95 to 5.5 V operating voltage
Communications interfaces
■ Flexible clock control, 4 master clock sources:
– Low power crystal resonator oscillator ■ UART with clock output for synchronous
operation, Smartcard, IrDA, LIN master mode
– External clock input
– Internal, user-trimmable 16 MHz RC ■ SPI interface up to 8 Mbit/s
– Internal low power 128 kHz RC ■ I2C interface up to 400 Kbit/s
■ Clock security system with clock monitor
Analog to digital converter (ADC)
■ Power management:
■ 10-bit, ±1 LSB ADC with up to 7 multiplexed
– Low power modes (wait, active-halt, halt)
channels + 1 internal channel, scan mode and
– Switch-off peripheral clocks individually analog watchdog
■ Permanently active, low consumption power-
on and power-down reset I/Os
■ Up to 28 I/Os on a 32-pin package including 21
Interrupt management high sink outputs
■ Nested interrupt controller with 32 interrupts ■ Highly robust I/O design, immune against
■ Up to 28 external interrupts on 7 vectors current injection
■ Development support
Timers
– Embedded single wire interface module
■ Advanced control timer: 16-bit, 4 CAPCOM (SWIM) for fast on-chip programming and
channels, 3 complementary outputs, dead-time non intrusive debugging
insertion and flexible synchronization
Contents
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Product overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1 Central processing unit CR8F . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 Single wire interface module (SWIM) and debug module (DM) . . . . . . . . 12
4.3 Interrupt controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 Flash program and data EEPROM memory . . . . . . . . . . . . . . . . . . . . . . . 13
4.5 Clock controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.6 Power management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.7 Watchdog timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.8 Auto wakeup counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.9 Beeper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.10 TIM1 - 16-bit advanced control timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.11 TIM5 - 16-bit general purpose timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.12 TIM6 - 8-bit basic timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.13 Analog-to-digital converter (ADC1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.14 Communication interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.14.1 UART1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.14.2 SPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.14.3 I2C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7 Option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1 Parameter conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1.1 Minimum and maximum values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1.2 Typical values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1.3 Typical curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1.4 Loading capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
9.1.5 Pin input voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
9.2 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
9.3 Operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
9.3.1 VCAP external capacitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
9.3.2 Supply current characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
9.3.3 External clock sources and timing characteristics . . . . . . . . . . . . . . . . . 55
9.3.4 Internal clock sources and timing characteristics . . . . . . . . . . . . . . . . . 57
9.3.5 Memory characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.3.6 I/O port pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.3.7 Reset pin characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
9.3.8 SPI serial peripheral interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
9.3.9 I2C interface characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
9.3.10 10-bit ADC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
9.3.11 EMC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
10 Package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
10.1 Package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.1.1 LQFP package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
10.1.2 VFQFPN package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.2 Thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
10.2.1 Reference document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
10.2.2 Selecting the product temperature range . . . . . . . . . . . . . . . . . . . . . . . . 83
11 Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
13 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
List of tables
List of figures
1 Introduction
This datasheet contains the description of the CR8F612X features, pinout, electrical
characteristics, mechanical data and ordering information.
● For complete information on the CR8F microcontroller memory, registers and
peripherals, please refer to the CR8F microcontroller family reference manual
(RM0016).
● For information on programming, erasing and protection of the internal Flash memory
please refer to the CR8F Flash programming manual (PM0051).
● For information on the debug and SWIM (single wire interface module) refer to the
CR8F SWIM communication protocol and debug module user manual (UM0470).
● For information on the CR8F core, please refer to the CR8F CPU programming manual
(PM0044).
2 Description
The CR8F612X 8-bit microcontroller offers 8 Kbytes Flash program memory, plus
integrated true data EEPROM. The CR8F microcontroller family reference manual
(RM0016) refers to devices in this family as low-density. They provide the following benefits:
● Reduced system cost
– Integrated true data EEPROM for up to 300 k write/erase cycles
– High system integration level with internal clock oscillators, watchdog and brown-
out reset
● Performance and robustness
– 16 MHz CPU clock frequency
– Robust I/O, independent watchdogs with separate clock source
– Clock security system
● Full documentation and a wide choice of development tools
● Advanced core and peripherals made in a state-of-the art technology
RAM (bytes)
Low density
Pin count
(bytes)
(I/O)
3 Block diagram
Reset Reset
RC int. 16 MHz
Detector
POR BOR
RC int. 128 kHz
Window WDG
CR8F core
Independent WDG
640 bytes
data EEPROM
Address and data bus
8 Mbit/s SPI
Up to
4 CAPCOM
LIN master 16-bit advanced control channels
UART1 timer (TIM1)
SPI emul. + 3 complementary
outputs
16-bit general purpose Up to
Timer (TIM5) 3 CAPCOM
channels
1/2/4 kHz
Beeper AWU timer
beep
4 Product overview
The following section intends to give an overview of the basic features of the CR8F612X
functional modules and peripherals.
For more detailed information please refer to the corresponding family reference manual
(RM0016).
Addressing
● 20 addressing modes
● Indexed indirect addressing mode for look-up tables located anywhere in the address
space
● Stack pointer relative addressing mode for local variables and parameter passing
Instruction set
● 80 instructions with 2-byte average instruction size
● Standard data movement and logic/arithmetic functions
● 8-bit by 8-bit multiplication
● 16-bit by 8-bit and 16-bit by 16-bit division
● Bit manipulation
● Data transfer between stack and accumulator (push/pop) with direct stack access
● Data transfer using the X and Y registers or direct memory-to-memory transfers
4.2 Single wire interface module (SWIM) and debug module (DM)
The single wire interface module and debug module permits non-intrusive, real-time in-
circuit debugging and fast memory programming.
SWIM
Single wire interface module for direct access to the debug module and memory
programming. The interface can be activated in all device operation modes. The maximum
data transmission speed is 145 bytes/ms.
Debug module
The non-intrusive debugging module features a performance close to a full-featured
emulator. Beside memory and peripherals, also CPU operation can be monitored in real-
time by means of shadow registers.
● R/W to RAM and peripheral registers in real-time
● R/W access to all resources by stalling the CPU
● Breakpoints on all program-memory instructions (software breakpoints)
● Two advanced breakpoints, 23 predefined configurations
Low density
Flash program memory
(8 Kbytes)
Program memory area
Write access possible for IAP
Features
● Clock prescaler: To get the best compromise between speed and current
consumption the clock frequency to the CPU and peripherals can be adjusted by a
programmable prescaler.
● Safe clock switching: Clock sources can be changed safely on the fly in run mode
through a configuration register. The clock signal is not switched until the new clock
source is ready. The design guarantees glitch-free switching.
● Clock management: To reduce power consumption, the clock controller can stop the
clock to the core, individual peripherals or memory.
● Master clock sources: Four different clock sources can be used to drive the master
clock:
– 1-16 MHz high-speed external crystal (HSE)
– Up to 16 MHz high-speed user-external clock (HSE user-ext)
– 16 MHz high-speed internal RC oscillator (HSI)
– 128 kHz low-speed internal RC (LSI)
● Startup clock: After reset, the microcontroller restarts by default with an internal 2
MHz clock (HSI/8). The prescaler ratio and clock source can be changed by the
application program as soon as the code execution starts.
● Clock security system (CSS): This feature can be enabled by software. If an HSE
clock failure occurs, the internal RC (16 MHz/8) is automatically selected by the CSS
and an interrupt can optionally be generated.
● Configurable main clock output (CCO): This outputs an external clock for use by the
application.
4.9 Beeper
The beeper function outputs a signal on the BEEP pin for sound generation. The signal is in
the range of 1, 2 or 4 kHz.
4.14.1 UART1
Main features
● One Mbit/s full duplex SCI
● SPI emulation
● High precision baud rate generator
● Smartcard emulation
● IrDA SIR encoder decoder
● LIN master mode
● Single wire half duplex mode
Synchronous communication
● Full duplex synchronous transfers
● SPI master operation
● 8-bit data communication
● Maximum speed: 1 Mbit/s at 16 MHz (fCPU/16)
4.14.2 SPI
● Maximum speed: 8 Mbit/s (fMASTER/2) both for master and slave
● Full duplex synchronous transfers
● Simplex synchronous transfers on two lines with a possible bidirectional data line
● Master or slave operation - selectable by hardware or software
● CRC calculation
● 1 byte Tx and Rx buffer
● Slave/master selection input pin
4.14.3 I2C
● I2C master features:
– Clock generation
– Start and stop generation
2
● I C slave features:
– Programmable I2C address detection
– Stop bit detection
● Generation and detection of 7-bit/10-bit addressing and general call
● Supports different communication speeds:
– Standard speed (up to 100 kHz)
– Fast speed (up to 400 kHz)
PD3(HS)/AIN4/TIM5_CH2/ADC_ETR
PD5 (HS)/AIN5/UART1_TX
PD4(HS)BEEP/TIM5_CH1
PC6(HS)/SPI_MOSI
PC7(HS)/SPI_MIS0
PD0(HS)/TIMI_BKIN
PD1(HS)/SWIM
PD2(HS)
32 31 30 29 28 27 26 25
UART1-RX/AIN6/(HS)PD6 1 24 PC5(HS)/SPI_SCK
TLI/(HS)PD7 2 23 PC4(HS)/TIM1_CH4/CLK_CC0
NRST 3 22 PC3(HS)/TIM1_CH3
OSCIN/PA1 4 21 PC2 (HS)/TIM1_CH2
OSCOUT/PA2 5 20 PC1(HS)/TIM1_CH1/UART1_CK
VSS 6 19 PE5/SPI_NSS
VCAP 7 18 PB0(HS)/AIN0/CH1N_TIMI
VDD 8 17 PB1(HS)/AIN1/CH2N_TIM1
9 10 11 12 13 14 1516
TIM5_CH3/(HS)PA3
PF4
PB7
PB6
TIM1_CH3N/AIN2/(HS) PB2
I2C_SDA/(T)PB5
I2C_SCL/(T)PB4
TIM1_ETR/ AIN3/(HS) PB3
I2C_SCL/(T)PB4
Table 4. Legend/abbreviations
Type I= Input, O = Output, S = Power supply
Level Input CM = CMOS
Output HS = High sink
Output speed O1 = Slow (up to 2 MHz)
O2 = Fast (up to 10 MHz)
O3 = Fast/slow programmability with slow as default state after reset
O4 = Fast/slow programmability with fast as default state after reset
Port and control Input float = floating, wpu = weak pull-up
configuration
Output T = True open drain, OD = Open drain, PP = Push pull
Input Output
Alternate
Main function
(after reset)
function
Ext. interrupt
High sink(1)
Type
Pin name
Speed
no.
wpu
function remap
OD
PP
[option
bit]
Analog input 6/
1 PD6/AIN6/UART1_RX I/O X X X HS O3 X X Port D6 UART1 data
receive
Timer 1 -
2 PD7/TLI [TIM1_CH4] I/O X X X HS O3 X X Port D7 Top level interrupt channel 4
[AFR6]
3 NRST I/O X Reset
Resonator/crystal
4 PA1/OSCIN(2) I/O X X X O1 X X Port A1
in
Resonator/crystal
5 PA2/OSCOUT I/O X X X O1 X X Port A2
out
6 VSS S Digital ground
7 VCAP S 1.8 V regulator capacitor
8 VDD S Digital power supply
SPI
master/
slave
select
PA3/TIM5_CH3
9 I/O X X X HS O3 X X Port A3 Timer 5 channel 3 [AFR1]/
[SPI_NSS] [UART1_TX]
UART1
data
transmit
[AFR1:0]
UART1
data
10 PF4 [UART1_RX] I/O X X O1 X X Port F4
receive
[AFR1:0]
Input Output
Alternate
Main function
(after reset)
function
Ext. interrupt
High sink(1)
Type
Pin Default alternate after
floating
Pin name
Speed
wpu
no. function remap
OD
PP
[option
bit]
Timer 1 -
PB5/I2C_SDA (3) 2 break
13 I/O X X X O1 T X Port B5 I C data
[TIM1_BKIN] input
[AFR4]
ADC
PB4/I2C_SCL (3) 2 external
14 I/O X X X O1 T X Port B4 I C clock
[ADC_ETR] trigger
[AFR4]
Analog input 3/
15 PB3/AIN3/TIM1_ETR I/O X X X HS O3 X X Port B3 Timer 1 external
trigger
Analog input 2/
16 PB2/AIN2/TIM1_CH3N I/O X X X HS O3 X X Port B2 Timer 1 - inverted
channel 3
Analog input 1/
17 PB1/AIN1/TIM1_CH2N I/O X X X HS O3 X X Port B1 Timer 1 - inverted
channel 2
Analog input 0/
18 PB0/AIN0/TIM1_CH1N I/O X X X HS O3 X X Port B0 Timer 1 - inverted
channel 1
Timer 1 -
PE5/SPI_NSS SPI master/slave inverted
19 I/O X X X HS O3 X X Port E5
[TIM1_CH1N] select channel 1
[AFR1:0]
Timer 1 -
PC1/TIM1_CH1/
Timer 1 - channel 1 inverted
20 UART1_CK I/O X X X HS O3 X X Port C1
UART1 clock channel 2
[TIM1_CH2N]
[AFR1:0]
Input Output
Alternate
Main function
(after reset)
function
Ext. interrupt
High sink(1)
Type
Pin Default alternate after
floating
Pin name
Speed
wpu
no. function remap
OD
PP
[option
bit]
Timer 1 -
PC2/TIM1_CH2 inverted
21 I/O X X X HS O3 X X Port C2 Timer 1 - channel 2
[TIM1_CH3N] channel 3
[AFR1:0]
Analog
[AFR3]
PC3/TIM1_CH3 [TLI]
22 I/O X X X HS O3 X X Port C3 Timer 1 - channel 3 Timer 1
[TIM1_CH1N ]
inverted
channel 1
[AFR7]
Analog
input 2
PC4/TIM1_CH4/ Timer 1 - channel 4 [AFR2]
23 CLK_CCO [AIN2] I/O X X X HS O3 X X Port C4 /configurable clock Timer 1
[TIM1_CH2N] output inverted
channel 2
[AFR7]
Timer 5
PC5/SPI_SCK
24 I/O X X X HS O3 X X Port C5 SPI clock channel 1
[TIM5_CH1]
[AFR0]
Timer 1
PC6/SPI_MOSI SPI master out/
25 I/O X X X HS O3 X X Port C6 channel 1
[TIM1_CH1] slave in
[AFR0]
Timer 1
PC7/SPI_MISO SPI master in/ channel 2
26 I/O X X X HS O3 X X Port C7
[TIM1_CH2] slave out
[AFR0]
Con-
figurable
PD0/TIM1_BKIN Timer 1 - break
27 I/O X X X HS O3 X X Port D0 clock
[CLK_CCO] input
output
[AFR5]
Input Output
Alternate
Main function
(after reset)
function
Ext. interrupt
High sink(1)
Type
Pin Default alternate after
floating
Pin name
Speed
wpu
no. function remap
OD
PP
[option
bit]
UART
PD4/TIM5_CH1/BEEP Timer 5 - channel
31 I/O X X X HS O3 X X Port D4 clock
[UART1_CK] 1/BEEP output
[AFR2]
Analog input 5/
32 PD5/AIN5/UART1_TX I/O X X X HS O3 X X Port D5 UART1 data
transmit
1. I/O pins used simultaneously for high current source/sink must be uniformly spaced around the package. In addition, the
total driven current must respect the absolute maximum ratings ( see Table 15: Current characteristics.
2. When the MCU is in Halt/Active-halt mode, PA1 is automatically configured in input weak pull up and cannot be used for
waking up the device. In this mode, the output state of PA1 is not driven. It is recommended to use PA1 only in input mode
if Halt/Active-halt is used in the application.
3. In the open-drain output column, ‘T’ defines a true open-drain I/O (P-buffer and protection diode to VDD are not
implemented)
TIM5_CH1/BEEP/(HS)PD4 1 28 PD3(HS)/AIN4/TIM5_CH2/ADC_ETR
UART1_TX/AIN5/(HS)PD5 2 27 PD2(HS)/[AIN3]
UART1_RX/AIN6/(HS)PD6 3 26 PD1(HS)/SWIM
TLI/(HS)PD7 4 25 PD0(HS)/TIM1_BKIN
NRST 5 24 PC7(HS)/SPI_MISO
OSCIN/PA1 6 23 PC6(HS)/SPI_MOSI
OSCOUT/PA2 7 22 PC5(HS)/SPI_SCK
Vss 8 21 PC4(HS)/TIM1_CH4/CLK_CCO
VCAP 9 20 PC3(HS)/TIM1_CH3
VDD 10 19 PC2(HS)/TIM1_CH2
TIM5_CH3/(HS)PA3 11 18 PC1(HS)/TIM1_CH1/UART1_CK
PB7 12 17 PB0(HS)/AIN0/TIM1_CH1N
PB6 13 16 PB1(HS)/AIN1/TIM1_CH2N
TIM1_ETR/AIN3/(HS)PB3 14 15 PB2(HS)/AIN2/TIM1_CH3N
CR8F6125
UART1_RX/AIN6/(HS)PD6 1 2 4 PD5(HS)/AIN5/UART1_RX
NRST 2 2 3 PD4(HS)/BEEP/TIM5_CH1
OSCIN/PA1 3 2 2 PD3(HS)/AIN4/TIM5_CH2/ADC_ETR
OSCOUT/PA2 4 2 1 PD2(HS)
Vss 5 2 0 PD1(HS)/SWIM
VCAP 6 1 9 PC7(HS)/SPI_MISO
VDD 7 1 8 PC6(HS)/SPI_MOSI
TIM5_CH3/(HS)PA3 8 1 7 PC5(HS)/SPI_SCK
TIM1_ETR/AIN3/(HS)PB3 9 1 6 PC4(HS)/TIM1_CH4/CLK_CCO
TIM1_CH3N/AIN2/(HS)PB2 1 0 1 5 PC3(HS)/TIM1_CH3
TIM1_CH2N/AIN1/(HS)PB1 1 1 1 4 PC2(HS)/TIM1_CH2
TIM1_CH1N/AIN0/(HS)PB0 1 2 1 3 PC1(HS)/TIM1_CH1/UART1_CK
UART1_RX/AIN6/(HS)PD6 1 14 PD5(HS)/AIN5/UART1_TX
NRST 2 13 PD1(HS)/SWIM
OSCIN/PA1 3 12 PC2(HS)/TIM1_CH2
OSCOUT/PA2 4 11 PC1(HS)/TIM1_CH1/UART1_CK
VSS 5 10 PB0(HS)/AIN0/CH1N_TIM1
VCAP 6 9 PB1(HS)/AIN1/CH2N_TIM1
VDD 7 8 PB2(HS)/AIN2/CH3N_TIM1
7 Option bytes
Option bytes contain configurations for device hardware features as well as the memory
protection of the device. They are stored in a dedicated block of the memory. Except for the
ROP (read-out protection) byte, each option byte has to be stored twice, in a regular form
(OPTx) and a complemented one (NOPTx) for redundancy.
Option bytes can be modified in ICP mode (via SWIM) by accessing the EEPROM address
shown in Table 7: Option bytes below.
Option bytes can also be modified ‘on the fly’ by the application in IAP mode, except the
ROP option that can only be modified in ICP mode (via SWIM).
Refer to the CR8F Flash programming manual (PM0051) and CR8F SWIM
communication protocol and debug module user manual (UM0470) for information on SWIM
programming procedures.
Read-out
0x4800 protection OPT0 ROP[7:0] 00h
(ROP)
0x4803 Alternate OPT2 AFR7 AFR6 AFR5 AFR4 AFR3 AFR2 AFR1 AFR0 00h
function
0x4804 remapping NOPT2 NAFR7 NAFR6 NAFR5 NAFR4 NAFR3 NAFR2 NAFR1 NAFR0 FFh
(AFR)
0x00 0000
RAM
(1 Kbyte)
Reserved
0x00 4000
640 bytes data EEPROM
0x00 427F
0x00 4280 Reserved
0x00 47FF
0x00 4800 Option bytes
0x00 480A
0x00 480B
Reserved
0x00 4FFF
0x00 5000
GPIO and periph. reg.
0x00 57FF
(see Table 11 and
0x00 5800
Reserved
0x00 7EFF
0x00 7F00 CPU/SWIM/debug/ITC
0x00 7FFF registers (see Table 13 )
0x00 8000
32 interrupt vectors
0x00 807F
Flash program memory
0x00 9FFF
(8 Kbytes)
0x00 A000
Reserved
0x02 7FFF
0x
0x00 501E
to Reserved area (60 bytes)
0x00 5059
0x00 505A FLASH_CR1 Flash control register 1 0x00
0x00 505B FLASH_CR2 Flash control register 2 0x00
Flash complementary control
0x00 505C FLASH_NCR2 0xFF
register 2
0x00 505D Flash FLASH _FPR Flash protection register 0x00
Flash complementary protection
0x00 505E FLASH _NFPR 0xFF
register
Flash in-application programming
0x00 505F FLASH _IAPSR 0x00
status register
0x00 5060
to Reserved area (2 bytes)
0x00 5061
Flash program memory unprotection
0x00 5062 Flash FLASH _PUKR 0x00
register
0x00 5063 Reserved area (1 byte)
0x00 5064 Flash FLASH _DUKR Data EEPROM unprotection register 0x00
0x00 5065
to Reserved area (59 bytes)
0x00 509F
0x00 50A0 EXTI_CR1 External interrupt control register 1 0x00
ITC
0x00 50A1 EXTI_CR2 External interrupt control register 2 0x00
0x00 50A2
to Reserved area (17 bytes)
0x00 50B2
0x00 50B3 RST RST_SR Reset status register xx
0x00 50B4
to Reserved area (12 bytes)
0x00 50BF
0x00 50C0 CLK_ICKR Internal clock control register 0x01
CLK
0x00 50C1 CLK_ECKR External clock control register 0x00
0x00 50C2 Reserved area (1 byte)
9 Electrical characteristics
CR8F PIN
50 pF
CR8F PIN
VIN
fCPU [MHz]
FUNCTIONALITY
NOT GUARANTEED 16
IN THIS AREA
FUNCTIONALITY
12
GUARANTEED
@ TA -40 to 125 ¬
8
4
0
2.95 4.0 5.0 5.5
SUPPLY VOLTAGE [V]
ESR C ESL
Rleak
1. ESR is the equivalent series resistance and ESL is the equivalent inductance.
Table 19. Total current consumption with code execution in run mode at VDD = 5 V
Symbol Parameter Conditions Typ Max(1) Unit
Table 20. Total current consumption with code execution in run mode at VDD = 3.3 V
Symbol Parameter Conditions Typ Max(1) Unit
Table 24. Total current consumption in active halt mode at VDD = 3.3 V
Conditions
Max at Max at
Symbol Parameter Main voltage Typ Unit
Flash Clock 85 °C(1) 125 °C(1)
regulator
mode(3) source
(MVR)(2)
Supply current in Flash in operating mode, HSI clock after wakeup 60 75 100
IDD(H) µA
halt mode Flash in power-down mode, HSI clock after wakeup 4.5 12 30
1. Data based on characterization results, not tested in production
See
Wakeup time from wait note(2)
tWU(WFI)
mode to run mode(3)
fCPU = fMASTER = 16 MHz. 0.56
Flash in operating
1(6) 2(6)
MVR voltage mode(5)
regulator on(4) Flash in power-
3(6)
Wakeup time active halt down mode(5) HSI µs
tWU(AH)
mode to run mode(3) Flash in operating (after wakeup)
48(6)
MVR voltage mode(5)
regulator off(4) Flash in power-
50(6)
down mode(5)
Table 28. Total current consumption and timing in forced reset state
Symbol Parameter Conditions Typ Max(1) Unit
VDD = 5 V 400
IDD(R) Supply current in reset state(2) µA
VDD = 3.3 V 300
tRESETBL Reset pin release to vector fetch 150 µs
1. Data guaranteed by design, not tested in production.
2. Characterized with all I/Os tied to VSS.
Figure 9. Typ IDD(RUN) vs. VDD HSE user external clock, fCPU = 16 MHz
25˚C
2.3 85˚C
125˚C
2.25 -45˚C
2.2
2.1
2.05
TBD
2
1.95
1.9
1.85
1.8
2 2.5 3 3.5 4 4.5 5 5.5 6
VDD (V)
Figure 10. Typ IDD(RUN) vs. fCPU HSE user external clock, VDD = 5 V
25˚C
85˚C
125˚C
2.5 -45˚C
2
IDD_run_HSE (mA)
1.5
TBD
1
0.5
0
2 4 6 8 10 12 14 16 18
FCPU (MHz)
Figure 11. Typ IDD(RUN) vs. VDD HSI RC osc, fCPU = 16 MHz
25˚C
2 85˚C
125˚C
1.95 -45˚C
1.9
1.85
1.75
TBD
1.7
1.65
1.6
1.55
1.5
2 2.5 3 3.5 4 4.5 5 5.5 6
VDD (V)
Figure 12. Typ IDD(WFI) vs. VDD HSE user external clock, fCPU = 16 MHz
25˚C
1.8 85˚C
125˚C
1.6 -45˚C
1.4
IDD WFI HSE (mA)
1.2
0.8 TBD
0.6
0.4
0.2
0
2 2.5 3 3.5 4 4.5 5 5.5 6
VDD (V)
Figure 13. Typ IDD(WFI) vs. fCPU HSE user external clock, VDD = 5 V
25˚C
1.8 85˚C
125˚C
1.6 -45˚C
1.4
IDD_WFI_HSE (mA)
1.2
0.8 TBD
0.6
0.4
0.2
0
2 4 6 8 10 12 14 16 18
FCPU (MHz)
Figure 14. Typ IDD(WFI) vs. VDD HSI RC osc, fCPU = 16 MHz
25˚C
1.8 85˚C
125˚C
1.6 -45˚C
1.4
1.2
IDD_WFI_HSI (mA)
1
0.8 TBD
0.6
0.4
0.2
0
2 2.5 3 3.5 4 4.5 5 5.5 6
FCPU (MHz)
VHSEH
VHSEL
fHSE
External clock
source OSCIN
CR8F
CO RF
Lm
CL1
Cm OSCIN
gm
Resonator
Consumption
control
Resonator
CR8F
OSCOUT
CL2
3.00%
2.00%
1.00%
0.00%
max
-1.00%
TBD min
-2.00%
-3.00%
-4.00%
-5.00%
-40 0 25 85 125
25˚C
85˚C
1.00% 125˚C
-45˚C
0.50%
0.00%
% accuracy
-0.50% TBD
-1.00%
-1.50%
-2.00%
2.5 3 3.5 4 4.5 5 5.5 6
VDD (V)
25˚C
85˚C
5.00% 125˚C
-45˚C
4.00%
3.00%
2.00%
% accuracy
1.00%
0.00%
-1.00%
-2.00%
-3.00%
-4.00%
-5.00%
2 2.5 3 3.5 4 4.5 5 5.5 6
VDD (V)
VRM Data retention mode(1) Halt mode (or reset) 2.8 V(2) V
1. Minimum supply voltage without losing data stored in RAM (in halt mode or under reset) or in hardware
registers (only in halt mode). Guaranteed by design, not tested in production.
2. Refer to Table 18 on page 45 for the value of VIT-max
Operating voltage
VDD fCPU ≤ 16 MHz 2.95 5.5 V
(all modes, execution/write/erase)
Standard programming time
(including erase) for byte/word/block 6 6.6
tprog (1 byte/4 bytes/64 bytes)
ms
Fast programming time for 1 block (64
3 3.33
bytes)
terase Erase time for 1 block (64 bytes) 3 3.33
Erase/write cycles(2)
TA = +85 °C 10 k
NRW (program memory) cycles
Erase/write cycles (data memory)(2) TA = +125 °C 300 k 1M
Data retention (program and data
memory) after 10k erase/write cycles TRET = 55°C 20
at TA = +55 °C
tRET years
Data retention (data memory) after
300k erase/write cycles TRET = 85°C 1
at TA = +125 °C
Supply current (Flash programming or
IDD 2 mA
erasing for 1 to 128 bytes)
1. Data based on characterization results, not tested in production.
2. The physical granularity of the memory is 4 bytes, so cycling is performed on 4 bytes even when a
write/erase operation addresses a single byte.
-40˚C
6
25˚C
5 85˚C
125˚C
4
0
2.5 3 3.5 4 4.5 5 5.5 6
VDD [V]
50
45
TBD
40
35
30
2.5 3 3.5 4 4.5 5 5.5 6
VDD [V]
140
120
100
Pull-up current [µA]
80
60
Alain to send -40˚C
25˚C
40 85˚C
20
125˚C
0
0 1 2 3 4 5 6
VDD [V]
Output low level with 4 pins sunk IIO = 4 mA, VDD = 3.3 V 1(1)
VOL
Output low level with 8 pins sunk IIO= 10 mA, VDD = 5 V 2
V
(1)
Output high level with 4 pins sourced IIO = 4 mA, VDD = 3.3 V 2.1
VOH
Output high level with 8 pins sourced IIO = 10 mA, VDD = 5 V 2.8
1. Data based on characterization results, not tested in production
Output low level with 4 pins sunk IIO = 10 mA, VDD = 3.3 V 1(1)
VOL Output low level with 8 pins sunk IIO = 10 mA, VDD = 5 V 0.8
Output low level with 4 pins sunk IIO = 20 mA, VDD = 5 V 1.5(1)
V
Output high level with 4 pins sourced IIO = 10 mA, VDD = 3.3 V 2.1(1)
VOH Output high level with 8 pins sourced IIO = 10 mA, VDD = 5 V 4.0
Output high level with 4 pins sourced IIO = 20 mA, VDD = 5 V 3.3(1)
1. Data based on characterization results, not tested in production
-40˚C
1.5
25˚C
1.25 85˚C
125˚C
1
VOL [V]
0.75
TBD
0.5
0.25
0
0 1 2 3 4 5 6 7
IOL [mA]
-40˚C
1.5
25˚C
1.25 85˚C
125˚C
1
VOL [V]
0.75
TBD
0.5
0.25
0
0 2 4 6 8 10 12
IOL [mA]
Figure 25. Typ. VOL @ VDD = 3.3 V (true open drain ports)
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VOL[V]
Alain
1
to send
0.75
0.5
0.25
0
0 2 4 6 8 10 12 14
IOL [mA]
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VOL[V]
1
TBD
0.75
0.5
0.25
0
0 5 10 15 20 25
IOL [mA]
-40˚C
1.5
25˚C
1.25 85˚C
125˚C
1
VOL[V]
0.75
TBD
0.5
0.25
0
0 2 4 6 8 10 12 14
IOL [mA]
-40˚C
1.5
25˚C
1.25 85˚C
125˚C
1
VOL[V]
0.75
Alain to send
0.5
0.25
0
0 5 10 15 20 25
IOL [mA]
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VDD - VOH[V]
1
TBD
0.75
0.5
0.25
0
0 1 2 3 4 5 6 7
IOH [mA]
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VDD - VOH[V]
1
TBD
0.75
0.5
0.25
0
0 2 4 6 8 10 12
IOH [mA]
Figure 31. Typ. VDD - VOH @ VDD = 3.3 V (high sink ports)
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VDD - VOH[V]
1
Alain to send
0.75
0.5
0.25
0
0 2 4 6 8 10 12 14
IOH [mA]
-40˚C
2
25˚C
1.75
85˚C
1.5 125˚C
1.25
VDD - VOH[V]
1
Alain to send
0.75
0.5
0.25
0
0 5 10 15 20 25
IOH [mA]
VIL(NRST) NRST Input low level voltage (1) -0.3 V 0.3 x VDD
0.7 x VDD +
VIH(NRST) NRST Input high level voltage (1) V
VDD 0.3
VOL(NRST) NRST Output low level voltage (1) IOL=2 mA 0.5
(2)
RPU(NRST) NRST Pull-up resistor 30 40 60 kΩ
(3)
tIFP(NRST) NRST Input filtered pulse 75 ns
tINFP(NRST) NRST Input not filtered pulse (3) 500 ns
tOP(NRST) (3)
NRST output pulse 20 µs
1. Data based on characterization results, not tested in production.
2. The RPU pull-up equivalent resistor is based on a resistive transistor
3. Data guaranteed by design, not tested in production.
-40˚C
6
25˚C
5 85˚C
125˚C
4
VIL / VIH [V]
3
TBD
2
0
2.5 3 3.5 4 4.5 5 5.5 6
VDD [V]
50
45
TBD
40
35
30
2.5 3 3.5 4 4.5 5 5.5 6
VDD [V]
140
120
80
60
TBD -40˚C
25˚C
40
85˚C
20 125˚C
0
0 1 2 3 4 5 6
VDD [V]
The reset network shown in Figure 36 protects the device against parasitic resets. The user
must ensure that the level on the NRST pin can go below the VIL max. level specified in
Table 36. Otherwise the reset is not taken into account internally.
VDD CR8F
RPU
External NRST Internal reset
reset Filter
circuit
0.01 µF
(optional)
NSS input
tSU(NSS) tc(SCK) th(NSS)
CPHA= 0
SCK Input
CPOL=0
tw(SCKH)
CPHA= 0 tw(SCKL)
CPOL=1
NSS input
tSU(NSS) tc(SCK) th(NSS)
CPHA=1
SCK Input
CPOL=0
tw(SCKH)
CPHA=1 tw(SCKL)
CPOL=1
ai14135
1. Measurement points are done at CMOS levels: 0.3VDD and 0.7 VDD.
High
NSS input
tc(SCK)
CPHA= 0
SCK Input
CPOL=0
CPHA= 0
CPOL=1
CPHA=1
SCK Input
CPOL=0
CPHA=1
CPOL=1
tw(SCKH) tr(SCK)
tsu(MI) tw(SCKL) tf(SCK)
MISO
INP UT MS BIN BI T6 IN LSB IN
th(MI)
MOSI
M SB OUT B I T1 OUT LSB OUT
OUTUT
tv(MO) th(MO)
ai14136
1. Measurement points are done at CMOS levels: 0.3VDD and 0.7 VDD.
Table 45. ADC accuracy with RAIN < 10 kΩ RAIN, VDD = 3.3 V
Symbol Parameter Conditions Typ Max(1) Unit
0 1 2 3 4 5 6 7 1021102210231024
VSSA VDD
VDD CR8F
VT
0.6V
RAIN AINx
VAIN 10-bit A/D
conversion
CAIN VT
0.6V IL CADC
¬
Max fHSE/fCPU(1)
Symbol Parameter Unit
Monitored
General conditions
frequency band 16 MHz/ 16 MHz/
8 MHz 16 MHz
0.1MHz to 30 MHz 2 3
VDD = 5 V
Peak level TA = 25 °C 30 MHz to 130 MHz 10 10 dBµV
SEMI
LQFP32 package 130 MHz to 1 GHz 5 7
Conforming to SAE J 1752/3
SAE EMI level SAE EMI level 2.5 2.5
1. Data based on characterization results, not tested in production.
Static latch-up
Two complementary static tests are required on six parts to assess the latch-up
performance:
● A supply overvoltage (applied to each power supply pin)
● A current injection (applied to each input, output and configurable I/O pin) are
performed on each sample.
This test conforms to the EIA/JESD 78 IC latch-up standard. For more details, refer to the
application note AN1181.
TA = 25 °C A
LU Static latch-up class TA = 85 °C A
TA = 125 °C A
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the
JEDEC specifications, that means when a device belongs to class A it exceeds the JEDEC standard. B
class strictly covers all the JEDEC criteria (international standard).
10 Package characteristics
D1
D3 A
A2
24 17
16
25 L1
b
E3 E1 E
32
9
L
Pin 1 A1 K
identification 1 8 c
5V_ME
Table 50. 32-pin low profile quad flat package mechanical data
mm inches(1)
Dim.
Min Typ Max Min Typ Max
A 1.600 0.0630
A1 0.050 0.150 0.0020 0.0059
A2 1.350 1.400 1.450 0.0531 0.0551 0.0571
b 0.300 0.370 0.450 0.0118 0.0146 0.0177
c 0.090 0.200 0.0035 0.0079
D 8.800 9.000 9.200 0.3465 0.3543 0.3622
D1 6.800 7.000 7.200 0.2677 0.2756 0.2835
D3 5.600 0.2205
E 8.800 9.000 9.200 0.3465 0.3543 0.3622
E1 6.800 7.000 7.200 0.2677 0.2756 0.2835
E3 5.600 0.2205
e 0.800 0.0315
L 0.450 0.600 0.750 0.0177 0.0236 0.0295
L1 1.000 0.0394
k 0.0° 3.5° 7.0° 0.0° 3.5° 7.0°
ccc 0.100 0.0039
1. Values in inches are converted from mm and rounded to 4 decimal digits
Figure 43. 32-lead very thin fine pitch quad flat no-lead package (5 x 5)
Seating plane
C
ddd C
A
A3 A1
D
e
9 16
8 17
E2 b E
24
1
L
32
Pin # 1 ID
R = 0.30 D2
L
Bottom view 42_ME
Table 51. 32-lead very thin fine pitch quad flat no-lead package mechanical data
mm inches(1)
Dim.
Min Typ Max Min Typ Max
A3 0.20 0.0079
e 0.50 0.0197
0.5mm
0.8mm
[0.032"]
4mm
[0.157"]
0.5mm
4mm [0.157"]
ai15319
Bottom view
Development tools for the CR8F microcontrollers include the full-featured STice emulation
system supported by a complete software tool package including C compiler, assembler and
integrated development environment with high-level language debugger. In addition, the
CR8F is to be supported by a complete range of tools including starter kits, evaluation
boards and a low-cost in-circuit debugger/programmer.
13 Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.