Data Sheet PWM Ptar
Data Sheet PWM Ptar
ST72314J/N, ST72124J
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY,
ADC, 16-BIT TIMERS, SPI, SCI INTERFACES
■ Memories
– 8K or 16K Program memory (ROM or single
voltage FLASH) with read-out protection and
in-situ programming (remote ISP)
– 256 bytes EEPROM Data memory (with read-
out protection option in ROM devices)
– 384 or 512 bytes RAM
■ Clock, Reset and Supply Management
PSDIP56 PSDIP42
– Enhanced reset system
– Enhanced low voltage supply supervisor with
3 programmable levels
– Clock sources: crystal/ceramic resonator os-
cillators or RC oscillators, external clock,
backup Clock Security System
– 4 Power Saving Modes: Halt, Active-Halt,
Wait and Slow
– Beep and clock-out capabilities
TQFP64 TQFP44
■ Interrupt Management
14 x 14 10 x 10
– 10 interrupt vectors plus TRAP and RESET
– 15 external interrupt lines (4 vectors)
■ 44 or 32 I/O Ports ■ 1 Analog Peripheral
– 44 or 32 multifunctional bidirectional I/O lines: – 8-bit ADC with 8 input channels (6 only on
– 21 or 19 alternate function lines ST72334Jx, not available on ST72124J2)
– 12 or 8 high sink outputs
■ 4 Timers ■ Instruction Set
– Configurable watchdog timer – 8-bit data manipulation
– Realtime base – 63 basic instructions
– Two 16-bit timers with: 2 input captures (only – 17 main addressing modes
one on timer A), 2 output compares (only one
on timer A), External clock input on timer A, – 8 x 8 unsigned multiply instruction
PWM and Pulse generator modes – True bit manipulation
■ 2 Communications Interfaces
– SPI synchronous serial interface ■ Development Tools
– SCI asynchronous serial interface (LIN com- – Full hardware/software development package
patible)
Device Summary
Features ST72124J2 ST72314J2 ST72314J4 ST72314N2 ST72314N4 ST72334J2 ST72334J4 ST72334N2 ST72334N4
Program memory - bytes 8K 8K 16K 8K 16K 8K 16K 8K 16K
RAM (stack) - bytes 384 (256) 384 (256) 512 (256) 384 (256) 512 (256) 384 (256) 512 (256) 384 (256) 512 (256)
EEPROM - bytes - - - - - 256 256 256 256
Watchdog, Two 16-bit Timers, SPI, SCI
Peripherals
- ADC
Operating Supply 3.2V to 5.5V
CPU Frequency Up to 8 MHz (with up to 16 MHz oscillator)
Operating Temperature -40°C to +85°C (-40°C to +105/125°C optional)
Packages TQFP44 / SDIP42 TQFP64 / SDIP56 TQFP44 / SDIP42 TQFP64 / SDIP56
Rev. 2.4
1
Table of Contents
1 PREAMBLE: ST72C334 VERSUS ST72E331 SPECIFICATION . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
4 REGISTER & MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2
5 FLASH PROGRAM MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 6
5.3 STRUCTURAL ORGANISATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.4 IN-SITU PROGRAMMING (ISP) MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.5 MEMORY READ-OUT PROTECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6 DATA EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.3 MEMORY ACCESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.4 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.5 ACCESS ERROR HANDLING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.6 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7 DATA EEPROM Register Map and Reset Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.1 READ-OUT PROTECTION OPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
8 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.3 CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
9 SUPPLY, RESET AND CLOCK MANAGEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
9.1 LOW VOLTAGE DETECTOR (LVD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
9.2 RESET SEQUENCE MANAGER (RSM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
9.3 MULTI-OSCILLATOR (MO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9.4 CLOCK SECURITY SYSTEM (CSS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
9.5 SUPPLY, RESET AND CLOCK REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . 31
10 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
10.1 NON MASKABLE SOFTWARE INTERRUPT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
10.2 EXTERNAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
10.3 PERIPHERAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
11 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
11.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
11.2 SLOW MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
11.3 WAIT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
11.4 ACTIVE-HALT AND HALT MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
12 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
12.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
151
12.2 FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
12.3 I/O PORT IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
2/151
2
Table of Contents
12.4 LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
12.5 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
13 MISCELLANEOUS REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
13.1 I/O PORT INTERRUPT SENSITIVITY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
13.2 I/O PORT ALTERNATE FUNCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
13.3 REGISTERS DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
14 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
14.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
14.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK TIMER (MCC/RTC) . . . . . . . 51
14.3 16-BIT TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
14.4 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
14.5 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
14.6 8-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
15 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
15.1 ST7 ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
15.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
16 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
16.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
16.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
16.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
16.4 SUPPLY CURRENT CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
16.5 CLOCK AND TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
16.6 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
16.7 EMC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
16.8 I/O PORT PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
16.9 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
16.10 TIMER PERIPHERAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
16.11 COMMUNICATION INTERFACE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . 134
16.12 8-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
17 PACKAGE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
17.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
17.2 SOLDERING AND GLUEABILITY INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
18 DEVICE CONFIGURATION AND ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . 143
18.1 OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
18.2 TRANSFER OF CUSTOMER CODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
18.3 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
18.4 ST7 APPLICATION NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
18.5 TO GET MORE INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
19 SUMMARY OF CHANGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
3/151
3
ST72334J/N, ST72314J/N, ST72124J
4/151
ST72334J/N, ST72314J/N, ST72124J
8-BIT CORE
PROGRAM
ALU
MEMORY
(8K or 16K Bytes)
RESET
CONTROL
ISPSEL
RAM
VDD (384 or 512 Bytes)
VSS LVD
MCC/RTC PA7:0
PORT A (8-BIT for N versions)
(5-BIT for J versions)
PORT B PB7:0
PORT F (8-BIT for N versions)
PF7,6,4,2:0 (5-BIT for J versions)
(6-BIT)
TIMER A PORT C
TIMER B PC7:0
BEEP (8-BIT)
PORT E SPI
PE7:0
(6-BIT for N versions)
(2-BIT for J versions) SCI PORT D
PD7:0
(8-BIT for N versions)
8-BIT ADC (6-BIT for J versions)
WATCHDOG
VDDA
VSSA
5/151
ST72334J/N, ST72314J/N, ST72124J
3 PIN DESCRIPTION
Figure 2. 64-Pin TQFP Package Pinout (N versions)
PE0 / TDO
PE1 / RDI
PA7 (HS)
PA6 (HS)
PA5 (HS)
PA4 (HS)
ISPSEL
RESET
VDD_2
VSS_2
OSC1
OSC2
NC
NC
NC
NC
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
(HS) PE4 1 48 VSS_1
(HS) PE5 2 47 VDD_1
(HS) PE6 3 46 PA3
(HS) PE7 4 45 PA2
ei0
PB0 5 44 PA1
PB1 6 43 PA0
PB2 ei2 42 PC7 / SS
7
PB3 8 41 PC6 / SCK / ISPCLK
PB4 9 40 PC5 / MOSI
PB5 10 39 PC4 / MISO / ISPDATA
PB6 11 ei3 38 PC3 (HS) / ICAP1_B
PB7 12 37 PC2 (HS) / ICAP2_B
AIN0 / PD0 13 36 PC1 / OCMP1_B
AIN1 / PD1 14 35 PC0 / OCMP2_B
AIN2 / PD2 15 ei1 34 VSS_0
AIN3 / PD3 16 33 VDD_0
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
VDD_3
VSS_3
VDDA
VSSA
NC
NC
AIN4 / PD4
AIN5 / PD5
AIN6 / PD6
AIN7 / PD7
MCO / PF0
PF2
OCMP1_A / PF4
6/151
ST72334J/N, ST72314J/N, ST72124J
PB4 1 56 PB3
PB5 2 55 PB2
ei3 ei2
PB6 3 54 PB1
PB7 4 53 PB0
AIN0 / PD0 5 52 PE7 (HS)
AIN1 / PD1 6 51 PE6 (HS)
AIN2 / PD2 7 50 PE5 (HS)
AIN3 / PD3 8 49 PE4 (HS)
AIN4 / PD4 9 48 PE1 / RDI
AIN5 / PD5 10 47 PE0 / TDO
AIN6 / PD6 11 46 VDD_2
AIN7 / PD7 12 45 OSC1
VDDA 13 44 OSC2
VSSA 14 43 VSS_2
MCO / PF0 15 42 RESET
BEEP / PF1 16 ei1 41 ISPSEL
PF2 17 40 PA7 (HS)
OCMP1_A / PF4 18 39 PA6 (HS)I
ICAP1_A / (HS) PF6 19 38 PA5 (HS)
EXTCLK_A / (HS) PF7 20 37 PA4 (HS)
VDD_0 21 36 VSS_1
VSS_0 22 35 VDD_1
OCMP2_B / PC0 23 34 PA3
OCMP1_B / PC1 24 33 PA2
ei0
ICAP2_B / (HS) PC2 25 32 PA1
ICAP1_B / (HS) PC3 26 31 PA0
ISPDATA/ MISO / PC4 27 30 PC7 / SS
MOSI / PC5 28 29 PC6 / SCK / ISPCLK
7/151
ST72334J/N, ST72314J/N, ST72124J
PE0 / TDO
PA7 (HS)
PA6 (HS)
PA5 (HS)
PA4 (HS)
ISPSEL
RESET
VDD_2
VSS_2
OSC1
OSC2
44 43 42 41 40 39 38 37 36 35 34
PE1 / RDI 1 33 VSS_1
PB0 2 32 VDD_1
PB1 3 ei0 31 PA3
ei2
PB2 4 30 PC7 / SS
PB3 5 29 PC6 / SCK / ISPCLK
PB4 6 ei3 28 PC5 / MOSI
AIN0 / PD0 7 27 PC4 / MISO / ISPDATA
AIN1 / PD1 8 26 PC3 (HS) / ICAP1_B
AIN2 / PD2 9 25 PC2 (HS) / ICAP2_B
AIN3 / PD3 10 ei1 24 PC1 / OCMP1_B
AIN4 / PD4 11 23 PC0 / OCMP2_B
12 13 14 15 16 17 18 19 20 21 22
VDDA
VSSA
AIN5 / PD5
MCO / PF0
PF2
BEEP / PF1
OCMP1_A / PF4
ICAP1_A / (HS) PF6
EXTCLK_A / (HS) PF7
VDD_0
VSS_0
8/151
ST72334J/N, ST72314J/N, ST72124J
SDIP42
QFP44
(after
float
wpu
ana
OD
PP
int
reset)
1 49 PE4 (HS) I/O CT HS X X X X Port E4
2 50 PE5 (HS) I/O CT HS X X X X Port E5
3 51 PE6 (HS) I/O CT HS X X X X Port E6
4 52 PE7 (HS) I/O CT HS X X X X Port E7
5 53 2 39 PB0 I/O CT X ei2 X X Port B0
6 54 3 40 PB1 I/O CT X ei2 X X Port B1
7 55 4 41 PB2 I/O CT X ei2 X X Port B2
8 56 5 42 PB3 I/O CT X ei2 X X Port B3
9 1 6 1 PB4 I/O CT X ei3 X X Port B4
10 2 PB5 I/O CT X ei3 X X Port B5
11 3 PB6 I/O CT X ei3 X X Port B6
12 4 PB7 I/O CT X ei3 X X Port B7
13 5 7 2 PD0/AIN0 I/O CT X X X X X Port D0 ADC Analog Input 0
14 6 8 3 PD1/AIN1 I/O CT X X X X X Port D1 ADC Analog Input 1
15 7 9 4 PD2/AIN2 I/O CT X X X X X Port D2 ADC Analog Input 2
16 8 10 5 PD3/AIN3 I/O CT X X X X X Port D3 ADC Analog Input 3
17 9 11 6 PD4/AIN4 I/O CT X X X X X Port D4 ADC Analog Input 4
18 10 12 7 PD5/AIN5 I/O CT X X X X X Port D5 ADC Analog Input 5
19 11 PD6/AIN6 I/O CT X X X X X Port D6 ADC Analog Input 6
20 12 PD7/AIN7 I/O CT X X X X X Port D7 ADC Analog Input 7
21 13 13 8 VDDA S Analog Power Supply Voltage
22 14 14 9 VSSA S Analog Ground Voltage
23 VDD_3 S Digital Main Supply Voltage
9/151
ST72334J/N, ST72314J/N, ST72124J
Type
TQFP64
Output
SDIP56
SDIP42
Input
(after
float
wpu
ana
OD
PP
int
reset)
24 VSS_3 S Digital Ground Voltage
25 15 15 10 PF0/MCO I/O CT X ei1 X X Port F0 Main clock output (fOSC/2)
26 16 16 11 PF1/BEEP I/O CT X ei1 X X Port F1 Beep signal output
27 17 17 12 PF2 I/O CT X ei1 X X Port F2
28 NC Not Connected
29 18 18 13 PF4/OCMP1_A I/O CT X X X X Port F4 Timer A Output Compare 1
30 NC Not Connected
31 19 19 14 PF6 (HS)/ICAP1_A I/O CT HS X X X X Port F6 Timer A Input Capture 1
32 20 20 15 PF7 (HS)/EXTCLK_A I/O CT HS X X X X Port F7 Timer A External Clock Source
33 21 21 VDD_0 S Digital Main Supply Voltage
34 22 22 VSS_0 S Digital Ground Voltage
35 23 23 16 PC0/OCMP2_B I/O CT X X X X Port C0 Timer B Output Compare 2
36 24 24 17 PC1/OCMP1_B I/O CT X X X X Port C1 Timer B Output Compare 1
37 25 25 18 PC2 (HS)/ICAP2_B I/O CT HS X X X X Port C2 Timer B Input Capture 2
38 26 26 19 PC3 (HS)/ICAP1_B I/O CT HS X X X X Port C3 Timer B Input Capture 1
39 27 27 20 PC4/MISO I/O CT X X X X Port C4 SPI Master In / Slave Out Data
40 28 28 21 PC5/MOSI I/O CT X X X X Port C5 SPI Master Out / Slave In Data
41 29 29 22 PC6/SCK I/O CT X X X X Port C6 SPI Serial Clock
42 30 30 23 PC7/SS I/O CT X X X X Port C7 SPI Slave Select (active low)
43 31 PA0 I/O CT X ei0 X X Port A0
44 32 PA1 I/O CT X ei0 X X Port A1
45 33 PA2 I/O CT X ei0 X X Port A2
46 34 31 24 PA3 I/O CT X ei0 X X Port A3
47 35 32 25 VDD_1 S Digital Main Supply Voltage
48 36 33 26 VSS_1 S Digital Ground Voltage
49 37 34 27 PA4 (HS) I/O CT HS X X X X Port A4
50 38 35 28 PA5 (HS) I/O CT HS X X X X Port A5
51 39 36 29 PA6 (HS) I/O CT HS X T Port A6
52 40 37 30 PA7 (HS) I/O CT HS X T Port A7
Must be tied low in user mode. In pro-
gramming mode when available, this pin
53 41 38 31 ISPSEL I
acts as In-Situ Programming mode se-
lection.
Top priority non maskable interrupt (ac-
54 42 39 32 RESET I/O C X X
tive low)
55 NC
Not Connected
56 NC
57 43 40 33 VSS_3 S Digital Ground Voltage
Resonator oscillator inverter output or
58 44 41 34 OSC2 3) O
capacitor input for RC oscillator
10/151
ST72334J/N, ST72314J/N, ST72124J
Type
TQFP64
Output
SDIP56
SDIP42
Input
(after
float
wpu
ana
OD
PP
int
reset)
External clock input or Resonator oscilla-
59 45 42 35 OSC1 3) I tor inverter input or resistor input for RC
oscillator
60 46 43 36 VDD_3 S Digital Main Supply Voltage
61 47 44 37 PE0/TDO I/O CT X X X X Port E0 SCI Transmit Data Out
62 48 1 38 PE1/RDI I/O CT X X X X Port E1 SCI Receive Data In
63 NC
Not Connected
64 NC
Notes:
1. In the interrupt input column, “eix” defines the associated external interrupt vector. If the weak pull-up
column (wpu) is merged with the interrupt column (int), then the I/O configuration is pull-up interrupt input,
else the configuration is floating interrupt input.
2. In the open drain output column, “T” defines a true open drain I/O (P-Buffer and protection diode to VDD
are not implemented). See Section 12 "I/O PORTS" on page 38 and Section 16.8 "I/O PORT PIN CHAR-
ACTERISTICS" on page 127 for more details.
3. OSC1 and OSC2 pins connect a crystal or ceramic resonator, an external RC, or an external source to
the on-chip oscillator see Section 3 "PIN DESCRIPTION" on page 6 and Section 16.5 "CLOCK AND TIM-
ING CHARACTERISTICS" on page 115 for more details.
11/151
ST72334J/N, ST72314J/N, ST72124J
12/151
ST72334J/N, ST72314J/N, ST72124J
Register Reset
Address Block Register Name Remarks
Label Status
0017h
to Reserved Area (9 Bytes)
001Fh
0024h
to Reserved Area (5 Bytes)
0028h
0029h MCC MCCSR Main Clock Control / Status Register 01h R/W
13/151
ST72334J/N, ST72314J/N, ST72124J
Register Reset
Address Block Register Name Remarks
Label Status
002Bh CRSR Clock, Reset, Supply Control / Status Register 000x 000x R/W
002Dh
Reserved Area (4 Bytes)
0030h
14/151
ST72334J/N, ST72314J/N, ST72124J
Register Reset
Address Block Register Name Remarks
Label Status
0058h
Reserved Area (24 Bytes)
006Fh
0072h
to Reserved Area (14 Bytes)
007Fh
15/151
ST72334J/N, ST72314J/N, ST72124J
5.1 INTRODUCTION This mode needs five signals (plus the VDD signal
if necessary) to be connected to the programming
FLASH devices have a single voltage non-volatile tool. This signals are:
FLASH memory that may be programmed in-situ
(or plugged in a programming tool) on a byte-by- – RESET: device reset
byte basis. – VSS: device ground power supply
– ISPCLK: ISP output serial clock pin
5.2 MAIN FEATURES – ISPDATA: ISP input serial data pin
– ISPSEL: Remote ISP mode selection. This pin
■ Remote In-Situ Programming (ISP) mode must be connected to VSS on the application
board through a pull-down resistor.
■ Up to 16 bytes programmed in the same cycle
If any of these pins are used for other purposes on
■ MTP memory (Multiple Time Programmable) the application, a serial resistor has to be imple-
■ Read-out memory protection against piracy mented to avoid a conflict if the other device forces
the signal level.
5.3 STRUCTURAL ORGANISATION Figure 6 shows a typical hardware interface to a
standard ST7 programming tool. For more details
The FLASH program memory is organised in a on the pin locations, refer to the device pinout de-
single 8-bit wide memory block which can be used scription.
for storing both code and data constants. Figure 6. Typical Remote ISP Interface
The FLASH program memory is mapped in the up- HE10 CONNECTOR TYPE
per part of the ST7 addressing space and includes TO PROGRAMMING TOOL
XTAL
the reset and interrupt user vector area .
OSC1
VDD
16/151
ST72334J/N, ST72314J/N, ST72124J
6 DATA EEPROM
FALLING
EEPROM INTERRUPT EDGE
DETECTOR
HIGH VOLTAGE
PUMP
RESERVED EEPROM
EECSR
0 0 0 0 0 IE LAT PGM
EEPROM
ADDRESS 4 ROW
MEMORY MATRIX
DECODER DECODER
(1 ROW = 16 x 8 BITS)
128 128
4 DATA 16 x 8 BITS
MULTIPLEXER DATA LATCHES
17/151
ST72334J/N, ST72314J/N, ST72124J
6.3 MEMORY ACCESS When PGM bit is set by the software, all the previ-
ous bytes written in the data latches (up to 16) are
The Data EEPROM memory read/write access programmed in the EEPROM cells. The effective
modes are controlled by the LAT bit of the EEP- high address (row) is determined by the last EEP-
ROM Control/Status register (EECSR). The flow- ROM write sequence. To avoid wrong program-
chart in Figure 8 describes these different memory ming, the user must take care that all the bytes
access modes. written between two programming sequences
Read Operation (LAT=0) have the same high address: only the four Least
Significant Bits of the address can change.
The EEPROM can be read as a normal ROM loca-
tion when the LAT bit of the EECSR register is At the end of the programming cycle, the PGM and
cleared. In a read cycle, the byte to be accessed is LAT bits are cleared simultaneously, and an inter-
put on the data bus in less than 1 CPU clock cycle. rupt is generated if the IE bit is set. The Data EEP-
This means that reading data from EEPROM ROM interrupt request is cleared by hardware
takes the same time as reading data from when the Data EEPROM interrupt vector is
EPROM, but this memory cannot be used to exe- fetched.
cute machine code. Note: Care should be taken during the program-
ming cycle. Writing to the same memory location
Write Operation (LAT=1) will over-program the memory (logical AND be-
To access the write mode, the LAT bit has to be tween the two write access data result) because
set by software (the PGM bit remains cleared). the data latches are only cleared at the end of the
When a write access to the EEPROM area occurs, programming cycle and by the falling edge of LAT
the value is latched inside the 16 data latches ac- bit.
It is not possible to read the latched data.
cording to its address. This note is ilustrated by the Figure 9.
Figure 8. Data EEPROM Programming Flowchart
WRITE UP TO 16 BYTES
READ BYTES
IN EEPROM AREA
IN EEPROM AREA
(with the same 11 MSB of the address)
INTERRUPT GENERATION
IF IE=1 0 1
LAT
CLEARED BY HARDWARE
18/151
ST72334J/N, ST72314J/N, ST72124J
Wait mode If a read access occurs while LAT=1, then the data
bus will not be driven.
The DATA EEPROM can enter WAIT mode on ex-
ecution of the WFI instruction of the microcontrol- If a write access occurs while LAT=0, then the
ler. The DATA EEPROM will immediately enter data on the bus will not be latched.
this mode if there is no programming in progress, If a programming cycle is interrupted (by software/
otherwise the DATA EEPROM will finish the cycle RESET action), the memory data will not be guar-
and then enter WAIT mode. anteed.
Halt mode
The DATA EEPROM immediatly enters HALT
mode if the microcontroller executes the HALT in-
struction. Therefore the EEPROM will stop the
function in progress, and data may be corrupted.
INTERNAL
PROGRAMMING
VOLTAGE
ERASE CYCLE WRITE CYCLE
WRITE OF
DATA LATCHES
tPROG
LAT
PGM
EEPROM INTERRUPT
19/151
ST72334J/N, ST72314J/N, ST72124J
20/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
21/151
ST72334J/N, ST72314J/N, ST72124J
15 PCH 8 7 PCL 0
PROGRAM COUNTER
RESET VALUE = RESET VECTOR @ FFFEh-FFFFh
7 0
1 1 1 H I N Z C CONDITION CODE REGISTER
RESET VALUE = 1 1 1 X 1 X X X
15 8 7 0
STACK POINTER
RESET VALUE = STACK HIGHER ADDRESS
X = Undefined Value
22/151
ST72334J/N, ST72314J/N, ST72124J
23/151
ST72334J/N, ST72314J/N, ST72124J
@ 0100h
SP
SP SP
Y
CC CC CC
A A A
X X X
PCH PCH PCH
SP SP
PCL PCL PCL
PCH PCH PCH PCH PCH
SP
@ 01FFh PCL PCL PCL PCL PCL
24/151
ST72334J/N, ST72314J/N, ST72124J
RESET SEQUENCE
RESET MANAGER FROM
WATCHDOG
(RSM)
PERIPHERAL
CSS INTERRUPT
25/151
ST72334J/N, ST72314J/N, ST72124J
VDD
Vhyst
VIT+
VIT-
RESET
26/151
ST72334J/N, ST72314J/N, ST72124J
9.2.1 Introduction The 4096 CPU clock cycle delay allows the oscil-
The reset sequence manager includes three RE- lator to stabilise and ensures that recovery has
SET sources as shown in Figure 15: taken place from the Reset state.
■ External RESET source pulse The RESET vector fetch phase duration is 2 clock
cycles.
■ Internal LVD RESET (Low Voltage Detection)
VDD INTERNAL
fCPU RESET
COUNTER
RON
RESET
WATCHDOG RESET
LVD RESET
27/151
ST72334J/N, ST72314J/N, ST72124J
VIT+
VIT-
tw(RSTL)out
EXTERNAL
RESET
SOURCE
RESET PIN
WATCHDOG
RESET
WATCHDOG UNDERFLOW
28/151
ST72334J/N, ST72314J/N, ST72124J
External Clock
■ an external RC oscillator OSC1 OSC2
■ an internal high frequency RC oscillator
Crystal/Ceramic Resonators
External Clock Source ST7
In this external clock mode, a clock signal (square, OSC1 OSC2
sinus or triangle) with ~50% duty cycle has to drive
the OSC1 pin while the OSC2 pin is tied to ground.
Crystal/Ceramic Oscillators
This family of oscillators has the advantage of pro- CL1 CL2
ducing a very accurate rate on the main clock of LOAD
the ST7. The selection within a list of 4 oscillators CAPACITORS
with different frequency ranges has to be done by
option byte in order to reduce consumption. In this
ST7
External RC Oscillator
ST7
This oscillator allows a low cost solution for the
OSC1 OSC2
main clock of the ST7 using only an external resis-
tor and an external capacitor. The frequency of the
external RC oscillator (in the range of some MHz.)
is fixed by the resistor and the capacitor values.
Consequently in this MO mode, the accuracy of
the clock is directly linked to the accuracy of the
discrete components. The corresponding formula
is fOSC=4/(REXCEX)
Internal RC Oscillator
The internal RC oscillator mode is based on the
same principle as the external RC oscillator includ-
ing the resistance and the capacitance of the de-
vice. This mode is the most cost effective one with
the drawback of a lower frequency accuracy. Its
frequency is in the range of several MHz.
In this mode, the two oscillator pins have to be tied
to ground.
29/151
ST72334J/N, ST72314J/N, ST72124J
fOSC/2
fCPU
SAFE OSCILLATOR
fOSC/2
FUNCTION
fSFOSC
fCPU
30/151
ST72334J/N, ST72314J/N, ST72124J
This bit enables the interrupt when a disturbance External RESET pin 0 0
is detected by the clock security system (CSSD bit Watchdog 0 1
set). It is set and cleared by software. LVD 1 X
0: Clock security system interrupt disabled
1: Clock security system interrupt enabled
Refer to Table 5, “Interrupt mapping,” on page 33 Application notes
for more details on the CSS interrupt vector. When
the CSS is disabled by option byte, the CSSIE bit The LVDRF flag is not cleared when another RE-
has no effect. SET type occurs (external or watchdog), the
LVDRF flag remains set to keep trace of the origi-
nal failure.
In this case, a watchdog reset can be detected by
software while an external reset can not.
Table 4. Clock, Reset and Supply Register Map and Reset Values
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
31/151
ST72334J/N, ST72314J/N, ST72124J
10 INTERRUPTS
The ST7 core may be interrupted by one of two dif- It will be serviced according to the flowchart on
ferent methods: maskable hardware interrupts as Figure 18.
listed in the Interrupt Mapping Table and a non-
maskable software interrupt (TRAP). The Interrupt 10.2 EXTERNAL INTERRUPTS
processing flowchart is shown in Figure 18.
The maskable interrupts must be enabled by External interrupt vectors can be loaded into the
clearing the I bit in order to be serviced. However, PC register if the corresponding external interrupt
disabled interrupts may be latched and processed occurred and if the I bit is cleared. These interrupts
when they are enabled (see external interrupts allow the processor to leave the Halt low power
subsection). mode.
Note: After reset, all interrupts are disabled. The external interrupt polarity is selected through
When an interrupt has to be serviced: the miscellaneous register or interrupt register (if
available).
– Normal processing is suspended at the end of
the current instruction execution. An external interrupt triggered on edge will be
latched and the interrupt request automatically
– The PC, X, A and CC registers are saved onto cleared upon entering the interrupt service routine.
the stack.
If several input pins, connected to the same inter-
– The I bit of the CC register is set to prevent addi- rupt vector, are configured as interrupts, their sig-
tional interrupts. nals are logically NANDed before entering the
– The PC is then loaded with the interrupt vector of edge/level detection block.
the interrupt to service and the first instruction of Caution: The type of sensitivity defined in the Mis-
the interrupt service routine is fetched (refer to cellaneous or Interrupt register (if available) ap-
the Interrupt Mapping Table for vector address- plies to the ei source. In case of a NANDed source
es). (as described on the I/O ports section), a low level
The interrupt service routine should finish with the on an I/O pin configured as input with interrupt,
IRET instruction which causes the contents of the masks the interrupt request even in case of rising-
saved registers to be recovered from the stack. edge sensitivity.
Note: As a consequence of the IRET instruction,
the I bit will be cleared and the main program will 10.3 PERIPHERAL INTERRUPTS
resume.
Different peripheral interrupt flags in the status
Priority Management register are able to cause an interrupt when they
By default, a servicing interrupt cannot be inter- are active if both:
rupted because the I bit is set by hardware enter- – The I bit of the CC register is cleared.
ing in interrupt routine.
– The corresponding enable bit is set in the control
In the case when several interrupts are simultane- register.
ously pending, an hardware priority defines which
one will be serviced first (see the Interrupt Map- If any of these two conditions is false, the interrupt
ping Table). is latched and thus remains pending.
Interrupts and Low Power Mode Clearing an interrupt request is done by:
All interrupts allow the processor to leave the – Writing “0” to the corresponding bit in the status
WAIT low power mode. Only external and specifi- register or
cally mentioned interrupts allow the processor to – Access to the status register while the flag is set
leave the HALT low power mode (refer to the “Exit followed by a read or write of an associated reg-
from HALT“ column in the Interrupt Mapping Ta- ister.
ble). Note: the clearing sequence resets the internal
latch. A pending interrupt (i.e. waiting for being en-
10.1 NON MASKABLE SOFTWARE abled) will therefore be lost if the clear sequence is
INTERRUPT executed.
32/151
ST72334J/N, ST72314J/N, ST72124J
INTERRUPTS (Cont’d)
Figure 18. Interrupt Processing Flowchart
FROM RESET
N
I BIT SET?
Y N INTERRUPT
PENDING?
N
IRET?
STACK PC, X, A, CC
SET I BIT
Y LOAD PC FROM INTERRUPT VECTOR
EXECUTE INSTRUCTION
33/151
ST72334J/N, ST72314J/N, ST72124J
SLOW
fOSC/2
MISCR1
WAIT CP1:0 00 01
SMS
SLOW WAIT
NORMAL RUN MODE
NEW SLOW REQUEST
ACTIVE HALT
FREQUENCY
REQUEST
HALT
Low
POWER CONSUMPTION
34/151
ST72334J/N, ST72314J/N, ST72124J
OSCILLATOR ON
PERIPHERALS ON
CPU ON
I BIT X 1)
Note:
1. Before servicing an interrupt, the CC register is
pushed on the stack. The I bit of the CC register is
set during the interrupt routine and cleared when
the CC register is popped.
35/151
ST72334J/N, ST72314J/N, ST72124J
11.4 ACTIVE-HALT AND HALT MODES Figure 22. ACTIVE-HALT Timing Overview
ACTIVE-HALT and HALT modes are the two low- ACTIVE
est power consumption modes of the MCU. They 4096 CPU CYCLE
RUN HALT DELAY RUN
are both entered by executing the ‘HALT’ instruc-
tion. The decision to enter either in ACTIVE-HALT
RESET
or HALT mode is given by the MCC/RTC interrupt OR
enable flag (OIE bit in MCCSR register). HALT
INTERRUPT FETCH
INSTRUCTION
[MCCSR.OIE=1] VECTOR
MCCSR Power Saving Mode entered when HALT
OIE bit instruction is executed
0 HALT mode
Figure 23. ACTIVE-HALT Mode Flow-chart
1 ACTIVE-HALT mode OSCILLATOR ON
HALT INSTRUCTION PERIPHERALS 1) OFF
11.4.1 ACTIVE-HALT MODE (MCCSR.OIE=1) CPU OFF
I BIT 0
ACTIVE-HALT mode is the lowest power con-
sumption mode of the MCU with a real time clock
available. It is entered by executing the ‘HALT’ in-
struction when the OIE bit of the Main Clock Con- N
RESET
troller Status register (MCCSR) is set (see Section
14.2 "MAIN CLOCK CONTROLLER WITH REAL Y
TIME CLOCK TIMER (MCC/RTC)" on page 51 for N
INTERRUPT 2)
more details on the MCCSR register).
The MCU can exit ACTIVE-HALT mode on recep- Y OSCILLATOR ON
tion of either an MCC/RTC interrupt, a specific in- PERIPHERALS 1) OFF
terrupt (see Table 5, “Interrupt mapping,” on CPU ON
page 33) or a RESET. When exiting ACTIVE- I BIT X 3)
HALT mode by means of a RESET or an interrupt,
a 4096 CPU cycle delay occurs. After the start up
4096 CPU CLOCK CYCLE
delay, the CPU resumes operation by servicing
DELAY
the interrupt or by fetching the reset vector which
woke it up (see Figure 23).
When entering ACTIVE-HALT mode, the I bit in OSCILLATOR ON
the CC register is cleared to enable interrupts. PERIPHERALS ON
Therefore, if an interrupt is pending, the MCU CPU ON
wakes up immediately. I BITS X 3)
36/151
ST72334J/N, ST72314J/N, ST72124J
37/151
ST72334J/N, ST72314J/N, ST72124J
12 I/O PORTS
38/151
ST72334J/N, ST72314J/N, ST72124J
ALTERNATE
REGISTER 1
OUTPUT VDD P-BUFFER
ACCESS
(see table below)
0
ALTERNATE
PULL-UP
ENABLE
(see table below)
DR VDD
DDR
PULL-UP
PAD
CONFIGURATION
OR
DATA BUS
If implemented
OR SEL
N-BUFFER
DIODES
(see table below)
DDR SEL
ANALOG
INPUT
CMOS
SCHMITT
DR SEL
1 TRIGGER
0
ALTERNATE
INPUT
EXTERNAL
FROM
INTERRUPT OTHER
SOURCE (eix) BITS
POLARITY
SELECTION
39/151
ST72334J/N, ST72314J/N, ST72124J
ALTERNATE INPUT
FROM
OTHER
PINS EXTERNAL INTERRUPT
SOURCE (eix)
INTERRUPT POLARITY
CONFIGURATION SELECTION
ANALOG INPUT
I/O PORTS
RPU
DR R/W
REGISTER DATA BUS
PAD
ALTERNATE ALTERNATE
ENABLE OUTPUT
NOT IMPLEMENTED IN
DR REGISTER ACCESS
TRUE OPEN DRAIN VDD
PUSH-PULL OUTPUT 2)
I/O PORTS
RPU
DR R/W
REGISTER DATA BUS
PAD
ALTERNATE ALTERNATE
ENABLE OUTPUT
Notes:
1. When the I/O port is in input configuration and the associated alternate function is enabled as an output,
reading the DR register will read the alternate function output status.
2. When the I/O port is in output configuration and the associated alternate function is enabled as an input,
the alternate function reads the pin status given by the DR register content.
40/151
ST72334J/N, ST72314J/N, ST72124J
01 00 10 11
XX = DDR, OR
41/151
ST72334J/N, ST72314J/N, ST72124J
42/151
ST72334J/N, ST72314J/N, ST72124J
7 0 7 0
D7 D6 D5 D4 D3 D2 D1 D0 O7 O6 O5 O4 O3 O2 O1 O0
Bit 7:0 = D[7:0] Data register 8 bits. Bit 7:0 = O[7:0] Option register 8 bits.
The DR register has a specific behaviour accord- For specific I/O pins, this register is not implement-
ing to the selected input/output configuration. Writ- ed. In this case the DDR register is enough to se-
ing the DR register is always taken into account lect the I/O pin configuration.
even if the pin is configured as an input; this allows The OR register allows to distinguish: in input
to always have the expected level on the pin when mode if the pull-up with interrupt capability or the
toggling to output mode. Reading the DR register basic pull-up configuration is selected, in output
returns either the DR register latch content (pin mode if the push-pull or open drain configuration is
configured as output) or the digital value applied to selected.
the I/O pin (pin configured as input).
Each bit is set and cleared by software.
Input mode:
DATA DIRECTION REGISTER (DDR) 0: floating input
Port x Data Direction Register 1: pull-up input with or without interrupt
PxDDR with x = A, B, C, D, E or F.
Output mode:
Read /Write 0: output open drain (with P-Buffer deactivated)
Reset Value: 0000 0000 (00h) 1: output push-pull
7 0
43/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
Reset Value
0 0 0 0 0 0 0 0
of all IO port registers
0000h PADR
0001h PADDR MSB LSB
0002h PAOR 1)
0004h PCDR
0005h PCDDR MSB LSB
0006h PCOR
0008h PBDR
0009h PBDDR MSB LSB
000Ah PBOR 1)
000Ch PEDR
000Dh PEDDR MSB LSB
000Eh PEOR 1)
0010h PDDR
0011h PDDDR MSB LSB
1)
0012h PDOR
0014h PFDR
0015h PFDDR MSB LSB
0016h PFOR
Notes:
1) The bits corresponding to unavailable pins are forced to 1 by hardware, this affects the reset status value.
44/151
ST72334J/N, ST72314J/N, ST72124J
13 MISCELLANEOUS REGISTERS
The miscellaneous registers allow control over Figure 28. Ext. Interrupt Sensitivity
several different features such as the external in-
terrupts or the I/O alternate functions.
MISCR1
45/151
ST72334J/N, ST72314J/N, ST72124J
IS11 IS10 MCO IS21 IS20 CP1 CP0 SMS Bit 2:1 = CP[1:0] CPU clock prescaler
These bits select the CPU clock prescaler which is
applied in the different slow modes. Their action is
conditioned by the setting of the SMS bit. These
Bit 7:6 = IS1[1:0] ei2 and ei3 sensitivity two bits are set and cleared by software
The interrupt sensitivity, defined using the IS1[1:0]
bits, is applied to the following external interrupts: fCPU in SLOW mode CP1 CP0
ei2 (port B3..0) and ei3 (port B7..4). These 2 bits fOSC / 4 0 0
can be written only when the I bit of the CC register fOSC / 8 1 0
is set to 1 (interrupt disabled).
fOSC / 16 0 1
External Interrupt Sensitivity IS11 IS10 fOSC / 32 1 1
Falling edge & low level 0 0
Rising edge only 0 1
Falling edge only 1 0 Bit 0 = SMS Slow mode select
Rising and falling edge 1 1
This bit is set and cleared by software.
0: Normal mode. fCPU = fOSC / 2
1: Slow mode. fCPU is given by CP1, CP0
See low power consumption mode and MCC
Bit 5 = MCO Main clock out selection chapters for more details.
This bit enables the MCO alternate function on the
I/O port. It is set and cleared by software.
0: MCO alternate function disabled
(I/O pin free for general-purpose I/O)
1: MCO alternate function enabled
(fOSC/2 on I/O port)
Note: To reduce power consumption, the MCO
function is not active in ACTIVE-HALT mode.
46/151
ST72334J/N, ST72314J/N, ST72124J
7 0
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
47/151
ST72334J/N, ST72314J/N, ST72124J
14 ON-CHIP PERIPHERALS
RESET
WDGA T6 T5 T4 T3 T2 T1 T0
7-BIT DOWNCOUNTER
48/151
ST72334J/N, ST72314J/N, ST72124J
Notes: Following a reset, the watchdog is disa- Bit 6:0 = T[6:0] 7-bit timer (MSB to LSB).
bled. Once activated it cannot be disabled, except These bits contain the decremented value. A reset
by a reset. is produced when it rolls over from 40h to 3Fh (T6
becomes cleared).
The T6 bit can be used to generate a software re-
set (the WDGA bit is set and the T6 bit is cleared).
If the watchdog is activated, the HALT instruction STATUS REGISTER (SR)
will generate a Reset. Read /Write
Reset Value*: 0000 0000 (00h)
14.1.4 Hardware Watchdog Option 7 0
If Hardware Watchdog is selected by option byte,
the watchdog is always active and the WDGA bit in - - - - - - - WDOGF
the CR is not used.
Refer to the device-specific Option Byte descrip- Bit 0 = WDOGF Watchdog flag.
tion. This bit is set by a watchdog reset and cleared by
software or a power on/off reset. This bit is useful
14.1.5 Low Power Modes for distinguishing power/on off or external reset
and watchdog reset.
Mode Description 0: No Watchdog reset occurred
WAIT No effect on Watchdog. 1: Watchdog reset occurred
Immediate reset generation as soon as
the HALT instruction is executed if the
HALT * Only by software and power on/off reset
Watchdog is activated (WDGA bit is
set). Note: This register is not used in versions without
LVD Reset.
14.1.6 Interrupts
None.
49/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
WDGCR WDGA T6 T5 T4 T3 T2 T1 T0
002Ah
Reset Value 0 1 1 1 1 1 1 1
50/151
ST72334J/N, ST72314J/N, ST72124J
14.2 MAIN CLOCK CONTROLLER WITH REAL TIME CLOCK TIMER (MCC/RTC)
The Main Clock Controller consists of three differ- 14.2.2 Clock-out capability
ent functions: The clock-out capability is an alternate function of
■ a programmable CPU clock prescaler an I/O port pin that outputs a fOSC/2 clock to drive
■ a clock-out signal to supply external devices external devices. It is controlled by the MCO bit in
■ a real time clock timer with interrupt capability
the MISCR1 register.
CAUTION: When selected, the clock out pin sus-
Each function can be used independently and si- pends the clock during ACTIVE-HALT mode.
multaneously.
14.2.3 Real time clock timer (RTC)
14.2.1 Programmable CPU clock prescaler
The counter of the real time clock timer allows an
The programmable CPU clock prescaler supplies interrupt to be generated based on an accurate
the clock for the ST7 CPU and its internal periph- real time clock. Four different time bases depend-
erals. It manages SLOW power saving mode (See ing directly on fOSC are available. The whole func-
Section 11.2 "SLOW MODE" on page 34 for more tionality is controlled by four bits of the MCCSR
details). register: TB[1:0], OIE and OIF.
The prescaler selects the fCPU main clock frequen- When the RTC interrupt is enabled (OIE bit set),
cy and is controlled by three bits in the MISCR1 the ST7 enters ACTIVE-HALT mode when the
register: CP[1:0] and SMS. HALT instruction is executed. See Section 11.4
CAUTION: The prescaler does not act on the CAN "ACTIVE-HALT AND HALT MODES" on page 36
peripheral clock source. This peripheral is always for more details.
supplied by the f OSC/2 clock source.
PORT
ALTERNATE
fOSC/2 FUNCTION MCO
MISCR1
fOSC
DIV 2 DIV 2, 4, 8, 16
CPU CLOCK
fCPU TO CPU AND
RTC
COUNTER PERIPHERALS
MCCSR
MCC/RTC INTERRUPT
51/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
52/151
ST72334J/N, ST72314J/N, ST72124J
53/151
ST72334J/N, ST72314J/N, ST72124J
fCPU
MCU-PERIPHERAL INTERFACE
8 high 8 low
8-bit 8 8 8 8 8 8 8 8
buffer
high
high
high
high
low
low
low
low
EXEDG
16
OVERFLOW
OUTPUT COMPARE EDGE DETECT ICAP1
DETECT
CIRCUIT CIRCUIT1 pin
CIRCUIT
LATCH1 OCMP1
pin
ICF1 OCF1 TOF ICF2 OCF2 0 0 0
LATCH2 OCMP2
(Status Register) SR
pin
ICIE OCIE TOIE FOLV2 FOLV1OLVL2 IEDG1 OLVL1 OC1E OC2E OPM PWM CC1 CC0 IEDG2 EXEDG
(See note)
TIMER INTERRUPT Note: If IC, OC and TO interrupt requests have separate vectors
then the last OR is not present (See device Interrupt Vector Table)
54/151
ST72334J/N, ST72314J/N, ST72124J
55/151
ST72334J/N, ST72314J/N, ST72124J
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
CPU CLOCK
INTERNAL RESET
TIMER CLOCK
Note: The MCU is in reset state when the internal reset signal is high. When it is low, the MCU is running.
56/151
ST72334J/N, ST72314J/N, ST72124J
57/151
ST72334J/N, ST72314J/N, ST72124J
TIMER CLOCK
ICAPi PIN
ICAPi FLAG
58/151
ST72334J/N, ST72314J/N, ST72124J
59/151
ST72334J/N, ST72314J/N, ST72124J
60/151
ST72334J/N, ST72314J/N, ST72124J
TIMER CLOCK
TIMER CLOCK
61/151
ST72334J/N, ST72314J/N, ST72124J
62/151
ST72334J/N, ST72314J/N, ST72124J
ICAP1
OCMP1
OLVL2 OLVL1 OLVL2
compare2 compare1 compare2
63/151
ST72334J/N, ST72314J/N, ST72124J
64/151
ST72334J/N, ST72314J/N, ST72124J
14.3.5 Interrupts
Enable Exit Exit
Event
Interrupt Event Control from from
Flag
Bit Wait Halt
Input Capture 1 event/Counter reset in PWM mode ICF1 Yes No
ICIE
Input Capture 2 event ICF2 Yes No
Output Compare 1 event (not available in PWM mode) OCF1 Yes No
OCIE
Output Compare 2 event (not available in PWM mode) OCF2 Yes No
Timer Overflow event TOF TOIE Yes No
Note: The 16-bit Timer interrupt events are connected to the same interrupt vector (see Interrupts chap-
ter). These events generate an interrupt if the corresponding Enable Control Bit is set and the interrupt
mask in the CC register is reset (RIM instruction).
65/151
ST72334J/N, ST72314J/N, ST72124J
Bit 5 = TOIE Timer Overflow Interrupt Enable. Bit 0 = OLVL1 Output Level 1.
0: Interrupt is inhibited. The OLVL1 bit is copied to the OCMP1 pin when-
1: A timer interrupt is enabled whenever the TOF ever a successful comparison occurs with the
bit of the SR register is set. OC1R register and the OC1E bit is set in the CR2
register.
66/151
ST72334J/N, ST72314J/N, ST72124J
67/151
ST72334J/N, ST72314J/N, ST72124J
MSB LSB
Bit 7 = ICF1 Input Capture Flag 1.
0: No input capture (reset value).
1: An input capture has occurred on the ICAP1 pin
or the counter has reached the OC2R value in
PWM mode. To clear this bit, first read the SR INPUT CAPTURE 1 LOW REGISTER (IC1LR)
register, then read or write the low byte of the Read Only
IC1R (IC1LR) register. Reset Value: Undefined
This is an 8-bit read only register that contains the
Bit 6 = OCF1 Output Compare Flag 1. low part of the counter value (transferred by the in-
0: No match (reset value). put capture 1 event).
1: The content of the free running counter matches
the content of the OC1R register. To clear this 7 0
bit, first read the SR register, then read or write
the low byte of the OC1R (OC1LR) register. MSB LSB
68/151
ST72334J/N, ST72314J/N, ST72124J
MSB LSB
69/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
Timer A: 32 CR1 ICIE OCIE TOIE FOLV2 FOLV1 OLVL2 IEDG1 OLVL1
Timer B: 42 Reset Value 0 0 0 0 0 0 0 0
Timer A: 31 CR2 OC1E OC2E OPM PWM CC1 CC0 IEDG2 EXEDG
Timer B: 41 Reset Value 0 0 0 0 0 0 0 0
Timer A: 33 SR ICF1 OCF1 TOF ICF2 OCF2 - - -
Timer B: 43 Reset Value 0 0 0 0 0 0 0 0
Timer A: 34 ICHR1 MSB LSB
- - - - - -
Timer B: 44 Reset Value - -
70/151
ST72334J/N, ST72314J/N, ST72124J
MASTER SLAVE
MOSI MOSI
SPI
SCK SCK
CLOCK
GENERATOR
SS +5V SS
71/151
ST72334J/N, ST72314J/N, ST72124J
Internal Bus
Read
DR
Read Buffer IT
request
MOSI
SR
MISO 8-Bit Shift Register
SPIF WCOL - MODF - - - -
Write
SPI
STATE
SCK
CONTROL
SS
CR
MASTER
CONTROL
SERIAL
CLOCK
GENERATOR
72/151
ST72334J/N, ST72314J/N, ST72124J
73/151
ST72334J/N, ST72314J/N, ST72124J
74/151
ST72334J/N, ST72314J/N, ST72124J
Master SS
Slave SS
(CPHA=0)
Slave SS
(CPHA=1)
VR02131A
75/151
ST72334J/N, ST72314J/N, ST72124J
CPHA =1
SCLK (with
CPOL = 1)
SCLK (with
CPOL = 0)
SS
(to slave)
CAPTURE STROBE
CPHA =0
CPOL = 1
CPOL = 0
SS
(to slave)
CAPTURE STROBE
Note: This figure should not be used as a replacement for parametric information.
Refer to the Electrical Characteristics chapter. VR02131B
76/151
ST72334J/N, ST72314J/N, ST72124J
Figure 46. Clearing the WCOL bit (Write Collision Flag) Software Sequence
Read SR Read SR
1st Step
OR
THEN
THEN SPIF =0
2nd Step Read DR SPIF =0 Write DR WCOL=0 if no transfer has started
WCOL=0 WCOL=1 if a transfer has started
before the 2nd step
Read SR
1st Step
THEN
Note: Writing to the DR register
2nd Step Read DR WCOL=0 instead of reading in it does not
reset the WCOL bit
77/151
ST72334J/N, ST72314J/N, ST72124J
Clearing the MODF bit is done through a software 14.4.4.6 Overrun Condition
sequence:
An overrun condition occurs when the master de-
1. A read or write access to the SR register while vice has sent several data bytes and the slave de-
the MODF bit is set. vice has not cleared the SPIF bit issuing from the
2. A write to the CR register. previous data byte transmitted.
In this case, the receiver buffer contains the byte
Notes: To avoid any multiple slave conflicts in the sent after the SPIF bit was last cleared. A read to
case of a system comprising several MCUs, the the DR register returns this byte. All other bytes
SS pin must be pulled high during the clearing se- are lost.
quence of the MODF bit. The SPE and MSTR bits This condition is not detected by the SPI peripher-
al.
78/151
ST72334J/N, ST72314J/N, ST72124J
SS SS SS SS
SCK SCK SCK SCK
Slave Slave Slave Slave
MCU MCU MCU MCU
MOSI MISO
SCK
Ports
Master
MCU
5V SS
79/151
ST72334J/N, ST72314J/N, ST72124J
14.4.6 Interrupts
80/151
ST72334J/N, ST72314J/N, ST72124J
81/151
ST72334J/N, ST72314J/N, ST72124J
Bit 7 = SPIF Serial Peripheral data transfer flag. The DR register is used to transmit and receive
This bit is set by hardware when a transfer has data on the serial bus. In the master device only a
been completed. An interrupt is generated if write to this register will initiate transmission/re-
SPIE=1 in the CR register. It is cleared by a soft- ception of another byte.
ware sequence (an access to the SR register fol- Notes: During the last clock cycle the SPIF bit is
lowed by a read or write to the DR register). set, a copy of the received data byte in the shift
0: Data transfer is in progress or has been ap- register is moved to a buffer. When the user reads
proved by a clearing sequence. the serial peripheral data I/O register, the buffer is
1: Data transfer between the device and an exter- actually being read.
nal device has been completed.
Warning:
Note: While the SPIF bit is set, all writes to the DR
register are inhibited. A write to the DR register places data directly into
the shift register for transmission.
A read to the the DR register returns the value lo-
Bit 6 = WCOL Write Collision status. cated in the buffer and not the contents of the shift
This bit is set by hardware when a write to the DR register (See Figure 43 ).
register is done during a transmit sequence. It is
cleared by a software sequence (see Figure 46).
0: No write collision occurred
1: A write collision has been detected
Bit 5 = Unused.
82/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
83/151
ST72334J/N, ST72314J/N, ST72124J
84/151
ST72334J/N, ST72314J/N, ST72124J
TDO
RDI
CR1
R8 T8 - M WAKE - - -
WAKE
TRANSMIT UP RECEIVER RECEIVER
CONTROL UNIT CONTROL CLOCK
CR2 SR
TIE TCIE RIE ILIE TE RE RWU SBK TDRE TC RDRF IDLE OR NF FE -
SCI
INTERRUPT
CONTROL
TRANSMITTER
CLOCK
TRANSMITTER RATE
CONTROL
fCPU
/16 /2 /PR
BRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
85/151
ST72334J/N, ST72314J/N, ST72124J
Start
Idle Frame Bit
Start
Idle Frame Bit
86/151
ST72334J/N, ST72314J/N, ST72124J
87/151
ST72334J/N, ST72314J/N, ST72124J
88/151
ST72334J/N, ST72314J/N, ST72124J
ETPR
EXTENDED TRANSMITTER PRESCALER REGISTER
ERPR
EXTENDED RECEIVER PRESCALER REGISTER
EXTENDED PRESCALER
fCPU TRANSMITTER
CLOCK
TRANSMITTER RATE
CONTROL
/16 /2 /PR
BRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER
CLOCK
RECEIVER RATE
CONTROL
89/151
ST72334J/N, ST72314J/N, ST72124J
90/151
ST72334J/N, ST72314J/N, ST72124J
14.5.7 Interrupts
Enable Exit Exit
Event
Interrupt Event Control from from
Flag
Bit Wait Halt
Transmit Data Register Empty TDRE TIE Yes No
Transmission Complete TC TCIE Yes No
Received Data Ready to be Read RDRF Yes No
RIE
Overrrun Error Detected OR Yes No
Idle Line Detected IDLE ILIE Yes No
The SCI interrupt events are connected to the These events generate an interrupt if the corre-
same interrupt vector (see Interrupts chapter). sponding Enable Control Bit is set and the inter-
rupt mask in the CC register is reset (RIM instruc-
tion).
91/151
ST72334J/N, ST72314J/N, ST72124J
92/151
ST72334J/N, ST72314J/N, ST72124J
93/151
ST72334J/N, ST72314J/N, ST72124J
94/151
ST72334J/N, ST72314J/N, ST72124J
Bit 7:1 = ERPR[7:0] 8-bit Extended Receive Pres- Bit 7:1 = ETPR[7:0] 8-bit Extended Transmit Pres-
caler Register. caler Register.
The extended Baud Rate Generator is activated The extended Baud Rate Generator is activated
when a value different from 00h is stored in this when a value different from 00h is stored in this
register. Therefore the clock frequency issued register. Therefore the clock frequency issued
from the 16 divider (see Figure 50) is divided by from the 16 divider (see Figure 50) is divided by
the binary factor set in the ERPR register (in the the binary factor set in the ETPR register (in the
range 1 to 255). range 1 to 255).
The extended baud rate generator is not used af- The extended baud rate generator is not used af-
ter a reset. ter a reset.
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
95/151
ST72334J/N, ST72314J/N, ST72124J
fCPU fADC
DIV 2
AIN0
HOLD CONTROL
AIN1 RADC
ANALOG ANALOG TO DIGITAL
MUX CONVERTER
AINx CADC
ADCDR D7 D6 D5 D4 D3 D2 D1 D0
96/151
ST72334J/N, ST72314J/N, ST72124J
97/151
ST72334J/N, ST72314J/N, ST72124J
7 0 7 0
98/151
ST72334J/N, ST72314J/N, ST72124J
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
ADCDR D7 D6 D5 D4 D3 D2 D1 D0
0070h
Reset Value 0 0 0 0 0 0 0 0
ADCCSR COCO ADON CH3 CH2 CH1 CH0
0071h
Reset Value 0 0 0 0 0 0 0 0
99/151
ST72334J/N, ST72314J/N, ST72124J
15 INSTRUCTION SET
15.1 ST7 ADDRESSING MODES so, most of the addressing modes may be subdi-
vided in two sub-modes called long and short:
The ST7 Core features 17 different addressing
modes which can be classified in 7 main groups: – Long addressing mode is more powerful be-
cause it can use the full 64 Kbyte address space,
Addressing Mode Example however it uses more bytes and more CPU cy-
Inherent nop cles.
Immediate ld A,#$55 – Short addressing mode is less powerful because
it can generally only access page zero (0000h -
Direct ld A,$55 00FFh range), but the instruction size is more
Indexed ld A,($55,X) compact, and faster. All memory to memory in-
Indirect ld A,([$55],X) structions use short addressing modes only
(CLR, CPL, NEG, BSET, BRES, BTJT, BTJF,
Relative jrne loop INC, DEC, RLC, RRC, SLL, SRL, SRA, SWAP)
Bit operation bset byte,#5 The ST7 Assembler optimizes the use of long and
short addressing modes.
The ST7 Instruction set is designed to minimize
the number of bytes required per instruction: To do
Table 20. ST7 Addressing Mode Overview
Pointer Pointer
Destination/ Length
Mode Syntax Address Size
Source (Bytes)
(Hex.) (Hex.)
Inherent nop +0
Immediate ld A,#$55 +1
Short Direct ld A,$10 00..FF +1
Long Direct ld A,$1000 0000..FFFF +2
+ 0 (with X register)
No Offset Direct Indexed ld A,(X) 00..FF
+ 1 (with Y register)
Short Direct Indexed ld A,($10,X) 00..1FE +1
Long Direct Indexed ld A,($1000,X) 0000..FFFF +2
Short Indirect ld A,[$10] 00..FF 00..FF byte +2
Long Indirect ld A,[$10.w] 0000..FFFF 00..FF word +2
Short Indirect Indexed ld A,([$10],X) 00..1FE 00..FF byte +2
Long Indirect Indexed ld A,([$10.w],X) 0000..FFFF 00..FF word +2
1)
Relative Direct jrne loop PC-128/PC+127 +1
Relative Indirect jrne [$10] PC-128/PC+1271) 00..FF byte +2
Bit Direct bset $10,#7 00..FF +1
Bit Indirect bset [$10],#7 00..FF 00..FF byte +2
Bit Direct Relative btjt $10,#7,skip 00..FF +2
Bit Indirect Relative btjt [$10],#7,skip 00..FF 00..FF byte +3
Note 1. At the time the instruction is executed, the Program Counter (PC) points to the instruction follow-
ing JRxx.
100/151
ST72334J/N, ST72314J/N, ST72124J
101/151
ST72334J/N, ST72314J/N, ST72124J
102/151
ST72334J/N, ST72314J/N, ST72124J
Using a pre-byte
The instructions are described with one to four These prebytes enable instruction in Y as well as
bytes. indirect addressing modes to be implemented.
In order to extend the number of available op- They precede the opcode of the instruction in X or
codes for an 8-bit CPU (256 opcodes), three differ- the instruction using direct addressing mode. The
ent prebyte opcodes are defined. These prebytes prebytes are:
modify the meaning of the instruction they pre- PDY 90 Replace an X based instruction using
cede. immediate, direct, indexed, or inherent
The whole instruction becomes: addressing mode by a Y one.
PC-2 End of previous instruction PIX 92 Replace an instruction using direct, di-
rect bit, or direct relative addressing
PC-1 Prebyte mode to an instruction using the corre-
PC Opcode sponding indirect addressing mode.
It also changes an instruction using X
PC+1 Additional word (0 to 2) according to the
number of bytes required to compute the indexed addressing mode to an instruc-
tion using indirect X indexed addressing
effective address
mode.
PIY 91 Replace an instruction using X indirect
indexed addressing mode by a Y one.
103/151
ST72334J/N, ST72314J/N, ST72124J
104/151
ST72334J/N, ST72314J/N, ST72124J
NOP No Operation
OR OR operation A=A+M A M N Z
pop CC CC M H I N Z C
105/151
ST72334J/N, ST72314J/N, ST72124J
16 ELECTRICAL CHARACTERISTICS
ST7 PIN
CL
106/151
ST72334J/N, ST72314J/N, ST72124J
Notes:
1. Directly connecting the RESET and I/O pins to VDD or VSS could damage the device if an unintentional internal reset
is generated or an unexpected change of the I/O configuration occurs (for example, due to a corrupted program counter).
To guarantee safe operation, this connection has to be done through a pull-up or pull-down resistor (typical: 4.7kΩ for
RESET, 10kΩ for I/Os). Unused I/O pins must be tied in the same way to VDD or VSS according to their reset configuration.
2. When the current limitation is not possible, the VIN absolute maximum rating must be respected, otherwise refer to
IINJ(PIN) specification. A positive injection is induced by VIN>VDD while a negative injection is induced by VIN<VSS.
3. All power (VDD) and ground (VSS) lines must always be connected to the external supply.
4. Negative injection disturbs the analog performance of the device. In particular, it induces leakage currents throughout
the device including the analog inputs. To avoid undesirable effects on the analog functions, care must be taken:
- Analog input pins must have a negative injection less than 0.8 mA (assuming that the impedance of the analog voltage
is lower than the specified limits)
- Pure digital pins must have a negative injection less than 1.6mA. In addition, it is recommended to inject the current as
far as possible from the analog input pins.
5. When several inputs are submitted to a current injection, the maximum ΣIINJ(PIN) is the absolute sum of the positive
and negative injected currents (instantaneous values). These results are based on characterisation with ΣIINJ(PIN) maxi-
mum current injection on four I/O port pins of the device.
6. True open drain I/O port pins do not accept positive injection.
107/151
ST72334J/N, ST72314J/N, ST72124J
108/151
ST72334J/N, ST72314J/N, ST72124J
Figure 55. fOSC Maximum Operating Frequency Versus VDD Supply Voltage for ROM devices 2)
FUNCTIONALITY
NOT GUARANTEED
fOSC [MHz] FUNCTIONALITY
IN THIS AREA AT TA > 85°C
GUARANTEED
IN THIS AREA
16
FUNCTIONALITY
NOT GUARANTEED 12
IN THIS AREA FUNCTIONALITY
NOT GUARANTEED
8 IN THIS AREA
WITH RESONATOR 1)
4
1
0 SUPPLY VOLTAGE [V]
2.5 3.2 3.5 3.85 4 4.5 5 5.5
Figure 56. fOSC Maximum Operating Frequency Versus VDD Supply Voltage for FLASH devices 2)
FUNCTIONALITY
NOT GUARANTEED
fOSC [MHz] IN THIS AREA AT TA > 85°C FUNCTIONALITY
GUARANTEED
IN THIS AREA 3)
16
FUNCTIONALITY
NOT GUARANTEED 12
IN THIS AREA FUNCTIONALITY
NOT GUARANTEED
8 IN THIS AREA
WITH RESONATOR 1)
1
0 SUPPLY VOLTAGE [V]
2.5 3.2 3.5 3.85 4 4.5 5 5.5
Notes:
1. Guaranteed by construction. A/D operation and resonator oscillator start-up are not guaranteed below 1MHz.
2. Operating conditions with TA=-40 to +125°C.
3. FLASH programming tested in production at maximum TA with two different conditions: VDD=5.5V, fCPU=6MHz and
VDD=3.2V, fCPU=4MHz.
109/151
ST72334J/N, ST72314J/N, ST72124J
Figure 57. High LVD Threshold Versus VDD and fOSC for FLASH devices 3)
FUNCTIONALITY AND RESET NOT GUARANTEED IN THIS AREA
fOSC [MHz] FOR TEMPERATURES HIGHER THAN 85°C FUNCTIONALITY
NOT GUARANTEED
IN THIS AREA
DEVICE UNDER 16
RESET 12
IN THIS AREA 8 FUNCTIONAL AREA
Figure 58. Medium LVD Threshold Versus VDD and fOSC for FLASH devices 3)
FUNCTIONALITY AND RESET NOT GUARANTEED IN THIS AREA
fOSC [MHz] FOR TEMPERATURES HIGHER THAN 85°C FUNCTIONALITY
NOT GUARANTEED
IN THIS AREA
DEVICE UNDER 16
RESET 12
IN THIS AREA 8 FUNCTIONAL AREA
Figure 59. Low LVD Threshold Versus VDD and f OSC for FLASH devices 2)4)
FUNCTIONALITY NOT GUARANTEED IN THIS AREA
fOSC [MHz] FOR TEMPERATURES HIGHER THAN 85°C FUNCTIONALITY
NOT GUARANTEED
IN THIS AREA
16
12
DEVICE UNDER 8 FUNCTIONAL AREA
RESET
SEE NOTE 4
IN THIS AREA
0 SUPPLY VOLTAGE [V]
2.5 VIT-≥3V 3.2 3.5 4 4.5 5 5.5
Notes:
1. LVD typical data are based on TA=25°C. They are given only as design guidelines and are not tested.
2. Data based on characterization results, not tested in production.
3. The VDD rise time rate condition is needed to insure a correct device power-on and LVD reset. Not tested in production.
4.If the low LVD threshold is selected, when VDD falls below 3.2V, (VDD minimum operating voltage), the device is guar-
anteed to continue functioning until it goes into reset state. The specified VDD min. value is necessary in the device power
on phase, but during a power down phase or voltage drop the device will function below this min. level.
110/151
ST72334J/N, ST72314J/N, ST72124J
Figure 61. Medium LVD Threshold Versus VDD and fOSC for ROM devices 2)
Figure 62. Low LVD Threshold Versus VDD and f OSC for ROM devices 2)3)
Notes:
1. LVD typical data are based on TA=25°C. They are given only as design guidelines and are not tested.
2. The minimum VDD rise time rate is needed to insure a correct device power-on and LVD reset. Not tested in production.
3. If the low LVD threshold is selected, when VDD falls below 3.2V, (VDD minimum operating voltage), the device is guar-
anteed to continue functioning until it goes into reset state. The specified VDD min. value is necessary in the device power
on phase, but during a power down phase or voltage drop the device will function below this min. level.
111/151
ST72334J/N, ST72314J/N, ST72124J
4.5V≤VDD≤5.5V
fOSC=4MHz, fCPU=2MHz 2.1 3.5
(see Figure 63) fOSC=8MHz, fCPU=4MHz 3.9 7.0
fOSC=16MHz, fCPU=8MHz 7.4 14.0
fOSC=2MHz, fCPU=62.5kHz 0.4 0.9
Supply current in SLOW mode 4) fOSC=4MHz, fCPU=125kHz 0.5 1.1
(see Figure 64) fOSC=8MHz, fCPU=250kHz 0.7 1.4
fOSC=16MHz, fCPU=500kHz 1.0 2.0
IDD mA
fOSC=2MHz, fCPU=1MHz 0.3 1
3)
3.2V≤VDD≤3.6V
Figure 63. Typical IDD in RUN vs. fCPU Figure 64. Typical IDD in SLOW vs. fCPU
6
0.8
5
4 0.6
3
0.4
2
0.2
1
0 0
3.2 3.5 4 4.5 5 5.5 3.2 3.5 4 4.5 5 5.5
VDD [V] VDD [V]
Notes:
1. Typical data are based on TA=25°C, VDD=5V (4.5V≤VDD≤5.5V range) and VDD=3.4V (3.2V≤VDD≤3.6V range).
2. Data based on characterization results, tested in production at VDD max. and fCPU max.
3. CPU running with memory access, all I/O pins in input mode with a static value at VDD or VSS (no load), all peripherals
in reset state; clock input (OSC1) driven by external square wave, CSS and LVD disabled.
4. SLOW mode selected with fCPU based on fOSC divided by 32. All I/O pins in input mode with a static value at VDD or
VSS (no load), all peripherals in reset state; clock input (OSC1) driven by external square wave, CSS and LVD disabled.
112/151
ST72334J/N, ST72314J/N, ST72124J
4.5V≤VDD≤5.5V
fOSC=4MHz, fCPU=2MHz 0.7 1.2
(see Figure 65) fOSC=8MHz, fCPU=4MHz 1.3 2.1
fOSC=16MHz, fCPU=8MHz 2.5 4.0
mA
fOSC=2MHz, fCPU=62.5kHz 0.05 0.1
Supply current in SLOW WAIT mode 4)
fOSC=4MHz, fCPU=125kHz 0.1 0.2
(see Figure 66) fOSC=8MHz, fCPU=250kHz 0.2 0.4
fOSC=16MHz, fCPU=500kHz 0.5 1.0
IDD
fOSC=2MHz, fCPU=1MHz 45 100
Supply current in WAIT mode 3)
3.2V≤VDD≤3.6V
fOSC=4MHz, fCPU=2MHz 150 300
(see Figure 65) fOSC=8MHz, fCPU=4MHz 300 600
fOSC=16MHz, fCPU=8MHz 500 1000
µA
fOSC=2MHz, fCPU=62.5kHz 6 20
4)
Supply current in SLOW WAIT mode fOSC=4MHz, fCPU=125kHz 40 100
(see Figure 66) fOSC=8MHz, fCPU=250kHz 80 160
fOSC=16MHz, fCPU=500kHz 120 250
Figure 65. Typical IDD in WAIT vs. f CPU Figure 66. Typical IDD in SLOW-WAIT vs. fCPU
0.25
2
0.2
1.5
0.15
1
0.1
0.5
0.05
0 0
3.2 3.5 4 4.5 5 5.5 3.2 3.5 4 4.5 5 5.5
VDD [V] VDD [V]
Notes:
1. Typical data are based on TA=25°C, VDD=5V (4.5V≤VDD≤5.5V range) and VDD=3.4V (3.2V≤VDD≤3.6V range).
2. Data based on characterization results, tested in production at VDD max. and fCPU max.
3. All I/O pins in input mode with a static value at VDD or VSS (no load), all peripherals in reset state; clock input (OSC1)
driven by external square wave, CSS and LVD disabled.
4. SLOW-WAIT mode selected with fCPU based on fOSC divided by 32. All I/O pins in input mode with a static value at
VDD or VSS (no load), all peripherals in reset state; clock input (OSC1) driven by external square wave, CSS and LVD
disabled.
113/151
ST72334J/N, ST72314J/N, ST72124J
Notes:
1. Typical data are based on TA=25°C.
2. All I/O pins in input mode with a static value at VDD or VSS (no load), CSS and LVD disabled. Data based on charac-
terization results, tested in production at VDD max. and fCPU max.
3. Data based on design simulation and/or technology characteristics, not tested in production. All I/O pins in input mode
with a static value at VDD or VSS (no load); clock input (OSC1) driven by external square wave, LVD disabled.
4. Data based on characterization results, not tested in production.
5. Data based on characterization results done with the external components specified in Section 16.5.3 and Section
16.5.4, not tested in production.
6. As the oscillator is based on a current source, the consumption does not depend on the voltage.
7. Data based on a differential IDD measurement between reset configuration (timer counter running at fCPU/4) and timer
counter stopped (selecting external clock capability). Data valid for one timer.
8. Data based on a differential IDD measurement between reset configuration and a permanent SPI master communica-
tion (data sent equal to 55h).
9. Data based on a differential IDD measurement between reset configuration and continuous A/D conversions.
114/151
ST72334J/N, ST72314J/N, ST72124J
90%
VOSC1H
10%
VOSC1L
OSC2
Not connected internally
fOSC
EXTERNAL
IL
CLOCK SOURCE
OSC1
ST72XXX
Notes:
1. Data based on typical application software.
2. Time measured between interrupt event and interrupt vector fetch. ∆tc(INST) is the number of tCPU cycles needed to finish
the current instruction execution.
3. Data based on design simulation and/or technology characteristics, not tested in production.
115/151
ST72334J/N, ST72314J/N, ST72124J
i2
fOSC
CL1 OSC1
RESONATOR RF
CL2
OSC2
ST72XXX
Notes:
1. Resonator characteristics given by the crystal manufacturer.
2. tSU(OSC) is the typical oscillator start-up time measured between VDD=2.8V and the fetch of the first instruction (with a
quick VDD ramp-up from 0 to 5V (<50µs).
3. The oscillator selection can be optimized in terms of supply current using an high quality resonator with small RS value.
Refer to crystal manufacturer for more details.
116/151
ST72334J/N, ST72314J/N, ST72124J
Note:
tSU(OSC) is the typical oscillator start-up time measured between V DD=2.8V and the fetch of the first instruction (with a
quick VDD ramp-up from 0 to 5V (<50µs).
fOSC
CL1 OSC1
RESONATOR
RF(EXT) RF
CL2
OSC2
ST72XXX
RD
Notes:
1. Resonator characteristics given by the ceramic resonator manufacturer.
2. tSU(OSC) is the typical oscillator start-up time measured between VDD=2.8V and the fetch of the first instruction (with a
quick VDD ramp-up from 0 to 5V (<50µs).
3. The oscillator selection can be optimized in terms of supply current using an high quality resonator with small RS value.
Refer to Table 22 and Table 23 and to the ceramic resonator manufacturer’s documentation for more details.
117/151
ST72334J/N, ST72314J/N, ST72124J
Notes:
1. Murata Ceralock
2. VDD 4.5 to 5.5V
3. Values in parentheses refer to the capacitors integrated in the resonator
118/151
ST72334J/N, ST72314J/N, ST72124J
ST72XXX
INTERNAL RC VDD
Current copy
EXTERNAL RC
VREF + fOSC
REX OSC1 -
CEX OSC2
Voltage generator
CEX discharge
Figure 71. Typical Internal RC Oscillator Figure 72. Typical External RC Oscillator
fosc [MHz]
fosc [MHz] Rex=10KOhm
-40°C +85°C 20
4.3 Rex=15KOhm
+25°C +125°C
Rex=22KOhm
4.2 15
Rex=33KOhm
4.1 Rex=39KOhm
10
Rex=47KOhm
4
3.9 5
3.8
3.2 5.5 0
0 6.8 22 47 100 270 470
VDD [V]
Cex [pF]
Notes:
1. Data based on characterization results.
2. Guaranteed frequency range with the specified CEX and REX ranges taking into account the device process variation.
Data based on design simulation.
3. Data based on characterization results done with VDD nominal at 5V, not tested in production.
4. REX must have a positive temperature coefficient (ppm/°C), carbon resistors should therefore not be used.
5. Important: when no external CEX is applied, the capacitance to be considered is the global parasitic capacitance which
is subject to high variation (package, application...). In this case, the RC oscillator frequency tuning has to be done by
trying out several resistor values.
119/151
ST72334J/N, ST72314J/N, ST72124J
350
300
250
200
3.2 5.5
VDD [V]
Note:
1. Data based on characterization results, tested in production between 90KHz and 600KHz.
2. Filtered glitch on the fOSC signal. See functional description in Section 9.4 on page 30 for more details.
120/151
ST72334J/N, ST72314J/N, ST72124J
Notes:
1. Minimum VDD supply voltage without losing data stored in RAM (in HALT mode or under RESET) or in hardware reg-
isters (only in HALT mode). Guaranteed by construction, not tested in production.
2. Data based on characterization results, tested in production at TA=25°C.
3. Up to 16 bytes can be programmed at a time for a 4kBytes FLASH block (then up to 32 bytes at a time for an 8k device)
4. The data retention time increases when the TA decreases.
5. Data based on reliability test results and monitored in production.
121/151
ST72334J/N, ST72314J/N, ST72124J
ST72XXX
10µF 0.1µF VDD
ST7
DIGITAL NOISE
FILTERING
VSS
VDD
POWER VSSA
SUPPLY
SOURCE
EXTERNAL
NOISE
FILTERING VDDA
0.1µF
Notes:
1. Data based on characterization results, not tested in production.
2. The suggested 10µF and 0.1µF decoupling capacitors on the power supply lines are proposed as a good price vs. EMC
performance trade-off. They have to be put as close as possible to the device power supply pins. Other EMC recommen-
dations are given in other sections (I/Os, RESET, OSCx pin characteristics).
122/151
ST72334J/N, ST72314J/N, ST72124J
S1 R=1500Ω S1
R=10k~10MΩ
CL=200pF S2
Notes:
1. Data based on characterization results, not tested in production.
123/151
ST72334J/N, ST72314J/N, ST72124J
VSS
CS=150pF HV RELAY
ST7
ESD
GENERATOR 2) DISCHARGE
RETURN CONNECTION
Notes:
1. Class description: A Class is an STMicroelectronics internal specification. All its limits are higher than the JEDEC spec-
ifications, that means when a device belongs to Class A it exceeds the JEDEC standard. B Class strictly covers all the
JEDEC criteria (international standard).
2. Schaffner NSG435 with a pointed test finger.
124/151
ST72334J/N, ST72314J/N, ST72124J
(3a) (2a)
(1)
OUT (4) IN
Main path
(3b) (2b)
Path to avoid
VSS VSS
(3a) (2a)
(1)
OUT (4) IN
Main path
(3b) (2b)
VSS VSS
125/151
ST72334J/N, ST72314J/N, ST72124J
Main path
(1)
Path to avoid OUT (4) IN
VSS VSS
Figure 80. Negative Stress on a True Open Drain Pad vs. VDD
VDD VDD
Main path
(1)
OUT (4) IN
VSS VSS
VDDA
VSS
BACK TO BACK DIODE
BETWEEN GROUNDS
VSSA VSSA
126/151
ST72334J/N, ST72314J/N, ST72124J
VDD ST72XXX
UNUSED I/O PORT
10kΩ 10kΩ
UNUSED I/O PORT
ST72XXX
Ipu [µA]
70
Ta=-40°C Ta=85°C
60
Ta=25°C Ta=125°C
50
40
30
20
10
0
3.2 3.5 4 4.5 5 5.5
Vdd [V]
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD=5V.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. Configuration not recommended, all unused pins must be kept at a fixed voltage: using the output mode of the I/O for
example or an external pull-up or pull-down resistor (see Figure 82). Data based on design simulation and/or technology
characteristics, not tested in production.
5. The RPU pull-up equivalent resistor is based on a resistive transistor (corresponding IPU current characteristics de-
scribed in Figure 83). This data is based on characterization results, tested in production at VDD max.
6. Data based on characterization results, not tested in production.
7. To generate an external interrupt, a minimum pulse width has to be applied on an I/O port pin configured as an external
interrupt source.
127/151
ST72334J/N, ST72314J/N, ST72124J
VDD=5V
Output low level voltage for a high sink I/O pin TA≥85°C 1.7
when 4 pins are sunk at same time V
(see Figure 85 and Figure 88) IIO=+8mA TA≤85°C 0.75
TA≥85°C 0.85
IIO=-5mA, TA≤85°C VDD-1.6
Output high level voltage for an I/O pin TA≥85°C VDD-1.7
2)
VOH when 4 pins are sourced at same time
(see Figure 86 and Figure 89) IIO=-2mA T A≤85°C VDD-0.8
TA≥85°C VDD-1.0
Figure 84. Typical VOL at VDD=5V (standard) Figure 86. Typical VOH at VDD=5V
Vol [V] at Vdd=5V Voh [V] at Vdd=5V
2.5 6
Ta=-40°C Ta=85°C
2 5
Ta=25°C Ta=125°C
1.5 4
3 Ta=-40°C Ta=85°C
1
0 1
0 2 4 6 8 10 -8 -6 -4 -2 0
Iio [mA] Iio [mA]
0.5
0
0 5 10 15 20 25 30
Iio [mA]
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 16.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
2. The IIO current sourced must always respect the absolute maximum rating specified in Section 16.2.2 and the sum of
IIO (I/O ports and control pins) must not exceed IVDD. True open drain I/O pins does not have VOH.
128/151
ST72334J/N, ST72314J/N, ST72124J
Vol [V] at Iio=2mA Ta=-40°C Ta=85°C Vol [V] at Iio=5mA Ta=-40°C Ta=85°C
0.5 1.4
Ta=25°C Ta=125°C 1.3 Ta=25°C Ta=125°C
0.45
1.2
0.4 1.1
1
0.35
0.9
0.3 0.8
0.7
0.25
0.6
0.2 0.5
3.2 3.5 4 4.5 5 5.5 3.2 3.5 4 4.5 5 5.5
Vdd [V] Vdd [V]
Vol [V] at Iio=8mA Ta=-40°C Ta=85°C Vol [V] at Iio=20mA Ta=-40°C Ta=85°C
0.55 1.5
Ta=25°C Ta=125°C Ta=25°C Ta=125°C
0.5
1.3
0.45
0.4 1.1
0.35 0.9
0.3
0.7
0.25
0.2 0.5
3.2 3.5 4 4.5 5 5.5 3.2 3.5 4 4.5 5 5.5
Vdd [V] Vdd [V]
129/151
ST72334J/N, ST72314J/N, ST72124J
ST72XXX
VDD
L
NA
VDD VDD
IO
PT
INTERNAL
O
RON
RESET CONTROL
USER 0.1µF 4.7kΩ
EXTERNAL RESET
RESET
CIRCUIT 8)
0.1µF WATCHDOG RESET
LVD RESET
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD=5V.
2. Data based on characterization results, not tested in production.
3. Hysteresis voltage between Schmitt trigger switching levels. Based on characterization results, not tested.
4. The IIO current sunk must always respect the absolute maximum rating specified in Section 16.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
5. The RON pull-up equivalent resistor is based on a resistive transistor (corresponding ION current characteristics de-
scribed in Figure 91). This data is based on characterization results, not tested in production.
6. To guarantee the reset of the device, a minimum pulse has to be applied to RESET pin. All short pulses applied on
RESET pin with a duration below th(RSTL)in can be ignored.
7. The reset network (the resistor and two capacitors) protects the device against parasitic resets, especially in a noisy
environments.
8. The output of the external reset circuit must have an open-drain output to drive the ST7 reset pad. Otherwise the device
can be damaged when the ST7 generates an internal reset (LVD or watchdog).
130/151
ST72334J/N, ST72314J/N, ST72124J
100 1
50 0.5
0 0
3.2 3.5 4 4.5 5 5.5 0 1 2 3 4 5 6 7 8
Vol [V] at Iio=2mA Ta=-40°C Ta=85°C Vol [V] at Iio=5mA Ta=-40°C Ta=85°C
0.55
Ta=25°C Ta=125°C 1.2 Ta=25°C Ta=125°C
0.5
0.45
1
0.4
0.35
0.8
0.3
0.25 0.6
0.2
0.15 0.4
3.2 3.5 4 4.5 5 5.5 3.2 3.5 4 4.5 5 5.5
Vdd [V] Vdd [V]
131/151
ST72334J/N, ST72314J/N, ST72124J
ISPSEL ISPSEL
PROGRAMMING
TOOL
10kΩ
ST72XXX ST72XXX
Notes:
1. Data based on design simulation and/or technology characteristics, not tested in production.
2. When the ISP Remote mode is not required by the application ISPSEL pin must be tied to VSS.
132/151
ST72334J/N, ST72314J/N, ST72124J
133/151
ST72334J/N, ST72314J/N, ST72124J
SS INPUT
tsu(SS) tc(SCK) th(SS)
CPHA=0
SCK INPUT
CPOL=0
CPHA=0
CPOL=1
tw(SCKH)
ta(SO) tw(SCKL) tv(SO) th(SO) tr(SCK) tdis(SO)
tf(SCK)
MISO OUTPUT see
see note 2 MSB OUT BIT6 OUT LSB OUT note 2
tsu(SI) th(SI)
Notes:
1. Data based on design simulation and/or characterisation results, not tested in production.
2. When no communication is on-going the data output line of the SPI (MOSI in master mode, MISO in slave mode) has
its alternate function capability released. In this case, the pin status depends on the I/O port configuration.
3. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
134/151
ST72334J/N, ST72314J/N, ST72124J
SS INPUT
tsu(SS) tc(SCK) th(SS)
CPHA=0
SCK INPUT
CPOL=0
CPHA=0
CPOL=1
tsu(SI) th(SI)
SS INPUT
tc(SCK)
CPHA=0
CPOL=0
CPHA=0
SCK INPUT
CPOL=1
CPHA=1
CPOL=0
CPHA=1
CPOL=1
tw(SCKH) tr(SCK)
tw(SCKL) tf(SCK)
tsu(MI) th(MI)
tv(MO) th(MO)
MOSI OUTPUT see note 2 MSB OUT BIT6 OUT LSB OUT see note 2
Notes:
1. Measurement points are done at CMOS levels: 0.3xVDD and 0.7xVDD.
2. When no communication is on-going the data output line of the SPI (MOSI in master mode, MISO in slave mode) has
its alternate function capability released. In this case, the pin status depends of the I/O port configuration.
135/151
ST72334J/N, ST72314J/N, ST72124J
136/151
ST72334J/N, ST72314J/N, ST72124J
VDD
VT
0.6V
RAIN AINx
VAIN ADC
VT
CIO 0.6V IL
~2pF ±1µA
VDD
VDDA
0.1µF
VSSA
ST72XXX
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD-VSS=5V. They are given only as design guide-
lines and are not tested.
2. When VDDA and VSSA pins are not available on the pinout, the ADC refer to VDD and VSS .
3. Any added external serial resistor will downgrade the ADC accuracy (especially for resistance greater than 10kΩ). Data
based on characterization results, not tested in production.
4. The stabilization time of the AD converter is masked by the first tLOAD. The first conversion after the enable is then
always valid.
137/151
ST72334J/N, ST72314J/N, ST72124J
ADC Accuracy
VDD=5V, 2) VDD=5.0V, 3) VDD=3.3V, 3)
Symbol Parameter fCPU=1MHz fCPU=8MHz fCPU=8MHz Unit
Min Max Min Max Min Max
|ET| Total unadjusted error 1) 2.0 2.0 2.0
EO Offset error 1) 1.5 1.5 1.5
EG Gain Error 1) 1.5 1.5 1.5 LSB
|ED| Differential linearity error 1) 1.5 1.5 1.5
|EL| Integral linearity error 1) 1.5 1.5 1.5
(2)
ET=Total Unadjusted Error: maximum deviation
ET between the actual and the ideal transfer curves.
7 (3) EO=Offset Error: deviation between the first actual
(1) transition and the first ideal one.
6
EG=Gain Error: deviation between the last ideal
5 transition and the last actual one.
EO EL ED=Differential Linearity Error: maximum deviation
4 between actual steps and the ideal one.
3 EL=Integral Linearity Error: maximum deviation
ED between any actual transition and the end point
2 correlation line.
1 LSBIDEAL
1
Vin (LSBIDEAL)
0
1 2 3 4 5 6 7 253 254 255 256
VSSA VDDA
Notes:
1. ADC Accuracy vs. Negative Injection Current:
For IINJ-=0.8mA, the typical leakage induced inside the die is 1.6µA and the effect on the ADC accuracy is a loss of 1 LSB
for each 10KΩ increase of the external analog source impedance. This effect on the ADC accuracy has been observed
under worst-case conditions for injection:
- negative injection
- injection to an Input with analog capability, adjacent to the enabled Analog Input
- at 5V VDD supply, and worst case temperature.
2. Data based on characterization results with TA=25°C.
3. Data based on characterization results over the whole temperature range.
138/151
ST72334J/N, ST72314J/N, ST72124J
17 PACKAGE CHARACTERISTICS
D A mm inches
Dim.
D1 A2 Min Typ Max Min Typ Max
A1 A 1.60 0.063
A1 0.05 0.15 0.002 0.006
A2 1.35 1.40 1.45 0.053 0.055 0.057
b b 0.30 0.37 0.45 0.012 0.015 0.018
c 0.09 0.20 0.004 0.008
D 16.00 0.630
e
D1 14.00 0.551
E1 E
E 16.00 0.630
E1 14.00 0.551
e 0.80 0.031
θ 0° 3.5° 7° 0° 3.5° 7°
L 0.45 0.60 0.75 0.018 0.024 0.030
L
L1 1.00 0.039
L1
c Number of Pins
h N 64
Figure 101. 56-Pin Plastic Dual In-Line Package, Shrink 600-mil Width
mm inches
Dim.
Min Typ Max Min Typ Max
E A 6.35 0.250
A1 0.38 0.015
A2 A
A2 3.18 4.95 0.125 0.195
A1 C
E1 b 0.41 0.016
eA
b2 b e
eB b2 0.89 0.035
D
E C 0.20 0.38 0.008 0.015
0.015 D 50.29 53.21 1.980 2.095
GAGE PLANE E 15.01 0.591
E1 12.32 14.73 0.485 0.580
e 1.78 0.070
eA 15.24 0.600
eB
eB 17.78 0.700
L 2.92 5.08 0.115 0.200
Number of Pins
N 56
139/151
ST72334J/N, ST72314J/N, ST72124J
mm inches
D A Dim.
Min Typ Max Min Typ Max
D1 A2
A 1.60 0.063
A1 A1 0.05 0.15 0.002 0.006
A2 1.35 1.40 1.45 0.053 0.055 0.057
b 0.30 0.37 0.45 0.012 0.015 0.018
b
C 0.09 0.20 0.004 0.000 0.008
D 12.00 0.472
e D1 10.00 0.394
E1 E
E 12.00 0.472
E1 10.00 0.394
e 0.80 0.031
θ 0° 3.5° 7° 0° 3.5° 7°
Figure 103. 42-Pin Plastic Dual In-Line Package, Shrink 600-mil Width
mm inches
Dim.
E Min Typ Max Min Typ Max
A 5.08 0.200
A2 A A1 0.51 0.020
A2 3.05 3.81 4.57 0.120 0.150 0.180
A1 L c E1
b 0.38 0.46 0.56 0.015 0.018 0.022
b2 b e eA
eB
b2 0.89 1.02 1.14 0.035 0.040 0.045
D
E c 0.23 0.25 0.38 0.009 0.010 0.015
D 36.58 36.83 37.08 1.440 1.450 1.460
0.015
E 15.24 16.00 0.600 0.630
GAGE PLANE
E1 12.70 13.72 14.48 0.500 0.540 0.570
e 1.78 0.070
eA 15.24 0.600
eC eB 18.54 0.730
eB
eC 1.52 0.000 0.060
L 2.54 3.30 3.56 0.100 0.130 0.140
Number of Pins
N 42
Figure
Notes: 104. THERMAL CHARACTERISTICS
1. The power dissipation is obtained from the formula PD=PINT+PPORT where PINT is the chip internal power (IDDxVDD)
140/151
ST72334J/N, ST72314J/N, ST72124J
141/151
ST72334J/N, ST72314J/N, ST72124J
Figure 105. Recommended Wave Soldering Profile (with 37% Sn and 63% Pb)
250
COOLING PHASE
200 5 sec (ROOM TEMPERATURE)
SOLDERING
150 80°C PHASE
Temp. [°C]
100
PREHEATING
PHASE
50
0 Time [sec]
20 40 60 80 100 120 140 160
250
Tmax=220+/-5°C
for 25 sec
200
0 Time [sec]
100 200 300 400
142/151
ST72334J/N, ST72314J/N, ST72124J
143/151
ST72334J/N, ST72314J/N, ST72124J
TEMP.
DEVICE PACKAGE RANGE / XXX
Code name (defined by STMicroelectronics)
1= standard 0 to +70 °C
6= industrial -40 to +85 °C
7= automotive -40 to +105 °C
3= automotive -40 to +125 °C
B = Plastic DIP
T = Plastic TQFP
TEMP.
DEVICE PACKAGE RANGE XXX
Code name (defined by STMicroelectronics)
1= standard 0 to +70 °C
6= industrial -40 to +85 °C
7= automotive -40 to +105 °C
3= automotive -40 to +125 °C
B = Plastic DIP
T = Plastic TQFP
144/151
ST72334J/N, ST72314J/N, ST72124J
Contact: ...................................................................................
Phone No: ...................................................................................
Reference/ROM code*:. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
*The ROM or FASTROM code name is assigned by STMicroelectronics.
ROM or FASTROM code must be sent in .S19 format. .Hex extension cannot be processed.
STMicroelectronics references
ROM Type/Memory Size/Package (check only 1 option):
-------------------------------------------------------------------------------------------
ROM DEVICE: | 8K | 16K
------------------------------------------------------------------------------------------- |
SDIP42: | [ ] ST72124J2B | |
| [ ] ST72314J2B | [ ] ST72314J4B |
| [ ] ST72334J2B | [ ] ST72334J4B |
TQFP44: | [ ] ST72124J2T | |
| [ ] ST72314J2T | [ ] ST72314J4T |
| [ ] ST72334J2T | [ ] ST72334J4T |
SDIP56: | [ ] ST72314N2B | [ ] ST72314N4B |
| [ ] ST72334N2B | [ ] ST72334N4B |
TQFP64: | [ ] ST72314N2T | [ ] ST72314N4T |
| [ ] ST72334N2T | [ ] ST72334N4T |
-------------------------------------------------------------------------------------------
FASTROM
------------------------------------------------------------------------------------------- |
DEVICE:| 8K | 16K
SDIP42: | [ ] ST72P124J2B | |
| [ ] ST72P314J2B | [ ] ST72P314J4B |
| [ ] ST72P334J2B | [ ] ST72P334J4B |
TQFP44: | [ ] ST72P124J2T | |
| [ ] ST72P314J2T | [ ] ST72P314J4T |
| [ ] ST72P334J2T | [ ] ST72P334J4T |
SDIP56: | [ ] ST72P314N2B | [ ] ST72P314N4B |
| [ ] ST72P334N2B | [ ] ST72P334N4B |
TQFP64: | [ ] ST72P314N2T | [ ] ST72P314N4T |
| [ ] ST72P334N2T | [ ] ST72P334N4T |
Temperature Range: [ ] 0°C to +70°C [ ] -40°C to +85°C [ ] -40°C to +105°C [ ] -40°C to +125°C
Comments:
Supply Operating Range in the application:
Notes:
Date:
Signature:
145/151
ST72334J/N, ST72314J/N, ST72124J
ST72(C)334J2,
ST72(C)334J4,
ST72(C)334N2,
ST72(C)334N4, ST7MDT2-EPB2/EU
ST72(C)314J2, ST7MDT2-DVP2 ST7MDT2-EMU2B ST7MDT2-EPB2/US
ST72(C)314J4, ST7MDT2-EPB2/UK
ST72(C)314N2,
ST72(C)314N4,
ST72(C)124J2
Note:
1. In-Situ Programming (ISP) interface for FLASH devices.
146/151
ST72334J/N, ST72314J/N, ST72124J
147/151
ST72334J/N, ST72314J/N, ST72124J
148/151
ST72334J/N, ST72314J/N, ST72124J
IDENTIFICATION DESCRIPTION
AN 982 USING ST7 WITH CERAMIC RENATOR
AN1014 HOW TO MINIMIZE THE ST7 POWER CONSUMPTION
AN1015 SOFTWARE TECHNIQUES FOR IMPROVING MICROCONTROLLER EMC PERFORMANCE
AN1040 MONITORING THE VBUS SIGNAL FOR USB SELF-POWERED DEVICES
AN1070 ST7 CHECKSUM SELF-CHECKING CAPABILITY
AN1324 CALIBRATING THE RC OSCILLATOR OF THE ST7FLITE0 MCU USING THE MAINS
AN1477 EMULATED DATA EEPROM WITH XFLASH MEMORY
AN1502 EMULATED DATA EEPROM WITH ST7 HDFLASH MEMORY
PROGRAMMING AND TOOLS
AN 978 KEY FEATURES OF THE STVD7 ST7 VISUAL DEBUG PACKAGE
AN 983 KEY FEATURES OF THE COSMIC ST7 C-COMPILER PACKAGE
AN 985 EXECUTING CODE IN ST7 RAM
AN 986 USING THE INDIRECT ADDRESSING MODE WITH ST7
AN 987 ST7 SERIAL TEST CONTROLLER PROGRAMMING
AN 988 STARTING WITH ST7 ASSEMBLY TOOL CHAIN
AN 989 GETTING STARTED WITH THE ST7 HIWARE C TOOLCHAIN
AN1039 ST7 MATH UTILITY ROUTINES
AN1064 WRITING OPTIMIZED HIWARE C LANGUAGE FOR ST7
AN1071 HALF DUPLEX USB-TO-SERIAL BRIDGE USING THE ST72611 USB MICROCONTROLLER
AN1106 TRANSLATING ASSEMBLY CODE FROM HC05 TO ST7
PROGRAMMING ST7 FLASH MICROCONTROLLERS IN REMOTE ISP MODE (IN-SITU PRO-
AN1179
GRAMMING)
AN1446 USING THE ST72521 EMULATOR TO DEBUG A ST72324 TARGET APPLICATION
AN1478 PORTING AN ST7 PANTA PROJECT TO CODEWARRIOR IDE
AN1527 DEVELOPING A USB SMARTCARD READER WITH ST7SCR
149/151
ST72334J/N, ST72314J/N, ST72124J
19 SUMMARY OF CHANGES
Description of the changes between the current release of the specification and the previous one.
150/151
ST72334J/N, ST72314J/N, ST72124J
Notes:
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics
2002 STMicroelectronics - All Rights Reserved.
Purchase of I2C Components by STMicroelectronics conveys a license under the Philips I2C Patent. Rights to use these components in an
I2C system is granted provided that the system conforms to the I2C Standard Specification as defined by Philips.
STMicroelectronics Group of Companies
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
151/151
This datasheet has been download from:
www.datasheetcatalog.com