St7Lite2: 8-Bit Mcu With Single Voltage Flash Memory, Data Eeprom, Adc, Timers, Spi
St7Lite2: 8-Bit Mcu With Single Voltage Flash Memory, Data Eeprom, Adc, Timers, Spi
■ Memories
– 8 Kbytes single voltage Flash Program mem-
ory with read-out protection, In-Circuit Pro-
gramming and In-Application programming
(ICP and IAP). 10K write/erase cycles guar-
anteed, data retention: 20 years at 55°C.
– 384 bytes RAM SO20
– 256 bytes data EEPROM with read-out pro- DIP20 300”
tection. 300K write/erase cycles guaranteed,
data retention: 20 years at 55°C. outputs, input capture and output compare
■ Clock, Reset and Supply Management
functions
– Enhanced reset system ■ 1 Communication Interface
– Enhanced low voltage supervisor (LVD) for – SPI synchronous serial interface
main supply and an auxiliary voltage detector ■ Interrupt Management
(AVD) with interrupt capability for implement-
ing safe power-down procedures – 10 interrupt vectors plus TRAP and RESET
– Clock sources: Internal 1% RC oscillator, – 15 external interrupt lines (on 4 vectors)
crystal/ceramic resonator or external clock ■ A/D Converter
– Internal 32-MHz input clock for Auto-reload – 7 input channels
timer
– Fixed gain Op-amp
– Optional x4 or x8 PLL for 4 or 8 MHz internal
clock – 13-bit resolution for 0 to 430 mV (@ 5V VDD)
– Five Power Saving Modes: Halt, Active-Halt, – 10-bit resolution for 430 mV to 5V (@ 5V VDD)
Wait and Slow, Auto Wake Up From Halt ■ Instruction Set
■ I/O Ports – 8-bit data manipulation
– Up to 15 multifunctional bidirectional I/O lines – 63 basic instructions
– 7 high sink outputs – 17 main addressing modes
■ 4 Timers – 8 x 8 unsigned multiply instructions
– Configurable Watchdog Timer ■ Development Tools
– Two 8-bit Lite Timers with prescaler, – Full hardware/software development package
1 realtime base and 1 input capture – DM (Debug Module)
– One 12-bit Auto-reload Timer with 4 PWM
Device Summary
Features ST7LITE20 ST7LITE25 ST7LITE29
Program memory - bytes 8K
RAM (stack) - bytes 384 (128)
Data EEPROM - bytes - - 256
Lite Timer with Watchdog, Lite Timer with Watchdog,
Peripherals Autoreload Timer, SPI, Autoreload Timer with 32-MHz input clock,
10-bit ADC with Op-Amp SPI, 10-bit ADC with Op-Amp
Operating Supply 2.4V to 5.5V
Up to 8Mhz Up to 8Mhz (w/ ext OSC up to 16MHz
CPU Frequency
(w/ ext OSC up to 16MHz) and int 1MHz RC 1% PLLx8/4MHz)
Operating Temperature -40°C to +85°C
Packages SO20 300”, DIP20
Rev. 2.0
August 2003 1/131
1
Table of Contents
1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 REGISTER & MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4 FLASH PROGRAM MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 PROGRAMMING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 ICC INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.5 MEMORY PROTECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.6 RELATED DOCUMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.7 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5 DATA EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.3 MEMORY ACCESS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.4 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.5 ACCESS ERROR HANDLING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.6 DATA EEPROM READ-OUT PROTECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.7 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.3 CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7 SUPPLY, RESET AND CLOCK MANAGEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.1 INTERNAL RC OSCILLATOR ADJUSTMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.2 PHASE LOCKED LOOP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.3 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.4 MULTI-OSCILLATOR (MO) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
7.5 RESET SEQUENCE MANAGER (RSM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
7.6 SYSTEM INTEGRITY MANAGEMENT (SI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
8.1 NON MASKABLE SOFTWARE INTERRUPT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
8.2 EXTERNAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
8.3 PERIPHERAL INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
9 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.2 SLOW MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
9.3 WAIT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
9.4 HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
9.5 ACTIVE-HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
131
9.6 AUTO WAKE UP FROM HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
2/131
1
Table of Contents
10 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
10.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
10.2 FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
10.3 I/O PORT IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
10.4 UNUSED I/O PINS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
10.5 LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
10.6 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
10.7 DEVICE-SPECIFIC I/O PORT CONFIGURATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
11 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
11.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
11.2 12-BIT AUTORELOAD TIMER 2 (AT2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
11.3 LITE TIMER 2 (LT2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
11.4 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
11.5 10-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
12 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
12.1 ST7 ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
12.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
13 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
13.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
13.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
13.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
13.4 SUPPLY CURRENT CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
13.5 CLOCK AND TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
13.6 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
13.7 EMC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
13.8 I/O PORT PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
13.9 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
13.10 COMMUNICATION INTERFACE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . 114
13.11 10-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
14 PACKAGE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
14.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
14.2 SOLDERING AND GLUEABILITY INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
15 DEVICE CONFIGURATION AND ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . 123
15.1 OPTION BYTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
15.2 DEVICE ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
15.3 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
15.4 ST7 APPLICATION NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
16 IMPORTANT NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
16.1 EXECUTION OF BTJX INSTRUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
16.2 ADC CONVERSION SPURIOUS RESULTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
16.3 A/ D CONVERTER ACCURACY FOR FIRST CONVERSION . . . . . . . . . . . . . . . . . . . 129
3/131
ST7LITE2
Please also pay special attention to the Section “IMPORTANT NOTES” on page 129.
4/131
ST7LITE2
1 INTRODUCTION
The ST7LITE2 is a member of the ST7 microcon- software developers, enabling the design of highly
troller family. All ST7 devices are based on a com- efficient and compact application code. In addition
mon industry-standard 8-bit core, featuring an en- to standard 8-bit data management, all ST7 micro-
hanced instruction set. controllers feature true bit manipulation, 8x8 un-
The ST7LITE2 features FLASH memory with signed multiplication and indirect addressing
byte-by-byte In-Circuit Programming (ICP) and In- modes.
Application Programming (IAP) capability. For easy reference, all parametric data are located
Under software control, the ST7LITE2 device can in section 13 on page 91.
be placed in WAIT, SLOW, or HALT mode, reduc- The devices feature an on-chip Debug Module
ing power consumption when the application is in (DM) to support in-circuit debugging (ICD). For a
idle or standby state. description of the DM registers, refer to the ST7
The enhanced instruction set and addressing ICC Protocol Reference Manual.
modes of the ST7 offer both power and flexibility to
Figure 1. General Block Diagram
PLL
Int. 8MHz -> 32MHz
1% RC
1MHz PLL x 8
12-Bit
or PLL X4 Auto-Reload
TIMER 2
CLKIN
/2 8-Bit
LITE TIMER 2
OSC1 Ext.
OSC2 OSC
1MHz Internal PA7:0
to CLOCK PORT A
16MHz (8 bits)
PB6:0
LVD PORT B (7 bits)
ADDRESS AND DATA BUS
ADC
VDD POWER
+ OpAmp
VSS SUPPLY
SPI
RESET CONTROL
8-BIT CORE
ALU
Debug Module
PROGRAM
MEMORY DATA EEPROM
(8K Bytes) (256 Bytes)
RAM
(384 Bytes) WATCHDOG
5/131
1
ST7LITE2
2 PIN DESCRIPTION
Figure 2. 20-Pin SO Package Pinout
VSS 1 20 OSC1/CLKIN
VDD 2 19 OSC2
RESET 3 18 PA0 (HS)/LTIC
SS/AIN0/PB0 4 17 PA1 (HS)/ATIC
ei0
SCK/AIN1/PB1 5 ei3 16 PA2 (HS)/ATPWM0
MISO/AIN2/PB2 6 15 PA3 (HS)/ATPWM1
MOSI/AIN3/PB3 7 14 PA4 (HS)/ATPWM2
CLKIN/AIN4/PB4 8 ei2 13 PA5 (HS)/ATPWM3/ICCDATA
ei1
AIN5/PB5 9 12 PA6/MCO/ICCCLK/BREAK
AIN6/PB6 10 11 PA7(HS)
6/131
1
ST7LITE2
Input Output
Output
Input
(after reset)
float
wpu
ana
OD
PP
int
1 16 VSS S Ground
2 17 VDD S Main power supply
Top priority non maskable interrupt (active
3 18 RESET I/O CT X X
low)
ADC Analog Input 0 or SPI
4 19 PB0/AIN0/SS I/O CT X X X X Port B0
Slave Select (active low)
ei3 ADC Analog Input 1 or SPI Se-
5 20 PB1/AIN1/SCK I/O CT X X X X Port B1
rial Clock
ADC Analog Input 2 or SPI
6 1 PB2/AIN2/MISO I/O CT X X X X Port B2
Master In/ Slave Out Data
ADC Analog Input 3 or SPI
7 2 PB3/AIN3/MOSI I/O CT X X X X Port B3
Master Out / Slave In Data
ei2 ADC Analog Input 4 or Exter-
8 3 PB4/AIN4/CLKIN I/O CT X X X X Port B4
nal clock input
9 4 PB5/AIN5 I/O CT X X X X Port B5 ADC Analog Input 5
10 5 PB6/AIN6 I/O CT X X X X Port B6 ADC Analog Input 6
11 6 PA7 I/O CT HS X ei1 X X Port A7
Main Clock Output or In Circuit
Communication Clock or Ex-
ternal BREAK
Caution: During reset, this pin
PA6 /MCO/ must be held at high level to
12 7 I/O CT X ei1 X X Port A6
ICCCLK/BREAK avoid entering ICC mode un-
expectedly (this is guaranteed
by the internal pull-up if the ap-
plication leaves the pin float-
ing).
7/131
1
ST7LITE2
Type
Input Output
Output
Pin Name Function Alternate Function
DIP20
SO20
Input
(after reset)
float
wpu
ana
OD
PP
int
PA5 /ATPWM3/ Auto-Reload Timer PWM3 or
13 8 I/O CT HS X X X Port A5
ICCDATA ei1 In Circuit Communication Data
14 9 PA4/ATPWM2 I/O CT HS X X X Port A4 Auto-Reload Timer PWM2
15 10 PA3/ATPWM1 I/O CT HS X X X Port A3 Auto-Reload Timer PWM1
16 11 PA2/ATPWM0 I/O CT HS X X X Port A2 Auto-Reload Timer PWM0
ei0 Auto-Reload Timer Input Cap-
17 12 PA1/ATIC I/O CT HS X X X Port A1
ture
18 13 PA0/LTIC I/O CT HS X X X Port A0 Lite Timer Input Capture
19 14 OSC2 O Resonator oscillator inverter output
Resonator oscillator inverter input or Exter-
20 15 OSC1/CLKIN I
nal clock input
8/131
1
ST7LITE2
0080h
Short Addressing
RAM (zero page)
0000h 00FFh
HW Registers 0100h
(see Table 2) 16-bit Addressing
007Fh RAM
0080h
RAM 017Fh
0180h
(384 Bytes)
01FFh 128 Bytes Stack
0200h
Reserved 01FFh
0FFFh
1000h
Data EEPROM 1000h
RCCR0
(256 Bytes)
10FFh
1100h RCCR1
1001h
DFFFh
E000h
E000h 7 Kbytes
Flash Memory FBFFh SECTOR 1
(8K) FC00h 1 Kbyte
SECTOR 0
FFDFh FFFFh
FFE0h FFDEh
Interrupt & Reset Vectors RCCR0
(see Table 5)
FFFFh RCCR1
FFDFh
9/131
1
ST7LITE2
0006h
Reserved Area (2 bytes)
0007h
0023h to
Reserved area (11 bytes)
002Dh
10/131
1
ST7LITE2
003Dh to
Reserved area (12 bytes)
0048h
0051h to
Reserved area (47 bytes)
007Fh
11/131
1
ST7LITE2
4 FLASH PROGRAM MEMORY the device from the application board and
while the application is running.
4.3.1 In-Circuit Programming (ICP)
4.1 Introduction
ICP uses a protocol called ICC (In-Circuit Commu-
The ST7 single voltage extended Flash (XFlash) is nication) which allows an ST7 plugged on a print-
a non-volatile memory that can be electrically ed circuit board (PCB) to communicate with an ex-
erased and programmed either on a byte-by-byte ternal programming device connected via cable.
basis or up to 32 bytes in parallel. ICP is performed in three steps:
The XFlash devices can be programmed off-board Switch the ST7 to ICC mode (In-Circuit Communi-
(plugged in a programming tool) or on-board using cations). This is done by driving a specific signal
In-Circuit Programming or In-Application Program- sequence on the ICCCLK/DATA pins while the
ming. RESET pin is pulled low. When the ST7 enters
The array matrix organisation allows each sector ICC mode, it fetches a specific RESET vector
to be erased and reprogrammed without affecting which points to the ST7 System Memory contain-
other sectors. ing the ICC protocol routine. This routine enables
the ST7 to receive bytes from the ICC interface.
4.2 Main Features – Download ICP Driver code in RAM from the
ICCDATA pin
■ ICP (In-Circuit Programming) – Execute ICP Driver code in RAM to program
■ IAP (In-Application Programming) the FLASH memory
■ ICT (In-Circuit Testing) for downloading and Depending on the ICP Driver code downloaded in
executing user application test patterns in RAM RAM, FLASH memory programming can be fully
■ Sector 0 size configurable by option byte customized (number of bytes to program, program
■ Read-out and write protection against piracy locations, or selection of the serial communication
interface for downloading).
4.3 PROGRAMMING MODES 4.3.2 In Application Programming (IAP)
This mode uses an IAP Driver program previously
The ST7 can be programmed in three different programmed in Sector 0 by the user (in ICP
ways: mode).
– Insertion in a programming tool. In this mode, This mode is fully controlled by user software. This
FLASH sectors 0 and 1, option byte row and
data EEPROM (if present) can be pro- allows it to be adapted to the user application, (us-
grammed or erased. er-defined strategy for entering programming
– In-Circuit Programming. In this mode, FLASH mode, choice of communications protocol used to
sectors 0 and 1, option byte row and data fetch the data to be stored etc.)
EEPROM (if present) can be programmed or IAP mode can be used to program any memory ar-
erased without removing the device from the eas except Sector 0, which is write/erase protect-
application board.
ed to allow recovery in case errors occur during
– In-Application Programming. In this mode,
sector 1 and data EEPROM (if present) can the programming operation.
be programmed or erased without removing
12/131
1
ST7LITE2
4.4 ICC interface cation reset circuit if it drives more than 5mA at
high level (push pull output or pull-up resistor<1K).
ICP needs a minimum of 4 and up to 6 pins to be A schottky diode can be used to isolate the appli-
connected to the programming tool. These pins cation RESET circuit in this case. When using a
are: classical RC network with R>1K or a reset man-
– RESET: device reset agement IC with open drain output and pull-up re-
– VSS: device power supply ground sistor>1K, no additional components are needed.
– ICCCLK: ICC output serial clock pin In all cases the user must ensure that no external
– ICCDATA: ICC input serial data pin reset is generated by the application during the
– OSC1: main clock input for external source ICC session.
(not required on devices without OSC1/OSC2 3. The use of Pin 7 of the ICC connector depends
pins) on the Programming Tool architecture. This pin
– VDD: application board power supply (option- must be connected when using most ST Program-
al, see Note 3) ming Tools (it is used to monitor the application
Notes: power supply). Please refer to the Programming
1. If the ICCCLK or ICCDATA pins are only used Tool manual.
as outputs in the application, no signal isolation is 4. Pin 9 has to be connected to the OSC1 pin of
necessary. As soon as the Programming Tool is the ST7 when the clock is not available in the ap-
plugged to the board, even if an ICC session is not plication or if the selected clock option is not pro-
in progress, the ICCCLK and ICCDATA pins are grammed in the option byte. ST7 devices with mul-
not available for the application. If they are used as ti-oscillator capability need to have OSC2 ground-
inputs by the application, isolation such as a serial ed in this case.
resistor has to be implemented in case another de-
vice forces the signal. Refer to the Programming 5. During reset, this pin must be held at high level
Tool documentation for recommended resistor val- to avoid entering ICC mode unexpectedly (this is
ues. guaranteed by the internal pull-up if the application
leaves the pin floating).
2. During the ICP session, the programming tool
must control the RESET pin. This can lead to con-
flicts between the programming tool and the appli-
Figure 5. Typical ICC Interface
PROGRAMMING TOOL
ICC CONNECTOR
ICC Cable
10 8 6 4 2
APPLICATION
RESET SOURCE
See Note 2
RESET
ICCCLK
ICCDATA
OSC1
OSC2
ST7
13/131
1
ST7LITE2
14/131
1
ST7LITE2
5 DATA EEPROM
HIGH VOLTAGE
PUMP
EEPROM
ADDRESS 4 ROW
MEMORY MATRIX
DECODER DECODER
(1 ROW = 32 x 8 BITS)
128 128
4 DATA 32 x 8 BITS
MULTIPLEXER DATA LATCHES
15/131
1
ST7LITE2
5.3 MEMORY ACCESS the value is latched inside the 32 data latches ac-
cording to its address.
The Data EEPROM memory read/write access
modes are controlled by the E2LAT bit of the EEP- When PGM bit is set by the software, all the previ-
ROM Control/Status register (EECSR). The flow- ous bytes written in the data latches (up to 32) are
chart in Figure 7 describes these different memory programmed in the EEPROM cells. The effective
access modes. high address (row) is determined by the last EEP-
ROM write sequence. To avoid wrong program-
Read Operation (E2LAT=0) ming, the user must take care that all the bytes
The EEPROM can be read as a normal ROM loca- written between two programming sequences
tion when the E2LAT bit of the EECSR register is have the same high address: only the five Least
cleared. In a read cycle, the byte to be accessed is Significant Bits of the address can change.
put on the data bus in less than 1 CPU clock cycle. At the end of the programming cycle, the PGM and
This means that reading data from EEPROM LAT bits are cleared simultaneously.
takes the same time as reading data from Note: Care should be taken during the program-
EPROM, but this memory cannot be used to exe- ming cycle. Writing to the same memory location
cute machine code. will over-program the memory (logical AND be-
tween the two write access data result) because
Write Operation (E2LAT=1) the data latches are only cleared at the end of the
To access the write mode, the E2LAT bit has to be programming cycle and by the falling edge of the
set by software (the E2PGM bit remains cleared). E2LAT bit.
When a write access to the EEPROM area occurs, It is not possible to read the latched data.
This note is ilustrated by the Figure 9.
Figure 7. Data EEPROM Programming Flowchart
WRITE UP TO 32 BYTES
READ BYTES
IN EEPROM AREA
IN EEPROM AREA
(with the same 11 MSB of the address)
0 1
E2LAT
CLEARED BY HARDWARE
16/131
1
ST7LITE2
ROW 0 00h...1Fh
DEFINITION 1 20h...3Fh
...
N Nx20h...Nx20h+1Fh
PHASE 1 PHASE 2
Writing data latches Waiting E2PGM and E2LAT to fall
E2LAT bit
Set by USER application Cleared by hardware
E2PGM bit
Note: If a programming cycle is interrupted (by software or a reset action), the integrity of the data in mem-
ory is not guaranteed.
17/131
1
ST7LITE2
INTERNAL
PROGRAMMING
VOLTAGE
ERASE CYCLE WRITE CYCLE
WRITE OF
DATA LATCHES
tPROG
LAT
PGM
18/131
1
ST7LITE2
7 0
0 0 0 0 0 0 E2LAT E2PGM
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
19/131
1
ST7LITE2
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
20/131
1
ST7LITE2
Bit 2 = N Negative.
The 8-bit Condition Code register contains the in- This bit is set and cleared by hardware. It is repre-
terrupt mask and four flags representative of the sentative of the result sign of the last arithmetic,
result of the instruction just executed. This register logical or data manipulation. It is a copy of the 7th
can also be handled by the PUSH and POP in- bit of the result.
structions. 0: The result of the last operation is positive or null.
These bits can be individually tested and/or con- 1: The result of the last operation is negative
trolled by specific instructions. (i.e. the most significant bit is a logic 1).
This bit is accessed by the JRMI and JRPL instruc-
Bit 4 = H Half carry. tions.
This bit is set by hardware when a carry occurs be-
tween bits 3 and 4 of the ALU during an ADD or Bit 1 = Z Zero.
ADC instruction. It is reset by hardware during the
same instructions. This bit is set and cleared by hardware. This bit in-
0: No half carry has occurred. dicates that the result of the last arithmetic, logical
1: A half carry has occurred. or data manipulation is zero.
0: The result of the last operation is different from
This bit is tested using the JRH or JRNH instruc- zero.
tion. The H bit is useful in BCD arithmetic subrou- 1: The result of the last operation is zero.
tines.
This bit is accessed by the JREQ and JRNE test
instructions.
Bit 3 = I Interrupt mask.
This bit is set by hardware when entering in inter-
Bit 0 = C Carry/borrow.
rupt or by software to disable all interrupts except
the TRAP software interrupt. This bit is cleared by This bit is set and cleared by hardware and soft-
software. ware. It indicates an overflow or an underflow has
0: Interrupts are enabled. occurred during the last arithmetic operation.
1: Interrupts are disabled. 0: No overflow or underflow has occurred.
1: An overflow or underflow has occurred.
This bit is controlled by the RIM, SIM and IRET in-
structions and is tested by the JRM and JRNM in- This bit is driven by the SCF and RCF instructions
structions. and tested by the JRC and JRNC instructions. It is
also affected by the “bit test and branch”, shift and
Note: Interrupts requested while I is set are rotate instructions.
latched and can be processed when I is cleared.
By default an interrupt routine is not interruptable
21/131
1
ST7LITE2
@ 0180h
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
22/131
1
ST7LITE2
23/131
1
ST7LITE2
tLOCK
Bits 7:2 = Reserved, must be kept cleared.
tSTARTUP
Bit 1 = MCO Main Clock Out enable
This bit is read/write by software and cleared by
hardware after a reset. This bit allows to enable
t the MCO output clock.
When the PLL is started, after reset or wakeup 0: MCO clock disabled, I/O port free for general
from Halt mode or AWUFH mode, it outputs the purpose I/O.
clock after a delay of tSTARTUP. 1: MCO clock enabled.
When the PLL output signal reaches the operating
frequency, the LOCKED bit in the SICSCR register
is set. Full PLL accuracy (ACC PLL) is reached after Bit 0 = SMS Slow Mode select
a stabilization time of tSTAB (see Figure 12 and This bit is read/write by software and cleared by
13.3.4 Internal RC Oscillator and PLL) hardware after a reset. This bit selects the input
Refer to section 7.6.4 on page 33 for a description clock fOSC or fOSC/32.
of the LOCKED bit in the SICSR register. 0: Normal mode (fCPU = fOSC
1: Slow mode (fCPU = fOSC/32)
7 0
24/131
1
ST7LITE2
OSC,PLLOFF,
RC OSC
OSCRANGE[2:0]
Option bits
PLLx4x8
CLKIN CLKIN PLL 1MHz -> 8MHz
PLL 1MHz -> 4MHz fOSC
CLKIN
/2 CLKIN/2
DIVIDER
CLKIN/2
CLKIN OSC
/OSC1 OSC /2 OSC/2
1-16 MHZ DIVIDER
OSC2 or 32kHz
OSC,PLLOFF,
OSCRANGE[2:0]
Option bits
8-BIT fLTIMER
LITE TIMER 2 COUNTER (1ms timebase @ 8 MHz fOSC)
fOSC fOSC/32
/32 DIVIDER 1
fCPU
25/131
1
ST7LITE2
External Clock
■ an internal high frequency RC oscillator OSC1 OSC2
Each oscillator is optimized for a given frequency
range in terms of consumption and is selectable
through the option byte. The associated hardware
configurations are shown in Table 4. Refer to the EXTERNAL
electrical characteristics section for more details. SOURCE
Crystal/Ceramic Resonators
In this external clock mode, a clock signal (square, ST7
sinus or triangle) with ~50% duty cycle has to drive OSC1 OSC2
the OSC1 pin while the OSC2 pin is tied to ground.
Note: when the Multi-Oscillator is not used, PB4 is
selected by default as external clock.
Crystal/Ceramic Oscillators
CL1 CL2
This family of oscillators has the advantage of pro- LOAD
ducing a very accurate rate on the main clock of CAPACITORS
the ST7. The selection within a list of 4 oscillators
with different frequency ranges has to be done by
Internal RC Oscillator
26/131
1
ST7LITE2
VDD
RON
Filter INTERNAL
RESET
RESET
27/131
1
ST7LITE2
VIT+(LVD)
VIT-(LVD)
th(RSTL)in tw(RSTL)out
EXTERNAL
RESET
SOURCE
RESET PIN
WATCHDOG
RESET
WATCHDOG UNDERFLOW
28/131
1
ST7LITE2
Vhys
VIT+(LVD)
VIT- (LVD)
RESET
29/131
1
ST7LITE2
WATCHDOG
STATUS FLAG
TIMER (WDG)
LOW VOLTAGE
VSS DETECTOR
VDD (LVD)
AUXILIARY VOLTAGE
DETECTOR
(AVD)
30/131
1
ST7LITE2
VDD
Early Warning Interrupt
(Power has dropped, MCU not
not yet in reset)
Vhyst
VIT+(AVD)
VIT-(AVD)
VIT+(LVD)
VIT-(LVD)
AVD INTERRUPT
REQUEST
IF AVDIE bit = 1
INTERRUPT Cleared by INTERRUPT Cleared by
reset hardware
LVD RESET
31/131
1
ST7LITE2
7.6.3.1 Interrupts
The AVD interrupt event generates an interrupt if
the corresponding Enable Control Bit (AVDIE) is
32/131
1
ST7LITE2
Application notes
Bit 3 = LOCKED PLL Locked Flag The LVDRF flag is not cleared when another RE-
This bit is set and cleared by hardware. It is set au- SET type occurs (external or watchdog), the
tomatically when the PLL reaches its operating fre- LVDRF flag remains set to keep trace of the origi-
quency. nal failure.
0: PLL not locked In this case, a watchdog reset can be detected by
1: PLL locked software while an external reset can not.
33/131
1
ST7LITE2
8 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 20.
listed in the Interrupt Mapping Table and a non-
maskable software interrupt (TRAP). The Interrupt 8.2 EXTERNAL INTERRUPTS
processing flowchart is shown in Figure 20.
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 8.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-
8.1 NON MASKABLE SOFTWARE INTERRUPT abled) will therefore be lost if the clear sequence is
executed.
This interrupt is entered when the TRAP instruc-
tion is executed regardless of the state of the I bit.
34/131
1
ST7LITE2
INTERRUPTS (Cont’d)
Figure 20. 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
35/131
1
ST7LITE2
INTERRUPTS (Cont’d)
EXTERNAL INTERRUPT CONTROL REGISTER EXTERNAL INTERRUPT SELECTION REGIS-
(EICR) TER (EISR)
Read /Write Read /Write
Reset Value: 0000 0000 (00h) Reset Value: 0000 1100 (0Ch)
7 0 7 0
IS31 IS30 IS21 IS20 IS11 IS10 IS01 IS00 ei31 ei30 ei21 ei20 ei11 ei10 ei01 ei00
Bit 7:6 = IS3[1:0] ei3 sensitivity Bit 7:6 = ei3[1:0] ei3 pin selection
These bits define the interrupt sensitivity for ei3 These bits are written by software. They select the
(Port B0) according to Table 6. Port B I/O pin used for the ei3 external interrupt ac-
cording to the table below.
Bit 5:4 = IS2[1:0] ei2 sensitivity External Interrupt I/O pin selection
These bits define the interrupt sensitivity for ei2
ei31 ei30 I/O Pin
(Port B3) according to Table 6.
0 0 PB0 *
0 1 PB1
Bit 3:2 = IS1[1:0] ei1 sensitivity
These bits define the interrupt sensitivity for ei1 1 0 PB2
(Port A7) according to Table 6.
* Reset State
Bit 1:0 = IS0[1:0] ei0 sensitivity
These bits define the interrupt sensitivity for ei0 Bit 5:4 = ei2[1:0] ei2 pin selection
(Port A0) according to Table 6. These bits are written by software. They select the
Note: These 8 bits can be written only when the I Port B I/O pin used for the ei2 external interrupt ac-
bit in the CC register is set. cording to the table below.
External Interrupt I/O pin selection
36/131
1
ST7LITE2
INTERRUPTS (Cont’d)
Bit 3:2 = ei1[1:0] ei1 pin selection Port A I/O pin used for the ei0 external interrupt ac-
These bits are written by software. They select the cording to the table below.
Port A I/O pin used for the ei1 external interrupt ac- External Interrupt I/O pin selection
cording to the table below.
External Interrupt I/O pin selection ei01 ei00 I/O Pin
0 0 PA0 *
ei11 ei10 I/O Pin
0 1 PA1
0 0 PA4
1 0 PA2
0 1 PA5
1 1 PA3
1 0 PA6
1 1 PA7*
* Reset State
* Reset State
Bits 1:0 = Reserved.
37/131
1
ST7LITE2
High
RUN SMS
WAIT
SLOW WAIT
ACTIVE HALT
HALT
Low
POWER CONSUMPTION
38/131
1
ST7LITE2
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.
39/131
1
ST7LITE2
Notes:
256 OR 4096 CPU
RUN HALT CYCLE DELAY RUN 1. WDGHALT is an option bit. See option byte sec-
tion for more details.
RESET 2. Peripheral clocked with an external clock source
OR can still be active.
HALT INTERRUPT 3. Only some specific interrupts can exit the MCU
INSTRUCTION FETCH from HALT mode (such as external interrupt). Re-
[Active Halt disabled] VECTOR fer to Table 5 Interrupt Mapping for more details.
4. 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.
5. If the PLL is enabled by option byte, it outputs
the clock after a delay of tSTARTUP (see Figure 12).
40/131
1
ST7LITE2
41/131
1
ST7LITE2
ACTIVE 256 OR 4096 CPU Auto Wake Up From Halt (AWUFH) mode is simi-
RUN HALT RUN lar to Halt mode with the addition of a specific in-
CYCLE DELAY 1)
ternal RC oscillator for wake-up (Auto Wake Up
from Halt Oscillator). Compared to ACTIVE-HALT
RESET
OR
mode, AWUFH has lower power consumption (the
HALT main clock is not kept running, but there is no ac-
INTERRUPT FETCH
INSTRUCTION curate realtime clock available.
[Active Halt Enabled] VECTOR
It is entered by executing the HALT instruction
when the AWUEN bit in the AWUCSR register has
Figure 27. ACTIVE-HALT Mode Flow-chart been set.
OSCILLATOR ON Figure 28. AWUFH Mode Block Diagram
HALT INSTRUCTION PERIPHERALS 2) OFF
(Active Halt enabled) CPU OFF
I BIT 0
AWU RC
(AWUCSR.AWUEN=0)
oscillator
to Timer input capture
fAWU_RC
N
RESET
N Y AWUFH
INTERRUPT 3) /64 AWUFH interrupt
divider prescaler/1 .. 255
Y OSCILLATOR ON (ei0 source)
PERIPHERALS 2) OFF
CPU ON As soon as HALT mode is entered, and if the
I BIT X 4) AWUEN bit has been set in the AWUCSR register,
the AWU RC oscillator provides a clock signal
256 OR 4096 CPU CLOCK (fAWU_RC). Its frequency is divided by a fixed divid-
CYCLE DELAY er and a programmable prescaler controlled by the
AWUPR register. The output of this prescaler pro-
vides the delay time. When the delay has elapsed
OSCILLATOR ON the AWUF flag is set by hardware and an interrupt
PERIPHERALS ON wakes-up the MCU from Halt mode. At the same
CPU ON time the main oscillator is immediately turned on
I BIT X 4) and a 256 or 4096 cycle delay is used to stabilize
it. After this start-up delay, the CPU resumes oper-
FETCH RESET VECTOR ation by servicing the AWUFH interrupt. The AWU
OR SERVICE INTERRUPT flag and its associated interrupt are cleared by
software reading the AWUCSR register.
Notes: To compensate for any frequency dispersion of
1. This delay occurs only if the MCU exits ACTIVE- the AWU RC oscillator, it can be calibrated by
HALT mode by means of a RESET. measuring the clock frequency fAWU_RC and then
2. Peripherals clocked with an external clock calculating the right prescaler value. Measurement
source can still be active. mode is enabled by setting the AWUM bit in the
3. Only the RTC1 interrupt and some specific inter- AWUCSR register in Run mode. This connects
rupts can exit the MCU from ACTIVE-HALT mode. fAWU_RC to the input capture of the 12-bit Auto-Re-
Refer to Table 5, “Interrupt Mapping,” on page 35 load timer, allowing the fAWU_RC to be measured
for more details. using the main oscillator clock as a reference time-
4. Before servicing an interrupt, the CC register is
base.
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.
42/131
1
ST7LITE2
fCPU
fAWU_RC
Clear
by software
AWUFH interrupt
43/131
1
ST7LITE2
N
RESET
N Y
INTERRUPT 3)
AWU RC OSC OFF
Y MAIN OSC ON
PERIPHERALS OFF
CPU ON
I[1:0] BITS XX 4)
44/131
1
ST7LITE2
45/131
1
ST7LITE2
10 I/O PORTS
46/131
1
ST7LITE2
ALTERNATE
REGISTER 1
OUTPUT VDD P-BUFFER
ACCESS From on-chip peripheral (see table below)
0
ALTERNATE
PULL-UP
ENABLE
(see table below)
BIT
DR VDD
DDR
PULL-UP
PAD
CONDITION
DATA BUS
OR
If implemented
OR SEL
N-BUFFER
DIODES
(see table below)
DDR SEL
ANALOG
INPUT
CMOS
SCHMITT
DR SEL
1 TRIGGER
0
ALTERNATE
INPUT
EXTERNAL Combinational To on-chip peripheral
INTERRUPT Logic FROM
REQUEST (eix) OTHER
SENSITIVITY BITS Note: Refer to the Port Configuration
SELECTION table for device specific information.
Legend: NI - not implemented Note: The diode to VDD is not implemented in the
Off - implemented not activated true open drain pads. A local protection between
On - implemented and activated the pad and VOL is implemented to protect the de-
vice against positive stress.
47/131
1
ST7LITE2
DR REGISTER ACCESS
VDD NOTE 3
RPU PULL-UP
CONDITION DR W
REGISTER DATA BUS
PAD R
INPUT 1)
ALTERNATE INPUT
FROM To on-chip peripheral
OTHER
PINS EXTERNAL INTERRUPT
SOURCE (eix)
ANALOG INPUT
VDD NOTE 3
OPEN-DRAIN OUTPUT 2)
DR REGISTER ACCESS
RPU
PAD DR R/W
REGISTER DATA BUS
RPU
DR R/W
REGISTER DATA BUS
PAD
ALTERNATE ALTERNATE
ENABLE OUTPUT
BIT From on-chip periphera l
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.
3. For true open drain, these elements are not implemented.
48/131
1
ST7LITE2
49/131
1
ST7LITE2
Note: On ports where the external interrupt capability is selected using the EISR register, the configura-
tion will be as follows:
Input Output
Port Pin name
OR = 0 OR = 1 OR = 0 OR = 1
Port A PA7:0 floating pull-up interrupt open drain push-pull
Port B PB6:0 floating pull-up interrupt open drain push-pull
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
50/131
1
ST7LITE2
11 ON-CHIP PERIPHERALS
RESET
WDGA T6 T5 T4 T3 T2 T1 T0
7-BIT DOWNCOUNTER
51/131
1
ST7LITE2
52/131
1
ST7LITE2
WDGA T6 T5 T4 T3 T2 T1 T0
53/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
WDGCR WDGA T6 T5 T4 T3 T2 T1 T0
002Eh
Reset Value 0 1 1 1 1 1 1 1
54/131
1
ST7LITE2
OEx bit
DCR0H DCR0L
OUTPUT CONTROL
PWM GENERATION
55/131
1
ST7LITE2
4095
DUTY CYCLE
REGISTER
COUNTER
(DCRx)
AUTO-RELOAD
REGISTER
(ATR)
000
t
PWMx OUTPUT
WITH OE=1
AND OPx=0
WITH OE=1
AND OPx=1
56/131
1
ST7LITE2
fCOUNTER
ATR= FFDh
DCRx=000h
AND OPx=0
DCRx=FFDh
DCRx=FFEh
WITH MOD00=1
PWMx OUTPUT
AND OPx=1
DCRx=000h
t
Output Compare Mode When a low level is detected on the BREAK pin,
This mode is always available. the BA bit is set and the break function is activat-
ed.
To use this function, load a 12-bit value in the
DCRxH and DCRxL registers. Software can set the BA bit to activate the break
function without using the BREAK pin.
When the 12-bit upcounter (CNTR) reaches the
value stored in the DCRxH and DCRxL registers, When the break function is activated (BA bit =1):
the CMPF bit in the PWMxCSR register is set and – The break pattern (PWM[3:0] bits in the BREAK-
an interrupt request is generated if the CMPIE bit CR) is forced directly on the PWMx output pins
is set. (after the inverter).
Note: The output compare function is only availa- – The 12-bit PWM counter is set to its reset value.
ble for DCRx values other than 0 (reset value). – The ARR, DCRx and the corresponding shadow
registers are set to their reset values.
Break Function – The PWMCR register is reset.
When the break function is deactivated after ap-
The break function is used to perform an emergen- plying the break (BA bit goes from 1 to 0 by soft-
cy shutdown of the power converter. ware):
The break function is activated by the external – The control of PWM outputs is transferred to the
BREAK pin (active low). In order to use the port registers.
BREAK pin it must be previously enabled by soft-
ware setting the BPEN bit in the BREAKCR regis-
ter.
57/131
1
ST7LITE2
BREAKCR Register
BA BPEN PWM3 PWM2 PWM1 PWM0
PWM0
1
PWM1
PWM2
PWM0
PWM1 PWM3
PWM2 0
PWM3
(Inverters)
When BA is set:
PWM counter -> Reset value
Note: ARR & DCRx -> Reset value
The BREAK pin value is latched by the BA bit. PWM Mode -> Reset value
fCOUNTER
COUNTER
01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah
ATIC PIN
ICF FLAG
58/131
1
ST7LITE2
11.2.5 Interrupts
Exit
Enable Exit Exit
Interrupt Event from
Control from from
Event1) Flag Active-
Bit Wait Halt
Halt
Overflow
OVF OVIE Yes No Yes2)
Event
IC Event ICF ICIE Yes No No
CMP Event CMPF0 CMPIE Yes No No
59/131
1
ST7LITE2
Bit 6 = ICF Input Capture Flag. Bit 0 = CMPIE Compare Interrupt Enable.
This bit is set by hardware and cleared by software This bit is read/write by software and cleared by
by reading the ATICR register (a read access to hardware after a reset. It can be used to mask the
ATICRH or ATICRL will clear this flag). Writing to interrupt generated when the CMPF bit is set.
this bit does not change the bit value. 0: CMPF interrupt disabled.
0: No input capture 1: CMPF interrupt enabled.
1: An input capture has occurred
CNTR CNTR
0 0 0 0 CNTR9 CNTR8
Bits 4:3 = CK[1:0] Counter Clock Selection. 11 10
These bits are set and cleared by software and
cleared by hardware after a reset. They select the
clock frequency of the counter. The change be-
comes effective after an overflow. COUNTER REGISTER LOW (CNTRL)
Read only
Counter Clock Selection CK1 CK0 Reset Value: 0000 0000 (000h)
OFF 0 0
7 0
fLTIMER (1 ms timebase @ 8 MHz) 1) 0 1
fCPU 1 0 CNTR7 CNTR6 CNTR5 CNTR4 CNTR3 CNTR2 CNTR1 CNTR0
2)
32 MHz 1 1
Note 1: PWM mode is not available at this fre- Bits 15:12 = Reserved.
quency.
Bits 11:0 = CNTR[11:0] Counter Value.
Note 2: ATICR counter may return inaccurate re- This 12-bit register is read by software and cleared
sults when read. It is therefore not recommended by hardware after a reset. The counter is incre-
to use Input Capture mode at this frequency. mented continuously as soon as a counter clok is
selected. To obtain the 12-bit value, software
should read the counter value in two consecutive
read operations, LSB first. When a counter over-
flow occurs, the counter restarts from the value
specified in the ATR register.
60/131
1
ST7LITE2
Bits 7:0 = OE[3:0] PWMx output enable. 0 0 BA BPEN PWM3 PWM2 PWM1 PWM0
These bits are set and cleared by software and
cleared by hardware after a reset.
0: PWM mode disabled. PWMx Output Alternate Bits 7:6 = Reserved. Forced by hardware to 0.
Function disabled (I/O pin free for general pur-
pose I/O)
1: PWM mode enabled Bit 5 = BA Break Active.
This bit is read/write by software, cleared by hard-
ware after reset and set by hardware when the
BREAK pin is low. It activates/deactivates the
Break function.
0: Break not active
1: Break active
61/131
1
ST7LITE2
7 0
PWMx DUTY CYCLE REGISTER HIGH (DCRxH)
Read / Write
Reset Value: 0000 0000 (00h) ICR7 ICR6 ICR5 ICR4 ICR3 ICR2 ICR1 ICR0
15 8
Bits 15:12 = Reserved.
0 0 0 0 DCR11 DCR10 DCR9 DCR8 Bits 11:0 = ICR[11:0] Input Capture Data.
This is a 12-bit register which is readable by soft-
ware and cleared by hardware after a reset. The
ATICR register contains captured the value of the
12-bit CNTR register when a rising or falling edge
PWMx DUTY CYCLE REGISTER LOW (DCRxL)
occurs on the ATIC pin. Capture will only be per-
Read / Write
formed when the ICF flag is cleared.
Reset Value: 0000 0000 (00h)
7 0
Bits 15:12 = Reserved.
0 0 0 0 0 0 0 TRAN
Bits 11:0 = DCR[11:0] PWMx Duty Cycle Value
This 12-bit value is written by software. It defin-
esthe duty cycle of the corresponding PWM output
Bits 7:1 Reserved. Forced by hardware to 0.
signal (see Figure 36).
In PWM mode (OEx=1 in the PWMCR register)
the DCR[11:0] bits define the duty cycle of the Bit 0 = TRAN Transfer enable
PWMx output signal (see Figure 36). In Output This bit is read/write by software, cleared by hard-
Compare mode, they define the value to be com- ware after each completed transfer and set by
pared with the 12-bit upcounter value. hardware after reset.
It allows the value of the DCRx registers to be
transferred to the DCRx shadow registers after the
next overflow event.
The OPx bits are transferred to the shadow OPx
bits in the same way.
62/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
63/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
TRANCR TRAN
21 0 0 0 0 0 0 0
Reset Value 1
BREAKCR BA BPEN PWM3 PWM2 PWM1 PWM0
22 0 0
Reset Value 0 0 0 0 0 0
64/131
1
ST7LITE2
8
LTARR
fLTIMER
8-bit AUTORELOAD To 12-bit AT TImer
REGISTER
/2 1
8-bit TIMEBASE
COUNTER 1 0 Timebase
fLTIMER
1 or 2 ms
(@ 8MHz
fOSC)
8
LTICR
8-bit
LTIC INPUT CAPTURE
REGISTER
LTCSR1
65/131
1
ST7LITE2
4µs
(@ 8MHz fOSC)
fCPU
f OSC/32
CLEARED
BY S/W
READING
8-bit COUNTER 1 01h 02h 03h 04h 05h 06h 07h LTIC REGISTER
LTIC PIN
ICF FLAG
66/131
1
ST7LITE2
11.3.4 Low Power Modes Bits 7:2 = Reserved, must be kept cleared.
Mode Description
No effect on Lite timer Bit 1 = TB2IE Timebase 2 Interrupt enable.
SLOW (this peripheral is driven directly This bit is set and cleared by software.
0: Timebase (TB2) interrupt disabled
by f OSC/32) 1: Timebase (TB2) interrupt enabled
WAIT No effect on Lite timer
ACTIVE-HALT No effect on Lite timer
HALT Lite timer stops counting Bit 0 = TB2F Timebase 2 Interrupt Flag .
This bit is set by hardware and cleared by software
11.3.5 Interrupts reading the LTCSR register. Writing to this bit has
no effect.
Exit
0: No Counter 2 overflow
Interrupt Event
Enable Exit
from
Exit 1: A Counter 2 overflow has occurred
Control from from
Event Flag Active
Bit Wait Halt
Halt
Timebase 1 LITE TIMER AUTORELOAD REGISTER
TB1F TB1IE Yes Yes No (LTARR)
Event
Read / Write
Timebase 2
Event
TB2F TB2IE Yes No No Reset Value: 0000 0000 (00h)
IC Event ICF ICIE Yes No No 7 0
67/131
1
ST7LITE2
7 0
Bits 2:0 = Reserved
ICIE ICF TB TB1IE TB1F - - - LITE TIMER INPUT CAPTURE REGISTER
(LTICR)
Read only
Bit 7 = ICIE Interrupt Enable. Reset Value: 0000 0000 (00h)
This bit is set and cleared by software.
0: Input Capture (IC) interrupt disabled 7 0
1: Input Capture (IC) interrupt enabled
ICR7 ICR6 ICR5 ICR4 ICR3 ICR2 ICR1 ICR0
68/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
69/131
1
ST7LITE2
■ Simplex synchronous transfers (on 2 lines) The SPI is connected to external devices through
■ Master or slave operation
3 pins:
■ Six master mode frequencies (fCPU /4 max.) – MISO: Master In / Slave Out data
■ fCPU/2 max. slave mode frequency – MOSI: Master Out / Slave In data
■ SS Management by software or hardware – SCK: Serial Clock out by SPI masters and in-
■ Programmable clock polarity and phase
put by SPI slaves
■ End of transfer interrupt flag
– SS: Slave select:
This input signal acts as a ‘chip select’ to let
■ Write collision, Master Mode Fault and Overrun
the SPI master communicate with slaves indi-
flags vidually and to avoid contention on the data
lines. Slave SS inputs can be driven by stand-
ard I/O ports on the master Device.
Figure 42. Serial Peripheral Interface Block Diagram
Data/Address Bus
SPIDR Read
Interrupt
request
Read Buffer
MOSI
7 SPICSR 0
MISO 8-Bit Shift Register
SPIF WCOL OVR MODF 0 SOD SSM SSI
Write
SOD
bit 1
SS
SPI 0
SCK STATE
CONTROL
7 SPICR 0
SERIAL CLOCK
GENERATOR
SS
70/131
1
ST7LITE2
MASTER SLAVE
MOSI MOSI
SPI
SCK SCK
CLOCK
GENERATOR
SS SS
+5V
Not used if SS is managed
by software
71/131
1
ST7LITE2
Master SS
Slave SS
(if CPHA=0)
Slave SS
(if CPHA=1)
SSM bit
SSI bit 1
SS internal
SS external pin 0
72/131
1
ST7LITE2
73/131
1
ST7LITE2
SCK
(CPOL = 0)
SS
(to slave)
CAPTURE STROBE
CPHA =0
SCK
(CPOL = 1)
SCK
(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.
74/131
1
ST7LITE2
Figure 47. Clearing the WCOL bit (Write Collision Flag) Software Sequence
Clearing sequence after SPIF = 1 (end of a data byte transfer)
Read SPICSR
1st Step
RESULT
2nd Step Read SPIDR SPIF =0
WCOL=0
Read SPICSR
1st Step
RESULT Note: Writing to the SPIDR regis-
ter instead of reading it does not
2nd Step Read SPIDR WCOL=0 reset the WCOL bit
75/131
1
ST7LITE2
SS SS SS SS
SCK SCK SCK SCK
Slave Slave Slave Slave
Device Device Device Device
MOSI MISO
SCK
Ports
Master
Device
5V SS
76/131
1
ST7LITE2
77/131
1
ST7LITE2
78/131
1
ST7LITE2
Bit 7 = SPIF Serial Peripheral Data Transfer Flag Bit 1 = SSM SS Management.
(Read only). This bit is set and cleared by software. When set, it
This bit is set by hardware when a transfer has
disables the alternate function of the SPI SS pin
been completed. An interrupt is generated if
and uses the SSI bit value instead. See Section
SPIE=1 in the SPICR register. It is cleared by a 11.4.3.2 Slave Select Management.
software sequence (an access to the SPICSR
0: Hardware management (SS managed by exter-
register followed by a write or a read to the
nal pin)
SPIDR register). 1: Software management (internal SS signal con-
0: Data transfer is in progress or the flag has been
trolled by SSI bit. External SS pin free for gener-
cleared.
al-purpose I/O)
1: Data transfer between the Device and an exter-
nal device has been completed.
Note: While the SPIF bit is set, all writes to the Bit 0 = SSI SS Internal Mode.
SPIDR register are inhibited until the SPICSR reg- This bit is set and cleared by software. It acts as a
ister is read. ‘chip select’ by controlling the level of the SS slave
select signal when the SSM bit is set.
0 : Slave selected
Bit 6 = WCOL Write Collision status (Read only). 1 : Slave deselected
This bit is set by hardware when a write to the
SPIDR register is done during a transmit se-
DATA I/O REGISTER (SPIDR)
quence. It is cleared by a software sequence (see
Read/Write
Figure 47). Reset Value: Undefined
0: No write collision occurred
1: A write collision has been detected 7 0
79/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
80/131
1
ST7LITE2
DIV 4
fCPU 1 fADC
DIV 2
0
0
1
SLOW
bit
AIN0
HOLD CONTROL
AIN1 RADC
x 1 or ANALOG TO DIGITAL
ANALOG
MUX x8 CONVERTER
AINx CADC
AMPSEL
bit
ADCDRH D9 D8 D7 D6 D5 D4 D3 D2
AMP AMP
ADCDRL 0 0 0
CAL
SLOW D1 D0
SEL
81/131
1
ST7LITE2
82/131
1
ST7LITE2
7 0 7 0
83/131
1
ST7LITE2
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
84/131
1
ST7LITE2
12 INSTRUCTION SET
12.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 19. 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.
85/131
1
ST7LITE2
86/131
1
ST7LITE2
87/131
1
ST7LITE2
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.
88/131
1
ST7LITE2
89/131
1
ST7LITE2
NOP No Operation
OR OR operation A=A+M A M N Z
pop CC CC M H I N Z C
90/131
1
ST7LITE2
13 ELECTRICAL CHARACTERISTICS
ST7 PIN
CL
91/131
1
ST7LITE2
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.
92/131
1
ST7LITE2
Figure 52. fCLKIN Maximum Operating Frequency Versus VDD Supply Voltage
FUNCTIONALITY
GUARANTEED
fCLKIN [MHz] IN THIS AREA
(UNLESS OTHERWISE
STATED IN THE
TABLES OF
16 PARAMETRIC DATA)
FUNCTIONALITY
NOT GUARANTEED
IN THIS AREA
FUNCTIONALITY
GUARANTEED 4
IN THIS AREA
1
AT TA 0 to 70°C 0 SUPPLY VOLTAGE [V]
2.0 2.4 2.7 3.3 3.5 4.0 4.5 5.0 5.5
93/131
1
ST7LITE2
Note:
1. Not tested in production.
2. Not tested in production. The VDD rise time rate condition is needed to insure a correct device power-on and LVD reset.
When the VDD slope is outside these values, the LVD may not ensure a proper reset of the MCU.
94/131
1
ST7LITE2
Notes:
1. Data based on characterization results, not tested in production
2. RCCR0 is a factory-calibrated setting for 1000kHz with ±0.2 accuracy @ TA =25°C, VDD=5V. See “INTERNAL RC OS-
CILLATOR ADJUSTMENT” on page 23
3. Guaranteed by design.
4. Averaged over a 4ms period. After the LOCKED bit is set, a period of tSTAB is required to reach ACCPLL accuracy.
5. After the LOCKED bit is set ACCPLL is max. 10% until tSTAB has elapsed. See Figure 12 on page 24.
95/131
1
ST7LITE2
Notes:
1. Data based on characterization results, not tested in production
2. RCCR1 is a factory-calibrated setting for 700MHz with ±0.2 accuracy @ TA =25°C, VDD=3V. See “INTERNAL RC OS-
CILLATOR ADJUSTMENT” on page 23.
3. Guaranteed by design.
4. Averaged over a 4ms period. After the LOCKED bit is set, a period of tSTAB is required to reach ACCPLL accuracy
5. After the LOCKED bit is set ACCPLL is max. 10% until tSTAB has elapsed. See Figure 12 on page 24.
96/131
1
ST7LITE2
1.00 1.10
0.95 1.00
0.90 0.90
Output Freq (MHz)
-45°
1.80
2
( ) 1.60
1 *
1.40
RC Accuracy
0 ( )
* 1.20
-1
-2 1.00 rccr=00h
-3 0.80 rccr=64h
-4 rccr=80h
( ) 0.60
-5 *
0.40 rccr=C0h
-45 0 25 85 125
0.20 rccr=FFh
Temperature (°C)
( ) tested in production 0.00
*
2.4 2.7 3 3.3 3.75 4 4.5 5 5.5 6
Vdd (V)
97/131
1
ST7LITE2
Max
t
0
Min
tw(JIT) tw(JIT)
Figure 58. PLLx4 Output vs CLKIN frequency Figure 59. PLLx8 Output vs CLKIN frequency
7.00
11.00
Output Frequency (MHz)
Output Frequency (MHz)
6.00
9.00
5.00
3.3 7.00 5.5
4.00
3 5
2.7 5.00 4.5
3.00
4
2.00 3.00
1.00 1.00
1 1.5 2 2.5 3 0.85 0.9 1 1.5 2 2.5
External Input Clock Frequency (MHz) External Input Clock Frequency (MHz)
98/131
1
ST7LITE2
VDD=5.5V
Supply current in SLOW mode 1.6 2.5
IDD Supply current in SLOW WAIT mode fCPU=500kHz 4) 1.6 2.5
-40°C≤TA≤+85°C 1 10
Supply current in HALT mode
TA= +125°C 15 50 µA
Supply current in AWUFH mode 5)6) TA= +25°C 20 30
Notes:
1. 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 (CLKIN) driven by external square wave, LVD disabled.
2. All I/O pins in input mode with a static value at VDD or VSS (no load), all peripherals in reset state; clock input (CLKIN)
driven by external square wave, LVD disabled.
3. 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 (CLKIN) driven by external square wave, 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 (CLKIN) driven by external square wave, LVD disabled.
5. All I/O pins in input mode with a static value at VDD or VSS (no load). Data tested in production at VDD max. and fCPU
max.
6. This consumption refers to the Halt period only and not the associated run period which is software dependent.
Figure 60. Typical IDD in RUN vs. fCPU Figure 61. Typical IDD in SLOW vs. fCPU
9.0
1.6
8.0 8 MHz
1.4 250 KHz
7.0 4 MHz
1.2 125 KHz
6.0
1 MHz
Idd (mA)
5.0
D
4.0 0.8
TB
TB
3.0 0.6
2.0 0.4
1.0 0.2
0.0 0.0
2 2.5 3 3.5 4 4.5 5 5.5 6 2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd (V) Vdd (V)
99/131
1
ST7LITE2
Idd(mA)
0.8 0.020
Idd (mA)
0.6 0.015
0.010
0.4
0.005
0.2 0.000
0.0 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Vdd (V)
1.4 8.0
250 KHz
1.2
125 KHz
1.0 25°
D
7.0
62.5 Khz
Idd (mA)
0.8
-45°
90°
TB
0.6 130°
6.0
0.4
0.2
Idd (mA)
0.0 5.0
2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd (V)
4.0
3.0
2.0
2.4 2.8 3.2 3.6 4 4.4 4.8 5.2 5.6
Vdd (V)
1. Data based on a differential IDD measurement between reset configuration (timer stopped) and a timer running in PWM
mode at fcpu=8MHz.
2. Data based on a differential IDD measurement between reset configuration and a permanent SPI master communica-
tion (data sent equal to 55h).
3. Data based on a differential IDD measurement between reset configuration and continuous A/D conversions with am-
plifier off.
100/131
1
ST7LITE2
Notes:
1. Guaranteed by Design. Not tested in production.
2. Data based on typical application software.
3. Time measured between interrupt event and interrupt vector fetch. Dtc(INST) is the number of tCPU cycles needed to fin-
ish the current instruction execution.
101/131
1
ST7LITE2
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. Up to 32 bytes can be programmed at a time.
3. The data retention time increases when the TA decreases.
4. Data based on reliability test results and monitored in production.
5. Data based on characterization results, not tested in production.
6. Guaranteed by Design. Not tested in production.
7. Design target value pending full product characterization.
102/131
ST7LITE2
ST72XXX
10µF 0.1µF VDD
ST7
DIGITAL NOISE
FILTERING
VSS
VDD
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 tradeoff. 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).
103/131
ST7LITE2
104/131
ST7LITE2
S1 R=1500Ω S1
R=10k~10MΩ
HIGH VOLTAGE HIGH VOLTAGE
PULSE CL=100pF
ST7 S2 PULSE ST7
GENERATOR GENERATOR
CL=200pF S2
Notes:
1. Data based on characterization results, not tested in production.
105/131
ST7LITE2
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.
106/131
ST7LITE2
(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
107/131
ST7LITE2
Notes:
1. Data based on characterization results, not tested in production.
2. 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 71). Data based on design simulation and/or technology
characteristics, not tested in production.
3. The RPU pull-up equivalent resistor is based on a resistive transistor (corresponding IPU current characteristics de-
scribed in Figure 72).
4. 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.
80 Ta=1 40°C
Ta=9 5°C
70 Ta=2 5°C
Ta=-45 °C
60
Ipu (uA)
50
40
TO BE CHARACTERIZED
30
20
10
0
2 2.5 3 3.5 4 4.5 5 5.5 6
Vdd(V)
108/131
ST7LITE2
VDD=5V
Output low level voltage for a high sink I/O pin TA≥85°C 1.5
when 4 pins are sunk at same time
(see Figure 78) IIO=+8mA TA≤85°C 0.75
TA≥85°C 0.85
IIO=-5mA, TA≤85°C VDD-1.5
Output high level voltage for an I/O pin TA≥85°C VDD-1.6
VOH 2) when 4 pins are sourced at same time
(see Figure 84) IIO=-2mA T A≤85°C VDD-0.8
TA≥85°C VDD-1.0
Output low level voltage for a standard I/O pin
IIO=+2mA TA≤85°C 0.5
when 8 pins are sunk at same time V
TA≥85°C 0.6
VOL 1)3) (see Figure 75)
Output low level voltage for a high sink I/O pin IIO=+8mA TA≤85°C 0.5
VDD=3.3V
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 13.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 13.2.2 and the sum of
IIO (I/O ports and control pins) must not exceed IVDD.
3. Not tested in production, based on characterization results.
Figure 73. Typical VOL at VDD=2.4V (standard) Figure 74. Typical VOL at VDD=2.7V (standard)
0.70 0.60
0.60 0.50
VOL at VDD=2.7V
0.50 -45
VOL at VDD=2.4V
0.40 -45°C
0°C 0°C
0.40
TO BE CHARACTERIZED 25°C 0.30 25°C
0.30 90°C
90°C
0.20 130°C
0.20 130°C
0.10
0.10
0.00 0.00
0.01 1 2 0.01 1 2
lio (mA) lio (mA)
109/131
ST7LITE2
0.70
0.80
0.60
0.70
0.50 0.60 -45°C
VOL at VDD=3.3V
VOL at VDD=5V
-45°C 0.50 0°C
0.40 0°C
0.40 25°C
25°C
90°C
0.30 90°C 0.30
130°C
130°C 0.20
0.20
0.10
0.10 0.00
0.01 1 2 3 4 5
0.00 lio (mA)
0.01 1 2 3
lio (mA)
Figure 77. Typical VOL at VDD=2.4V (high-sink) Figure 79. Typical VOL at VDD=3V (high-sink)
1.00 1.20
0.90
1.00
0.80
Vol (V) at VDD=3V (HS)
VOL at VDD=2.4V (HS)
0.70
0.80 -45
-45
0.60 0°C
0°C
0.50 25°C 0.60
25°C
0.40 90°C
90°C
130°C 0.40
0.30 130°C
0.20 0.20
0.10
0.00
0.00
6 7 8 9 10
6 7 8 9 10 15
2.50
2.00
Vol (V) at VDD=5V (HS)
1.50 -45
0°C
25°C
1.00 90°C
130°C
0.50
0.00
6 7 8 9 10 15 20 25 30 35 40
lio (mA)
110/131
ST7LITE2
1.60
1.60
1.40
1.40
VDD-VOH at VDD=3V
1.20
VDD-VOH at VDD=2.4V
1.20
-45°C
-45°C 1.00
1.00 0°C
0°C
0.80 25°C
0.80 25°C
90°C
90°C 0.60
0.60 130°C
130°C
0.40
0.40
0.20
0.20
0.00
0.00
-0.01 -1 -2 -3
-0.01 -1 -2
lio (mA)
lio (mA)
Figure 81. Typical VDD-VOH at VDD=2.7V Figure 83. Typical VDD-VOH at VDD=4V
1.20 2.50
1.00 2.00
VDD-VOH at VDD=4V
VDD-VOH at VDD=2.7V
0.80 -45°C
-45°C
1.50
0°C 0°C
0.60 25°C 25°C
90°C 1.00 90°C
0.40 130°C 130°C
0.50
0.20
0.00 0.00
-0.01 -1 -2 -0.01 -1 -2 -3 -4 -5
lio(mA) lio (mA)
2.00
1.80
1.60
VDD-VOH at VDD=5V
1.40
-45°C
1.20 0°C
1.00 25°C
90°C
0.80 TO BE CHARACTERIZED 130°C
0.60
0.40
0.20
0.00
-0.01 -1 -2 -3 -4 -5
lio (mA)
111/131
ST7LITE2
0.70 0.06
0.60 0.05
0.10 0.01
0.00 0.00
2.4 2.7 3.3 5 2.4 2.7 3.3 5
VDD (V) VDD (V)
0.70 1.00
VOL vs VDD (HS) at lio=20mA
VOL vs VDD (HS) at lio=8mA
0.90
0.60
0.80
0.50 -45 0.70 -45
0°C 0.60 0°C
0.40
25°C 0.50 25°C
0.30 0.40 90°C
90°C
0.20 130°C 0.30 130°C
0.20
0.10 0.10
0.00 0.00
2.4 3 5 2.4 3 5
1.80
1.10
1.70
1.00
VDD-VOH (V) at lio=-2mA
1.60
VDD-VOH at lio=-5mA
1.00
0.50
0.90
0.40
0.80
4 5 2.4 2.7 3 4 5
VDD VDD (V)
112/131
ST7LITE2
Notes:
1. Data based on characterization results, not tested in production.
2. The IIO current sunk must always respect the absolute maximum rating specified in Section 13.2.2 and the sum of IIO
(I/O ports and control pins) must not exceed IVSS.
3. The RON pull-up equivalent resistor is based on a resistive transistor. Specified for voltages on RESET pin between
VILmax and VDD
4. To guarantee the reset of the device, a minimum pulse has to be applied to the RESET pin. All short pulses applied on
RESET pin with a duration below th(RSTL)in can be ignored.
5. The reset network (the resistor and two capacitors) protects the device against parasitic resets especially in noisy en-
vironments.
6. 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).
7. Whatever the reset source is (internal or external), the user must ensure that the level on the RESET pin can go below
the VIL max. level specified in section 13.9.1 on page 113. Otherwise the reset will not be taken into account internally.
8. Because the reset circuit is designed to allow the internal RESET to be output in the RESET pin, the user must ensure
that the current sunk on the RESET pin (by an external pull-p for example) is less than the absolute maximum value spec-
ified for IINJ(RESET) in section 13.2.2 on page 92.
113/131
ST7LITE2
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.
114/131
ST7LITE2
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.
115/131
ST7LITE2
VDD
VT
0.6V
RAIN AINx 10-Bit A/D
VAIN Conversion
VT
0.6V IL CADC
±1µA 6pF
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 refers 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.
116/131
ST7LITE2
Notes:
1) Data based on characterization results over the whole temperature range, monitored in production.
2) Injecting negative current on any of the analog input pins significantly reduces the accuracy of any conversion being
performed on any analog input.
Analog pins can be protected against negative injection by adding a Schottky diode (pin to ground). Injecting negative
current on digital input pins degrades ADC accuracy especially if performed on a pin close to the analog input pins.
Any positive injection current within the limits specified for IINJ(PIN) and ΣIINJ(PIN) in Section 13.8 does not affect the ADC
accuracy.
117/131
ST7LITE2
Note: When the AMPSEL bit in the ADCDRL register is set, it is mandatory that fADC be less than or equal
to 2 MHz. (if fCPU=8MHz. then SPEED=0, SLOW=1).
Vmax
Noise
Vmin
Vin
0V 430mV (OPAMP input)
118/131
ST7LITE2
Notes:
1) Data based on characterization results over the whole temperature range, not tested in production.
2) For precise conversion results it is recommended to calibrate the amplifier at the following two points:
– offset at VINmin = 0V
– gain at full scale (for example VIN=250mV)
3) Monotonicity guaranteed if VIN increases or decreases in steps of min. 5mV.
119/131
ST7LITE2
14 PACKAGE CHARACTERISTICS
D
mm inches
h x 45× Dim.
L
Min Typ Max Min Typ Max
A A 2.35 2.65 0.093 0.104
A1 c
A1 0.10 0.30 0.004 0.012
a
B e B 0.33 0.51 0.013 0.020
C 0.23 0.32 0.009 0.013
D 12.60 13.00 0.496 0.512
E 7.40 7.60 0.291 0.299
e 1.27 0.050
H 10.00 10.65 0.394 0.419
h 0.25 0.75 0.010 0.030
E H
α 0° 8° 0° 8°
L 0.40 1.27 0.016 0.050
Number of Pins
N 20
mm inches
Dim.
A2 A Min Typ Max Min Typ Max
A 5.33 0.210
A1 L c A1 0.38 0.015
A2 2.92 3.30 4.95 0.115 0.130 0.195
b eB
D1 b2 e b 0.36 0.46 0.56 0.014 0.018 0.022
b2 1.14 1.52 1.78 0.045 0.060 0.070
c 0.20 0.25 0.36 0.008 0.010 0.014
D D 24.89 26.16 26.92 0.980 1.030 1.060
D1 0.13 0.005
e 2.54 0.100
20 11
eB 10.92 0.430
E1
E1 6.10 6.35 7.11 0.240 0.250 0.280
1 10
L 2.92 3.30 3.81 0.115 0.130 0.150
Number of Pins
N 20
120/131
ST7LITE2
Notes:
1. The power dissipation is obtained from the formula PD=PINT+PPORT where PINT is the chip internal power (IDDxVDD)
and PPORT is the port power dissipation determined by the user.
2. The average chip-junction temperature can be obtained from the formula TJ = TA + PD x RthJA.
121/131
ST7LITE2
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
122/131
ST7LITE2
123/131
ST7LITE2
124/131
ST7LITE2
125/131
ST7LITE2
Note:
1. In-Circuit Programming (ICP) interface for FLASH devices.
Table 26. Dedicated STMicroelectronics Development Tools
Active Probe
Supported Products ST7 Development Kit ST7 Emulator ST7 Programming Board
& TEB
ST7MDT10-EPB/EU
ST7MDT10-EPB/US
ST7FLITE20
ST7FLITE25 ST7MDT10-EPB/UK
N/A ST7MDT10-EMU3 ST7MDT10-TEB
ST7FLITE29 ST7-STICK/EU
ST7-STICK/US
ST7-STICK/UK
126/131
ST7LITE2
127/131
ST7LITE2
IDENTIFICATION DESCRIPTION
AN 982 USING ST7 WITH CERAMIC RESONATOR
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
AN1529 EXTENDING THE CURRENT & VOLTAGE CAPABILITY ON THE ST7265 VDDF SUPPLY
ACCURATE TIMEBASE FOR LOW-COST ST7 APPLICATIONS WITH INTERNAL RC OSCIL-
AN1530
LATOR
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
AN1575 ON-BOARD PROGRAMMING METHODS FOR XFLASH AND HDFLASH ST7 MCUS
128/131
ST7LITE2
16 IMPORTANT NOTES
perform an incorrect operation when the rel- When the ADC is enabled after being pow-
ative jump is negative and performs an ad- ered down (for example when waking up
dress page change. from HALT, ACTIVE-HALT or setting the
ADON bit in the ADCCSR register), the first
To avoid this issue, including when using a C
conversion (8-bit or 10-bit) accuracy does
compiler, it is recommended to never use ad-
not meet the accuracy specified in the da-
dress $00FF as a variable (using the linker
tasheet.
parameter for example).
Workaround
16.2 ADC CONVERSION SPURIOUS RESULTS
In order to have the accuracy specified in the
Spurious conversions occur with a rate lower datasheet, the first conversion after a ADC
than 50 per m illi on. Such convers ions switch-on has to be ignored.
happen when the measured voltage is just
between 2 consecutive digital values.
Workaround
A software filter should be implemented to
remove erratic conversion results whenever
they may cause unwanted consequences.
129/131
ST7LITE2
17 SUMMARY OF CHANGES
Revision Main changes Date
Modified Caution to pin n°12 (SO20) or pin n°7 (DIP20) in Table 1, “Device Pin Description,”
on page 7
Modified note 5 in section 4.4 on page 13
Added “and the device can be reprogrammed” in section 4.5.1 on page 14
Added note on RC oscillator in section 7 on page 23 (main features) and changed section
7.1 on page 23: removed reference to ST7LITE20 in RCCR table
Changed Figure 13 on page 25 (CLKIN/2, OSC/2)
Added note in section 7.4 on page 26 (external clock source paragraph)
Added note in the description of AWUPR[7:0] bits in section 9.6.0.1 on page 45
2.0 August-03
Added text specifying that the watchdog counter is a free-running downcounter: Section
11.1.2 and section 11.1.3 on page 51
Added note in the description of OSC option bit and in Table 23, “List of valid option combi-
nations,” on page 124
Changed section 13.7 on page 103
Changed section 13.3.1 on page 93: fCLKIN instead of fOSC
Changed description of WDG HALT option bit (section 15.1 on page 123)
Changed description of FMP_R option bit (section 15.1 on page 123)
Changed Table 26, “Dedicated STMicroelectronics Development Tools,” on page 126
130/131
ST7LITE2
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
2003 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
131/131