Professional Documents
Culture Documents
ST 7262
ST 7262
■ Memories
– 8K or 16K Program memory
(ROM, FASTROM or Dual voltage FLASH)
with read-write protection
– In-Application and In-Circuit Programming for
FLASH versions
SO20 PDIP20
– 384 to 768 bytes RAM (128-byte stack)
■ Clock, Reset and Supply Management
Rev. 2.2
1
Table of Contents
1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1 PCB LAYOUT RECOMMENDATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3 REGISTER & MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1
4 FLASH PROGRAM MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3 STRUCTURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4 ICC INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.5 ICP (IN-CIRCUIT PROGRAMMING) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.6 IAP (IN-APPLICATION PROGRAMMING) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.7 RELATED DOCUMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
4.8 REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 MAIN FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.3 CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6 CLOCKS AND RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.1 CLOCK SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.2 RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.2 MASKING AND PROCESSING FLOW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.3 INTERRUPTS AND LOW POWER MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.4 CONCURRENT & NESTED MANAGEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.5 INTERRUPT REGISTER DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
7.6 INTERRUPT REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.2 WAIT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.3 HALT MODE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
9 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9.2 FUNCTIONAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9.3 MISCELLANEOUS REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
10 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.1 WATCHDOG TIMER (WDG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.2 PWM AUTO-RELOAD TIMER (ART) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
10.3 TIMEBASE UNIT (TBU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2
10.4 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
132
10.5 SERIAL COMMUNICATIONS INTERFACE (SCI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2/132
1
Table of Contents
10.6 USB INTERFACE (USB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
10.7 10-BIT A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
11 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
11.1 CPU ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
11.2 INSTRUCTION GROUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
12 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.1 PARAMETER CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
12.2 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
12.3 OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
12.4 SUPPLY CURRENT CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
12.5 CLOCK AND TIMING CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
12.6 MEMORY CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
12.7 EMC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
12.8 I/O PORT PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
12.9 CONTROL PIN CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
12.10TIMER PERIPHERAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
12.11COMMUNICATION INTERFACE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . 117
12.1210-BIT ADC CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
13 PACKAGE CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
13.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
14 DEVICE CONFIGURATION AND ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . 126
14.1 OPTION BYTE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
14.2 DEVICE ORDERING INFORMATION AND TRANSFER OF CUSTOMER CODE . . . . . 126
14.3 DEVELOPMENT TOOLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
15 IMPORTANT NOTES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
15.1 UNEXPECTED RESET FETCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
15.2 HALT MODE POWER CONSUMPTION WITH ADC ON . . . . . . . . . . . . . . . . . . . . . . . . . 130
16 SUMMARY OF CHANGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Please pay special attention to the Section “IMPORTANT NOTES” on page 130.
132
3/132
ST7262
1 INTRODUCTION
The ST7262, ST72P62 and ST72F62 devices are Under software control, all devices can be placed
members of the ST7 microcontroller family de- in WAIT, SLOW, or HALT mode, reducing power
signed for USB applications. consumption when the application is in idle or
All devices are based on a common industry- standby state.
standard 8-bit core, featuring an enhanced instruc- The enhanced instruction set and addressing
tion set. modes of the ST7 offer both power and flexibility to
The ST7262 devices are ROM versions. software developers, enabling the design of highly
efficient and compact application code. In addition
The ST72P62 devices are Factory Advanced to standard 8-bit data management, all ST7 micro-
Service Technique ROM (FASTROM) versions: controllers feature true bit manipulation, 8x8 un-
they are factory-programmed and are not repro- signed multiplication and indirect addressing
grammable. modes.
The ST72F62 versions feature dual-voltage
FLASH memory with FLASH Programming capa-
bility.
Internal
OSCIN CLOCK
OSCILLATOR
OSCOUT 10-BIT ADC
PA7:0
LVD (8 bits)
PORT A
VDD
POWER
VSS SUPPLY SCI
PB7:0
PORT B (8 bits)
RESET CONTROL
ADDRESS AND DATA BUS
PWM ART
8-BIT CORE
VDDA ALU TIME BASE UNIT
VSSA USBDP
USB DMA USBDM
USB SIE
USBVCC
VPP PROGRAM
MEMORY PORT C PC7:0
(8 or 16K Bytes) (8 bits)
SPI
RAM PD6:0
PORT D
(384, (7 bits)
or 768 Bytes) WATCHDOG
4/132
1
ST7262
2 PIN DESCRIPTION
Figure 2. 44-pin TQFP and 42-Pin SDIP Package Pinouts
Reserved*
USBVCC
USBDM
USBDP
VDDA
VSSA
PD2
PD3
PD4
PD5
PD6
44 43 42 41 40 39 38 37 36 35 34
VPP 1 33 RESET
PD1 2 32 PA0 / AIN0 / IT1 / USBOE
PD0 3 31 PA1 / AIN1 / IT2
PC7 4 30 PA2 / AIN2 / IT3
MOSI / PC6 5 29 PA3 / AIN3 / IT4
IT12 / MISO / PC5 6 28 PA4 / AIN4
IT11 / SS / PC4 7 27 PA5 / AIN5
IT10 / SCK / PC3 8 26 PA6 / AIN6
IT9 / PC2 9 25 PA7 / AIN7
OSCIN 10 24 PB0 (HS) / MCO
OSCOUT 11 23 PB1 (HS) / RDI
12 13 14 15 16 17 18 19 20 21 22
VSS
N.C.
PD6 1 42 VDDA
PD5 2 41 USBVCC
PD4 3 40 USBDP
PD3 4 39 USBDM
PD2 5 38 VSSA
VPP 6 37 RESET
PD1 7 36 PA0 / AIN0 / IT1 / USBOE
PD0 8 35 PA1 / AIN1 / IT2
PC7 9 34 PA2 / AIN2 / IT3
MOSI / PC6 10 33 PA3 / AIN3 / IT4
IT12 / MISO / PC5 11 32 PA4 / AIN4
IT11 / SS / PC4 12 31 PA5 / AIN5
IT10 / SCK / PC3 13 30 PA6 / AIN6
IT9 / PC2 14 29 PA7 / AIN7
OSCIN 15 28 PB0 (HS) / MCO
OSCOUT 16 27 PB1 (HS) / RDI
VSS 17 26 PB2 (HS) / TDO
VDD 18 25 PB3 (HS) / ARTCLK
PC1 19 24 PB4 (HS) / ARTIC1 / IT5
PC0 20 23 PB5 (HS) / ARTIC2 / IT6 / ICCCLK
IT8 / PWM1 / PB7 (HS) 21 22 PB6 (HS) / PWM0 / IT7 / ICCDATA
5/132
ST7262
6/132
ST7262
7/132
ST7262
Input
Output
Pin Name
DIP42
DIP32
DIP20
SO34
SO20
Input
float (after
wpu
ana
OD
PP
reset)
8/132
ST7262
Type
Output Function Alternate Function
TQFP44
Input
Output
Pin Name
DIP42
DIP32
DIP20
SO34
SO20
Input
(after
float
wpu
ana
OD
PP
reset)
int
ART PWM output 0/
PB6/PWM0/IT7/ Interrupt 7 input/In-
18 22 9 8 14 19 I/O CT HS x \ x Port B6
ICCDATA Circuit Communica-
tion Data
ART Input Capture 2/
PB5/ARTIC2/IT6/ Interrupt 6 input/
19 23 10 9 15 20 I/O CT HS x / x Port B5
ICCCLK In-Circuit Communi-
cation Clock
ART Input Capture
20 24 11 10 16 1 PB4/ARTIC1/IT5 I/O CT HS x / x Port B4
1/Interrupt 5 input
21 25 12 11 17 2 PB3/ARTCLK I/O CT HS x x Port B3 ART Clock input
SCI Transmit Data
22 26 13 12 18 3 PB2/TDO I/O CT HS x x Port B2
Output 1)
SCI Receive Data
23 27 14 13 19 4 PB1/RDI I/O CT HS x x Port B1
Input 1)
24 28 15 14 20 5 PB0/MCO I/O CT HS x x Port B0 CPU clock output
25 29 16 15 - - PA7/AIN7 I/O CT x x x Port A7 ADC Analog Input 7
26 30 17 16 - - PA6/AIN6 I/O CT x x x Port A6 ADC Analog Input 6
27 31 18 17 - - PA5/AIN5 I/O CT x x x Port A5 ADC Analog Input 5
28 32 19 18 - - PA4/AIN4 I/O CT x x x Port A4 ADC Analog Input 4
ADC Analog Input 3/
29 33 20 19 - - PA3/AIN3/IT4 I/O CT x \ x x Port A3
Interrupt 4 input
ADC Analog Input 2/
30 34 21 20 1 6 PA2/AIN2/IT3 I/O CT x \ x x Port A2
Interrupt 3 input
ADC Analog Input 1/
31 35 22 21 2 7 PA1/AIN1/IT2 I/O CT x \ x x Port A1
Interrupt 2 input
ADC Analog Input 0/
PA0/AIN0/IT1/
32 36 23 22 3 8 I/O CT x \ x x Port A0 Interrupt 1 input/
USBOE
USB Output Enable
Top priority non maskable inter-
33 37 30 29 10 15 RESET I/O C
rupt (active low)
Analog Ground Voltage, must
34 38 24 23 - - VSSA S
be connected externally to VSS.
35 39 25 24 5 10 USBDM I/O USB bidirectional data (data -)
36 40 26 25 6 11 USBDP I/O USB bidirectional data (data +)
37 41 27 26 7 12 USBVCC S USB power supply 3.3V output
Analog Power Supply Voltage,
38 42 28 27 - - VDDA S must be connected externally to
VDD.
39 - - - - - Reserved Must be left unconnected.
40 1 - - - - PD6 I/O CT x x Port D6
41 2 - - - - PD5 I/O CT x x Port D5
42 3 - - - - PD4 I/O CT x x Port D4
9/132
ST7262
Type
Output Function Alternate Function
TQFP44
Input
Output
Pin Name
DIP42
DIP32
DIP20
SO34
SO20
Input
(after
float
wpu
ana
OD
PP
reset)
int
43 4 - - - - PD3 I/O CT x x Port D3
44 5 - - - - PD2 I/O CT x x Port D2
Note 1: Peripheral not present on all devices. Refer to “Device Summary” on page 1.
1 20
2 19
3 18
4 17
5 16
ST7262
6 15
7 14
8 13
9 12 USBVCC
USBDM 10 11 USBDP
USB Connector
10/132
ST7262
033Fh
0340h
Reserved 0040h Short Addressing
BFFFh RAM (zero page)
C000h 192 Bytes
Program Memory 00FFh
16-bit Addressing
16 KBytes RAM
or Stack
E000h 017Fh (128 Bytes)
8 KBytes 16-bit Addressing
RAM
FFDFh 448 Bytes
033Fh
FFE0h
Interrupt & Reset Vectors
(see Table 6)
FFFFh
11/132
ST7262
Register Reset
Address Block Register Name Remarks
Label Status
000Ah ADCDRMSB ADC Data Register (bit 9:2) 00h Read Only
000Bh ADC ADCDRLSB ADC Data Register (bit 1:0) 00h Read Only
000Ch ADCCSR ADC Control Status Register 00h R/W
000Eh
Reserved Area (3 Bytes)
0010h
12/132
ST7262
Register Reset
Address Block Register Name Remarks
Label Status
0032h
to Reserved Area (4 Bytes)
0035h
003Ah
to Reserved Area (6 Bytes)
003Fh
13/132
ST7262
14/132
ST7262
ICC Cable
APPLICATION BOARD
10 8 6 4 2
APPLICATION
RESET SOURCE
See Note 2
10kΩ
APPLICATION
RESET
ICCCLK
ICCDATA
OSC1
ICCSEL/VPP
VSS
OSC2
VDD
I/O
ST7
Notes:
1. If the ICCCLK or ICCDATA pins are only used agement IC with open drain output and pull-up re-
as outputs in the application, no signal isolation is sistor>1K, no additional components are needed.
necessary. As soon as the Programming Tool is In all cases the user must ensure that no external
plugged to the board, even if an ICC session is not reset is generated by the application during the
in progress, the ICCCLK and ICCDATA pins are ICC session.
not available for the application. If they are used as 3. The use of Pin 7 of the ICC connector depends
inputs by the application, isolation such as a serial on the Programming Tool architecture. This pin
resistor has to implemented in case another de- must be connected when using most ST Program-
vice forces the signal. Refer to the Programming ming Tools (it is used to monitor the application
Tool documentation for recommended resistor val- power supply). Please refer to the Programming
ues. Tool manual.
2. During the ICC session, the programming tool 4. Pin 9 has to be connected to the OSC1 or OS-
must control the RESET pin. This can lead to con- CIN pin of the ST7 when the clock is not available
flicts between the programming tool and the appli- in the application or if the selected clock option is
cation reset circuit if it drives more than 5mA at not programmed in the option byte. ST7 devices
high level (push pull output or pull-up resistor<1K). with multi-oscillator capability need to have OSC2
A schottky diode can be used to isolate the appli- grounded in this case.
cation RESET circuit in this case. When using a
classical RC network with R>1K or a reset man-
15/132
ST7262
4.6 IAP (In-Application Programming) This register is reserved for use by Programming
This mode uses a BootLoader program previously Tool software. It controls the Flash programming
stored in Sector 0 by the user (in ICP mode or by and erasing operations.
plugging the device in a programming tool).
This mode is fully controlled by user software. This
allows it to be adapted to the user application, (us-
er-defined strategy for entering programming
mode, choice of communications protocol used to
fetch the data to be stored, etc.). For example, it is
possible to download code from the SPI, SCI, USB
or CAN interface and program it in the Flash. IAP
mode can be used to program any of the Flash
sectors except Sector 0, which is write/erase pro-
tected to allow recovery in case errors occur dur-
ing the programming operation.
16/132
ST7262
7 0
ACCUMULATOR
RESET VALUE = XXh
7 0
X INDEX REGISTER
RESET VALUE = XXh
7 0
Y INDEX REGISTER
RESET VALUE = XXh
15 PCH 8 7 PCL 0
PROGRAM COUNTER
RESET VALUE = RESET VECTOR @ FFFEh-FFFFh
7 0
1 1 I1 H I0 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
17/132
ST7262
18/132
ST7262
@ 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
@ 017Fh PCL PCL PCL PCL PCL
19/132
ST7262
20/132
ST7262
6.2 RESET
The Reset procedure is used to provide an orderly 6.2.3 External Reset
software start-up or to exit low power modes. The external reset is an active low input signal ap-
Three reset modes are provided: a low voltage re- plied to the RESET pin of the MCU.
set, a watchdog reset and an external reset at the As shown in Figure 18, the RESET signal must
RESET pin. stay low for a minimum of one and a half CPU
A reset causes the reset vector to be fetched from clock cycles.
addresses FFFEh and FFFFh in order to be loaded An internal Schmitt trigger at the RESET pin is pro-
into the PC and with program execution starting vided to improve noise immunity.
from this point. Figure 15. Low Voltage Reset functional Diagram
An internal circuitry provides a 514 CPU clock cy-
cle delay from the time that the oscillator becomes RESET
active.
VDD LOW VOLTAGE
6.2.1 Low Voltage Reset RESET
INTERNAL
Low voltage reset circuitry generates a reset when RESET
VDD is: FROM
■ below VIT+ when VDD is rising, WATCHDOG
RESET
■ below VIT- when VDD is falling.
VIT+
VDD
Temporization
(514 CPU clock cycles)
Addresses $FFFE
21/132
ST7262
tDDR
VDD
OSCIN
tOXOV
fCPU
PC FFFE FFFF
Note: Refer to Electrical Characteristics for values of tDDR, tOXOV, VIT+ and VIT-.
Figure 19. Reset Block Diagram
VDD
RON
200ns INTERNAL
RESET Filter RESET
WATCHDOG RESET
tw(RSTL)out + 128 fOSC PULSE
delay GENERATOR
LVD RESET
Note: 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).
22/132
ST7262
7 INTERRUPTS
PENDING Y Y
RESET TLI
INTERRUPT
Y
“IRET”
23/132
ST7262
INTERRUPTS (Cont’d)
Servicing Pending Interrupts ■ TLI (Top Level Hardware Interrupt)
As several interrupts can be pending at the same This hardware interrupt occurs when a specific
time, the interrupt to be taken into account is deter- edge is detected on the dedicated TLI pin.
mined by the following two-step process: Caution: A TRAP instruction must not be used in a
– the highest software priority interrupt is serviced, TLI service routine.
– if several interrupts have the same software pri-
ority then the interrupt with the highest hardware ■ TRAP (Non Maskable Software Interrupt)
priority is serviced first. This software interrupt is serviced when the TRAP
Figure 21 describes this decision process. instruction is executed. It will be serviced accord-
ing to the flowchart in Figure 20 as a TLI.
Figure 21. Priority Decision Process Caution: TRAP can be interrupted by a TLI.
PENDING ■ RESET
24/132
ST7262
INTERRUPTS (Cont’d)
7.3 INTERRUPTS AND LOW POWER MODES 7.4 CONCURRENT & NESTED MANAGEMENT
All interrupts allow the processor to exit the WAIT The following Figure 22 and Figure 23 show two
low power mode. On the contrary, only external different interrupt management modes. The first is
and other specified interrupts allow the processor called concurrent mode and does not allow an in-
to exit from the HALT modes (see column “Exit terrupt to be interrupted, unlike the nested mode in
from HALT” in “Interrupt Mapping” table). When Figure 23. The interrupt hardware priority is given
several pending interrupts are present while exit- in this order from the lowest to the highest: MAIN,
ing HALT mode, the first one serviced can only be IT4, IT3, IT2, IT1, IT0, TLI. The software priority is
an interrupt with exit from HALT mode capability given for each interrupt.
and it is selected through the same decision proc- Warning: A stack overflow may occur without no-
ess shown in Figure 21. tifying the software of the failure.
Note: If an interrupt, that is not able to Exit from
HALT mode, is pending with the highest priority
when exiting HALT mode, this interrupt is serviced
after the first one serviced.
Figure 22. Concurrent Interrupt Management
SOFTWARE
TLI
IT2
IT1
IT4
IT3
IT0
PRIORITY I1 I0
LEVEL
HARDWARE PRIORITY
IT1
IT4
IT3
IT0
I1 I0
PRIORITY
LEVEL
USED STACK = 20 BYTES
HARDWARE PRIORITY
TLI 3 1 1
IT0 3 1 1
IT1 IT1 2 0 0
IT2 IT2 1 0 1
IT3 3 1 1
RIM
IT4 IT4 3 1 1
MAIN MAIN 3/0
11 / 10 10
25/132
ST7262
INTERRUPTS (Cont’d)
7 0
ISPR0 I1_3 I0_3 I1_2 I0_2 I1_1 I0_1 I1_0 I0_0
1 1 I1 H I0 N Z C
ISPR1 I1_7 I0_7 I1_6 I0_6 I1_5 I0_5 I1_4 I0_4
26/132
ST7262
7 0
27/132
ST7262
INTERRUPTS (Cont’d)
Table 6. Interrupt Mapping
Exit
Source Register Priority Address
N° Description from
Block Label Order Vector
HALT
Reset Yes FFFEh-FFFFh
Highest
TRAP software interrupt Priority No FFFCh-FFFDh
0 ICP FLASH Start programming NMI interrupt Yes FFFAh-FFFBh
1 USB USB End Suspend interrupt USBISTR Yes FFF8h-FFF9h
2 Port A external interrupts IT[4:1] ITRFRE1 Yes FFF6h-FFF7h
3 I/O Ports Port B external interrupts IT[8:5] ITRFRE1 Yes FFF4h-FFF5h
4 Port C external interrupts IT[12:9] ITRFRE2 Yes FFF2h-FFF3h
5 TBU Timebase Unit interrupt TBUCSR No FFF0h-FFF1h
6 ART ART/PWM Timer interrupt ICCSR Yes FFEEh-FFEFh
7 SPI SPI interrupt vector SPISR Yes FFECh-FFEDh
8 SCI SCI interrupt vector SCISR No FFEAh-FFEBh
9 USB USB interrupt vector USBISTR Lowest No FFE8h-FFE9h
Priority
10 ADC A/D End of conversion interrupt ADCCSR No FFE6h-FFE7h
Reserved area FFE0h-FFE5h
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
Ext. Interrupt Port B Ext. Interrupt Port A USB END SUSP Not Used
0032h ISPR0 I1_3 I0_3 I1_2 I0_2 I1_1 I0_1
Reset Value 1 1 1 1 1 1 1 1
SPI ART TBU Ext. Interrupt Port C
0033h ISPR1 I1_7 I0_7 I1_6 I0_6 I1_5 I0_5 I1_4 I0_4
Reset Value 1 1 1 1 1 1 1 1
Not Used ADC USB SCI
0034h ISPR2 I1_11 I0_11 I1_10 I0_10 I1_9 I0_9 I1_8 I0_8
Reset Value 1 1 1 1 1 1 1 1
Not Used Not Used
0035h ISPR3 I1_13 I0_13 I1_12 I0_12
Reset Value 1 1 1 1 1 1 1 1
28/132
ST7262
8.1 INTRODUCTION
There are three Power Saving modes. Slow Mode Figure 24. WAIT Mode Flow Chart
is selected by setting the SMS bits in the Miscella-
neous register. Wait and Halt modes may be en-
tered using the WFI and HALT instructions. WFI INSTRUCTION
After a RESET the normal operating mode is se-
lected by default (RUN mode). This mode drives
the device (CPU and embedded peripherals) by
means of a master clock which is based on the OSCILLATOR ON
main oscillator frequency divided by 3 and multi-
PERIPH. CLOCK ON
plied by 2 (f CPU).
CPU CLOCK OFF
From Run mode, the different power saving
I-BIT CLEARED
modes may be selected by setting the relevant
register bits or by calling the specific ST7 software
instruction whose action depends on the oscillator
status.
N
8.1.1 Slow Mode RESET
In Slow mode, the oscillator frequency can be di-
vided by a value defined in the Miscellaneous N
Register. The CPU and peripherals are clocked at
Y
this lower frequency. Slow mode is used to reduce INTERRUPT
power consumption, and enables the user to adapt
clock frequency to available supply voltage.
Y OSCILLATOR ON
PERIPH. CLOCK ON
8.2 WAIT MODE
CPU CLOCK ON
WAIT mode places the MCU in a low power con- I-BIT SET
sumption mode by stopping the CPU.
This power saving mode is selected by calling the
“WFI” ST7 software instruction. IF RESET
All peripherals remain active. During WAIT mode, 514 CPU CLOCK
the I bit of the CC register is forced to 0, to enable
all interrupts. All other registers and memory re- CYCLES DELAY
main unchanged. The MCU remains in WAIT
mode until an interrupt or Reset occurs, whereup-
on the Program Counter branches to the starting FETCH RESET VECTOR
address of the interrupt or Reset service routine.
The MCU will remain in WAIT mode until a Reset OR SERVICE INTERRUPT
or an Interrupt occurs, causing it to wake up.
Refer to Figure 24.
Note: Before servicing an interrupt, the CC register is
pushed on the stack. The I-Bit is set during the inter-
rupt routine and cleared when the CC register is
popped.
29/132
ST7262
POWER SAVING MODES (Cont’d) Figure 25. HALT Mode Flow Chart
30/132
ST7262
9 I/O PORTS
9.1 INTRODUCTION
The I/O ports offer different functional modes: ble, the options are given in the description of the
transfer of data through digital inputs and outputs ITRFRE interrupt registers.
and for specific pins: Each pin can independently generate an Interrupt
– Analog signal input (ADC) request.
– Alternate signal input/output for the on-chip pe- Each external interrupt vector is linked to a dedi-
ripherals. cated group of I/O port pins (see Interrupts sec-
tion). If more than one input pin is selected simul-
– External interrupt generation taneously as interrupt source, this is logically AN-
An I/O port is composed of up to 8 pins. Each pin Ded and inverted. For this reason, if an event oc-
can be programmed independently as digital input curs on one of the interrupt pins, it masks the other
or digital output. ones.
9.2.2 Output Mode
9.2 FUNCTIONAL DESCRIPTION The pin is configured in output mode by setting the
Each port is associated with 2 main registers: corresponding DDR register bit (see Table 7).
– Data Register (DR) In this mode, writing “0” or “1” to the DR register
applies this digital value to the I/O pin through the
– Data Direction Register (DDR) latch. Then reading the DR register returns the
Each I/O pin may be programmed using the corre- previously stored value.
sponding register bits in DDR register: bit x corre- Note: In this mode, the interrupt function is disa-
sponding to pin x of the port. The same corre- bled.
spondence is used for the DR register.
9.2.3 Alternate Functions
Table 8. I/O Pin Functions Digital Alternate Functions
DDR MODE When an on-chip peripheral is configured to use a
pin, the alternate function is automatically select-
0 Input ed. This alternate function takes priority over
1 Output standard I/O programming. When the signal is
coming from an on-chip peripheral, the I/O pin is
automatically configured in output mode (push-pull
9.2.1 Input Modes or open drain according to the peripheral).
The input configuration is selected by clearing the When the signal is going to an on-chip peripheral,
corresponding DDR register bit. the I/O pin has to be configured in input mode. In
this case, the pin state is also digitally readable by
In this case, reading the DR register returns the
addressing the DR register.
digital value applied to the external I/O pin.
Notes:
Notes:
1. Input pull-up configuration can cause an unex-
1. All the inputs are triggered by a Schmitt trigger.
pected value at the alternate peripheral input.
2. When switching from input mode to output
2. When the on-chip peripheral uses a pin as input
mode, the DR register should be written first to
and output, this pin must be configured as an
output the correct value as soon as the port is
input (DDR = 0).
configured as an output.
Warning: Alternate functions of peripherals must
Interrupt function
must not be activated when the external interrupts
When an external interrupt function of an I/O pin, is are enabled on the same pin, in order to avoid
enabled using the ITFRE registers, an event on generating spurious interrupts.
this I/O can generate an external Interrupt request
to the CPU. The interrupt sensitivity is programma-
31/132
ST7262
32/132
ST7262
DDR
PAD
LATCH
COMMON ANALOG RAIL
ANALOG ENABLE
DATA BUS
(ADC)
1
DR SEL
ALTERNATE ENABLE
DIGITAL ENABLE
0 V SS
ALTERNATE INPUT
33/132
ST7262
PB0 floating push-pull (high sink) MCO (Main Clock Output) MCO = 1 (MISCR)
*Reset State
ALTERNATE ENABLE
ALTERNATE 1 VDD
OUTPUT
0 P-BUFFER
DR VDD
PULL-UP*
LATCH
DATA BUS
ALTERNATE ENABLE
DDR
LATCH PAD
DDR SEL
N-BUFFER
1 DIODES
DR SEL
ALTERNATE ENABLE
VSS
34/132
ST7262
PC2 with pull-up push-pull IT9 Schmitt triggered input IT9E = 1 (ITRFRE2)
SS SPI enabled
PC4 with pull-up push-pull
IT11 Schmitt triggered input IT11E = 1 (ITRFRE2)
*Reset State
DR
LATCH
DDR
DATA BUS
PAD
LATCH
DDR SEL
N-BUFFER
DIODES
DR SEL 1
ALTERNATE ENABLE
0 VSS
CMOS SCHMITT TRIGGER
35/132
ST7262
*Reset State
ALTERNATE ENABLE
ALTERNATE 1 VDD
OUTPUT
0
P-BUFFER
DR VDD
PULL-UP
LATCH
ALTERNATE ENABLE
DATA BUS
DDR
LATCH PAD
DDR SEL
N-BUFFER
DR SEL 1 DIODES
ALTERNATE ENABLE
0 VSS
ALTERNATE INPUT
36/132
ST7262
7 0
DD7 DD6 DD5 DD4 DD3 DD2 DD1 DD0
D7 D6 D5 D4 D3 D2 D1 D0
Bits 7:0 = DD[7:0] Data direction register 8 bits.
Bits 7:0 = D[7:0] Data register 8 bits. The DDR register gives the input/output direction
configuration of the pins. Each bit is set and
The DR register has a specific behaviour accord- cleared by software.
ing to the selected input/output configuration. Writ-
ing the DR register is always taken into account 0: Input mode
even if the pin is configured as an input; this allows 1: Output mode
to always have the expected level on the pin when
toggling to output mode. Reading the DR register
returns either the DR register latch content (pin
configured as output) or the digital value applied to
the I/O pin (pin configured as input).
37/132
ST7262
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
Reset Value
0 0 0 0 0 0 0 0
of all I/O port registers
0000h PADR
MSB LSB
0001h PADDR
0002h PBDR
MSB LSB
0003h PBDDR
0004h PCDR
MSB LSB
0005h PCDDR
0006h PDDR
MSB LSB
0007h PDDDR
38/132
ST7262
US-
- - - - SMS1 SMS0 MCO Bit 0 = MCO Main Clock Out
BOE
0: PB0 port free for general purpose I/O
1: MCO alternate function enabled (fCPU output on
Bits 7:4 = Reserved PB0 I/O port)
39/132
ST7262
10 ON-CHIP PERIPHERALS
WDGA T6 T5 T4 T3 T2 T1 T0
7-BIT DOWNCOUNTER
40/132
ST7262
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
WDGCR WDGA T6 T5 T4 T3 T2 T1 T0
0Dh
Reset Value 0 1 1 1 1 1 1 1
41/132
ST7262
10.2.1 Introduction
The Pulse Width Modulated Auto-Reload Timer – Up to two input capture functions
on-chip peripheral consists of an 8-bit auto reload – External event detector
counter with compare/capture capabilities and of a
7-bit prescaler clock source. – Up to two external interrupt sources
These resources allow five possible operating The three first modes can be used together with a
modes: single counter frequency.
– Generation of up to 4 independent PWM signals The timer can be used to wake up the MCU from
WAIT and HALT modes.
– Output compare and Time base interrupt
Figure 31. PWM Auto-Reload Timer Block Diagram
LOAD
PORT
POLARITY
PWMx ALTERNATE COMPARE
CONTROL
FUNCTION
ICx INTERRUPT
fEXT
ARTCLK
fCOUNTER
fCPU
MUX
fINPUT PROGRAMMABLE
PRESCALER
OVF INTERRUPT
42/132
ST7262
fCOUNTER
ARTARR=FDh
COUNTER FDh FEh FFh FDh FEh FFh FDh FEh FFh
PWMx
43/132
ST7262
255
DUTY CYCLE
REGISTER
COUNTER
(PWMDCRx)
AUTO-RELOAD
REGISTER
(ARTARR)
000
t
PWMx OUTPUT
WITH OEx=1
AND OPx=0
WITH OEx=1
AND OPx=1
44/132
ST7262
fCOUNTER
ARTARR=FDh
OCRx=FCh
PWMx OUTPUT
WITH OEx=1
AND OPx=0
OCRx=FDh
OCRx=FEh
OCRx=FFh
45/132
ST7262
fEXT=f COUNTER
ARTARR=FDh
OVF
INTERRUPT INTERRUPT
IF OIE=1 IF OIE=1
46/132
ST7262
CFx FLAG
The timing resolution is given by auto-reload coun-
ter cycle time (1/fCOUNTER ).
t
Figure 37. Input Capture Timing Diagram
f COUNTER
COUNTER
01h 02h 03h 04h 05h 06h 07h
CFx FLAG
xxh 04h
ICRx REGISTER
t
47/132
ST7262
EXCL CC2 CC1 CC0 TCE FCRL OIE OVF CA7 CA6 CA5 CA4 CA3 CA2 CA1 CA0
Bit 7 = EXCL External Clock Bit 7:0 = CA[7:0] Counter Access Data
This bit is set and cleared by software. It selects the These bits can be set and cleared either by hard-
input clock for the 7-bit prescaler. ware or by software. The CAR register is used to
0: CPU clock. read or write the auto-reload counter “on the fly”
1: External clock. (while it is counting).
Bit 6:4 = CC[2:0] Counter Clock Control
These bits are set and cleared by software. They
determine the prescaler division ratio from f INPUT.
fCOUNTER With fINPUT=8 MHz CC2 CC1 CC0 AUTO-RELOAD REGISTER (ARR)
fINPUT 8 MHz 0 0 0 Read /Write
fINPUT / 2 4 MHz 0 0 1 Reset Value: 0000 0000 (00h)
fINPUT / 4 2 MHz 0 1 0
fINPUT / 8 1 MHz 0 1 1 7 0
fINPUT / 16 500 KHz 1 0 0
AR7 AR6 AR5 AR4 AR3 AR2 AR1 AR0
fINPUT / 32 250 KHz 1 0 1
fINPUT / 64 125 KHz 1 1 0
fINPUT / 128 62.5 KHz 1 1 1 Bit 7:0 = AR[7:0] Counter Auto-Reload Data
These bits are set and cleared by software. They
Bit 3 = TCE Timer Counter Enable are used to hold the auto-reload value which is au-
This bit is set and cleared by software. It puts the tomatically loaded in the counter when an overflow
timer in the lowest power consumption mode. occurs. At the same time, the PWM output levels
0: Counter stopped (prescaler and counter frozen). are changed according to the corresponding OPx
1: Counter running. bit in the PWMCR register.
Bit 2 = FCRL Force Counter Re-Load This register has two PWM management func-
This bit is write-only and any attempt to read it will tions:
yield a logical zero. When set, it causes the contents
of ARR register to be loaded into the counter, and – Adjusting the PWM frequency
the content of the prescaler register to be cleared in – Setting the PWM duty cycle resolution
order to initialize the timer before starting to count.
Bit 1 = OIE Overflow Interrupt Enable PWM Frequency vs. Resolution:
This bit is set and cleared by software. It allows to fPWM
enable/disable the interrupt which is generated ARR value Resolution
when the OVF bit is set. Min Max
0: Overflow Interrupt disable.
0 8-bit ~0.244-KHz 31.25-KHz
1: Overflow Interrupt enable.
[ 0..127 ] > 7-bit ~0.244-KHz 62.5-KHz
Bit 0 = OVF Overflow Flag
[ 128..191 ] > 6-bit ~0.488-KHz 125-KHz
This bit is set by hardware and cleared by software
reading the CSR register. It indicates the transition [ 192..223 ] > 5-bit ~0.977-KHz 250-KHz
of the counter from FFh to the ARR value. [ 224..239 ] > 4-bit ~1.953-KHz 500-KHz
0: New transition not yet reached
1: Transition reached
48/132
ST7262
Notes:
– When an OPx bit is modified, the PWMx output
signal polarity is immediately reversed.
– If DCRx=FFh then the output level is always 0.
– If DCRx=00h then the output level is always 1.
49/132
ST7262
50/132
ST7262
51/132
ST7262
1
MSB LSB MSB LSB
0
TBU 8-BIT UPCOUNTER (TBUCV REGISTER) ART PWM TIMER 8-BIT COUNTER
TBU PRESCALER
fCPU
TBUCSR REGISTER
52/132
ST7262
53/132
ST7262
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
54/132
ST7262
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
55/132
ST7262
MASTER SLAVE
MOSI MOSI
SPI
SCK SCK
CLOCK
GENERATOR
SS SS
+5V
Not used if SS is managed
by software
56/132
ST7262
Master SS
Slave SS
(if CPHA=0)
Slave SS
(if CPHA=1)
SSM bit
SSI bit 1
SS internal
SS external pin 0
57/132
ST7262
58/132
ST7262
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.
59/132
ST7262
Figure 44. 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
60/132
ST7262
SS SS SS SS
SCK SCK SCK SCK
Slave Slave Slave Slave
MCU MCU MCU MCU
MOSI MISO
SCK
Ports
Master
MCU
5V SS
61/132
ST7262
62/132
ST7262
63/132
ST7262
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 10.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 44). Reset Value: Undefined
0: No write collision occurred
1: A write collision has been detected 7 0
64/132
ST7262
Address Register
7 6 5 4 3 2 1 0
(Hex.) Label
65/132
ST7262
66/132
ST7262
TDO
RDI
CR1
R8 T8 SCID M WAKE PCE PS PIE
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 PE
SCI
INTERRUPT
CONTROL
TRANSMITTER
CLOCK
TRANSMITTER RATE
CONTROL
fCPU
/16 /PR
BRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
67/132
ST7262
Start
Idle Frame Bit
Start
Idle Frame Bit
68/132
ST7262
69/132
ST7262
70/132
ST7262
TRANSMITTER
CLOCK
EXTENDED PRESCALER TRANSMITTER RATE CONTROL
SCIETPR
EXTENDED TRANSMITTER PRESCALER REGISTER
SCIERPR
EXTENDED RECEIVER PRESCALER REGISTER
RECEIVER
CLOCK
EXTENDED PRESCALER RECEIVER RATE CONTROL
EXTENDED PRESCALER
fCPU
TRANSMITTER RATE
CONTROL
/16 /PR
SCIBRR
SCP1 SCP0 SCT2 SCT1 SCT0 SCR2 SCR1SCR0
RECEIVER RATE
CONTROL
71/132
ST7262
72/132
ST7262
73/132
ST7262
74/132
ST7262
75/132
ST7262
76/132
ST7262
77/132
ST7262
Bits 7:0 = ERPR[7:0] 8-bit Extended Receive Bits 7:0 = ETPR[7:0] 8-bit Extended Transmit
Prescaler Register. Prescaler 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 48) is divided by from the 16 divider (see Figure 48) is divided by
the binary factor set in the SCIERPR register (in the binary factor set in the SCIETPR register (in
the range 1 to 255). the 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.
Table 21. Baudrate Selection
Conditions
Baud
Symbol Parameter Accuracy Standard Unit
fCPU Prescaler Rate
vs. Standard
Conventional Mode
TR (or RR)=128, PR=13 300 ~300.48
TR (or RR)= 32, PR=13 1200 ~1201.92
TR (or RR)= 16, PR=13 2400 ~2403.84
~0.16% TR (or RR)= 8, PR=13 4800 ~4807.69
fTx TR (or RR)= 4, PR=13 9600 ~9615.38
Communication frequency 8MHz TR (or RR)= 16, PR= 3 10400 ~10416.67 Hz
fRx
TR (or RR)= 2, PR=13 19200 ~19230.77
TR (or RR)= 1, PR=13 38400 ~38461.54
Extended Mode
~0.79% ETPR (or ERPR) = 35, 14400 ~14285.71
TR (or RR)= 1, PR=1
78/132
ST7262
79/132
ST7262
ENDPOINT
REGISTERS CPU
USBDM
Transceiver Address,
SIE DMA
USBDP data buses
and interrupts
3.3V
USBVCC Voltage INTERRUPT
Regulator REGISTERS MEMORY
USBGND
80/132
ST7262
101111
Endpoint 2 TX
101000
100111
Endpoint 2 RX
100000
011111
Endpoint 1 TX
011000
010111
Endpoint 1 RX
010000
001111
Endpoint 0 TX
001000
000111
Endpoint 0 RX
DA15-6,000000 000000
81/132
ST7262
7 0 7 0
82/132
ST7262
7 0
Bit 0 = FRES Force reset.
SUS DOV CTR ERR IOVR ESU RES SOF
This bit is set by software to force a reset of the
PM RM M M M SPM ETM M
USB interface, just as if a RESET sequence came
from the USB.
0: Reset not forced
Bits 7:0 = These bits are mask bits for all interrupt 1: USB interface reset forced.
condition bits included in the ISTR. Whenever one The USB is held in RESET state until software
of the IMR bits is set, if the corresponding ISTR bit clears this bit, at which point a “USB-RESET” in-
is set, and the I bit in the CC register is cleared, an terrupt will be generated if enabled.
interrupt request is generated. For an explanation
83/132
ST7262
Bits 6:0 = ADD[6:0] Device address, 7 bits. Bits 5:4 = STAT_TX[1:0] Status bits, for transmis-
Software must write into this register the address sion transfers.
sent by the host during enumeration. These bits contain the information about the end-
Note: This register is also reset when a USB reset point status, which are listed below:
is received from the USB bus or forced through bit STAT_TX1 STAT_TX0 Meaning
FRES in the CTLR register. DISABLED: transmission
0 0
transfers cannot be executed.
ENDPOINT n REGISTER A (EPnRA) STALL: the endpoint is stalled
0 1 and all transmission requests
Read / Write result in a STALL handshake.
Reset Value: 0000 xxxx (0xh) NAK: the endpoint is naked
1 0 and all transmission requests
7 0 result in a NAK handshake.
VALID: this endpoint is ena-
ST_ DTOG STAT STAT TBC TBC TBC TBC 1 1
bled for transmission.
OUT _TX _TX1 _TX0 3 2 1 0
84/132
ST7262
Bits 5:4 = STAT_RX [1:0] Status bits, for reception Bit 7 = Forced by hardware to 1.
transfers.
These bits contain the information about the end- Bits 6:4 = Refer to the EPnRB register for a de-
point status, which are listed below: scription of these bits.
STAT_RX1 STAT_RX0 Meaning
DISABLED: reception Bits 3:0 = Forced by hardware to 0.
0 0 transfers cannot be exe-
cuted.
STALL: the endpoint is
stalled and all reception
0 1
requests result in a
STALL handshake.
85/132
ST7262
86/132
ST7262
Address Register
7 6 5 4 3 2 1 0
(Hex.) Name
87/132
ST7262
88/132
ST7262
EOC Interrupt
ONE
EOC SPEED ADON ITE
SHOT
CS2 CS1 CS0 ADCCSR
AIN0
AIN1
ANALOG TO DIGITAL
ANALOG
MUX CONVERTER
AINx
ADCDRMSB D9 D8 D7 D6 D5 D4 D3 D2
ADCDRLSB 0 0 0 0 0 0 D1 D0
89/132
ST7262
90/132
ST7262
0 0 0 0 0 0 D1 D0
91/132
ST7262
11 INSTRUCTION SET
11.1 CPU ADDRESSING MODES so, most of the addressing modes may be subdi-
vided in two sub-modes called long and short:
The CPU 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
Relative jrne loop (CLR, CPL, NEG, BSET, BRES, BTJT, BTJF,
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 CPU Instruction set is designed to minimize
the number of bytes required per instruction: To do
Table 24. CPU Addressing Mode Overview
Pointer Pointer Size Length
Mode Syntax Destination Address (Hex.) (Bytes)
(Hex.)
Inherent nop +0
Immediate ld A,#$55 +1
92/132
ST7262
93/132
ST7262
Short Instructions
Function
Only
CLR Clear
INC, DEC Increment/Decrement
TNZ Test Negative or Zero
CPL, NEG 1 or 2 Complement
BSET, BRES Bit Operations
Bit Test and Jump Opera-
BTJT, BTJF
tions
SLL, SRL, SRA, RLC, Shift and Rotate Opera-
RRC tions
SWAP Swap Nibbles
CALL, JP Call or Jump subroutine
94/132
ST7262
Using a pre-byte
The instructions are described with one to four op- These prebytes enable instruction in Y as well as
codes. 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
cede. using immediate, direct, indexed, or inherent ad-
The whole instruction becomes: dressing mode by a Y one.
PC-2 End of previous instruction PIX 92 Replace an instruction using di-
rect, direct bit, or direct relative addressing mode
PC-1 Prebyte to an instruction using the corresponding indirect
PC opcode addressing mode.
It also changes an instruction using X indexed ad-
PC+1 Additional word (0 to 2) according
to the number of bytes required to compute the ef- dressing mode to an instruction using indirect X in-
dexed addressing mode.
fective address
PIY 91 Replace an instruction using X in-
direct indexed addressing mode by a Y one.
95/132
ST7262
96/132
ST7262
97/132
ST7262
12 ELECTRICAL CHARACTERISTICS
98/132
ST7262
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.
99/132
ST7262
8 FUNCTIONALITY
GUARANTEED
IN THIS AREA
(UNLESS OTHERWISE
SPECIFIED IN THE
4 TABLES OF
PARAMETRIC DATA)
0
2.5 3.0 3.5 4 4.5 5 5.5 SUPPLY VOLTAGE [V]
Table 26. General Operating Conditions (low voltage ROM devices, no USB, no ADC))
Symbol Parameter Conditions Min Typ Max Unit
VDD Operating Supply Voltage fCPU = 4 MHz 3 5 5.5
VDDA Analog reference voltage VDD VDD
VSSA Analog reference voltage VSS VSS
fCPU Operating frequency fOSC = 6MHz 4 MHz
TA Ambient temperature range 0 70 °C
100/132
ST7262
8 FUNCTIONALITY
GUARANTEED
IN THIS AREA
(UNLESS OTHERWISE
SPECIFIED IN THE
4 TABLES OF
PARAMETRIC DATA)
0
2.5 3.0 3.5 4 4.5 5 5.5 SUPPLY VOLTAGE [V]
101/132
ST7262
Note 1: Typical data are based on TA=25°C and not tested in production
Note 2: Data based on design simulation, not tested in production.
Note 3: USB Transceiver and ADC are powered down.
Note 4: Low voltage reset function enabled.
CPU in HALT mode.
Current consumption of external pull-up (1.5Kohms to USBVCC) and pull-down (15Kohms to VSSA)
not included.
Figure 56. Typ. IDD in RUN at 4 and 8 MHz fCPU Figure 57. Typ. IDD in WAIT at 4 and 8 MHz fCPU
10
12 9
10 8
7
8 Idd run at
Idd (mA)
102/132
ST7262
Note 1:
The minimum period tILIL should not be less than the number of cycle times it takes to execute the interrupt service routine
plus 21 cycles.
Note 2:
Not tested in production, guaranteed by design.
103/132
ST7262
90%
VOSCINH
10%
VOSCINL
OSCOUT
Not connected internally
fOSC
EXTERNAL
IL
CLOCK SOURCE
OSCIN
ST72XXX
i2
fOSC
CL1 OSCIN
RESONATOR RF
CL2
OSCOUT
ST72XXX
104/132
ST7262
VPP VPP
PROGRAMMING
TOOL
10kΩ
ST72XXX ST72XXX
Note 1: When the ICP mode is not required by the application, VPP pin must be tied to VSS.
105/132
ST7262
Notes:
1. Data based on characterization results, not tested in production.
106/132
ST7262
HIGH VOLTAGE
PULSE CL=100pF
ST7 S2
GENERATOR
Notes:
1. Data based on characterization results, not tested in production.
107/132
ST7262
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.
108/132
ST7262
(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
109/132
ST7262
Main path
(1)
Path to avoid OUT (4) IN
VSS VSS
Figure 66. 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
110/132
ST7262
VDD ST72XXX
UNUSED I/O PORT
10kΩ 10kΩ
UNUSED I/O PORT
ST72XXX
Figure 69. Typical IPU vs. VDD with V IN=VSS Figure 70. Typical RPU vs. VDD with VIN=VSS
180
0.0
160
-10.0
140
-20.0
120
-30.0
Rpu (K )
Ipu (µA)
-40.0 100
-50.0 80
-60.0 60
-70.0 40
-80.0 20
-90.0 0
3.0 3.5 4.0 4.5 5.0 5.5 6.0 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Vdd (V) Vdd (V)
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD=5V, 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 68). 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 69). This data is based on characterization results.
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.
111/132
ST7262
VDD=5V
Output low level voltage for a high sink I/O pin IIO=+20mA 1.3
when up to4 pins are sunk at same time V
(see Figure 72) IIO=+8mA 0.4
Output high level voltage for an I/O pin IIO=-5mA VDD-2.0
VOH 2) when up to 8 pins are sourced at same time
(see Figure 73) IIO=-2mA VDD-0.8
Figure 71. Typ. VOL at VDD=5V (std. port) Figure 73. Typ. VDD-VOH at VDD=5V (std. port)
1.2
1.4
VDD-VOH (V) at T A=25°C
1 1.2
VOL (V) at T A 25°C
0.8 1
0.6 0.8
0.6
0.4
0.4
0.2 0.2
0 0
0 1 2 3 4 5 6 7 8 9 -7.5 -6.5 -5.5 -4.5 -3.5 -2.5 -1.5 -0.5
I IO (mA) I IO (mA)
Figure 72. Typ. VOL at VDD=5V (high-sink) Figure 74. Typ. VDD-VOH at VDD=5V (high-sink)
0.3
0.25
VDD-VOH (V) T=25°C
0.7
0.2
V OL (V) at T A=25°C
0.6
0.5 0.15
0.4
0.1
0.3
0.2 0.05
0.1
0
0
-8 -7 -6 -5 -4 -3 -2 -1 0
0 2.5 5 7.5 10 12.5 15 17.5 20 22.5
IIO (mA)
IIO (mA)
Notes:
1. The IIO current sunk must always respect the absolute maximum rating specified in Section 12.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 12.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.
112/132
ST7262
0.25 0.7
0.6
0.2
V OL (V) at I IO =2mA
V OL (V) at I IO=5mA
0.5
0.15 0.4
0.1 0.3
0.2
0.05
0.1
0 0
3.5 4 4.5 5 5.5 6 3.5 4 4.5 5 5.5 6
0.7
V OL High Sink port (V) at I IO=8mA
0.3
0.6
V OL (V) at I IO =20mA
0.25 0.5
0.2 0.4
0.15 0.3
0.1 0.2
0.05 0.1
0 0
3.5 4 4.5 5 5.5 6 3.5 4 4.5 5 5.5 6
VDD (V) V DD (V)
0.35 1
0.9
V DD-V OH (V) at I IO=-5mA
V DD-V OH (V) at I IO=-2mA
0.3 0.8
0.25 0.7
0.6
0.2
0.5
0.15 0.4
0.1 0.3
0.2
0.05 0.1
0 0
3.5 4 4.5 5 5.5 6 3.5 4 4.5 5 5.5 6
113/132
ST7262
0.09 0.25
V DD-V OD (V) at I IO =-2mA
Notes:
1. Unless otherwise specified, typical data are based on TA=25°C and VDD=5V, not tested in production.
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 12.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 79). 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.
114/132
ST7262
0
1.0
-10
0.8
-20
I ON (µA)
V OL (V)
0.6
-30
0.4
-40
0.2
-50
0.0
-60 0 1 2 3 4 5 6 7 8 9
3 3.5 4 4.5 5 5.5 6 6.5
I IO (mA)
V DD=5V
0.3
0.8
0.25
V OL (V) at I IO =2mA
0.7
V OL (V) at I IO =5mA
0.2 0.6
0.5
0.15
0.4
0.1 0.3
0.2
0.05
0.1
0 0
3 3.5 4 4.5 5 5.5 6 6.5 3 3.5 4 4.5 5 5.5 6 6.5
V DD (V) V DD (V)
115/132
ST7262
116/132
ST7262
Differential
Data Lines Crossover
points
VCRS
VSS
tf tr
Note 1: Measured from 10% to 90% of the data signal. For more detailed informations, please refer to Chapter 7 (Elec-
trical) of the USB specification (version 1.1).
117/132
ST7262
12.11.2 SPI - Serial Peripheral Interface Refer to I/O port characteristics for more details on
Subject to general operating condition for V DD, the input/output alternate function characteristics
fCPU, and TA unless otherwise specified. (SS, SCK, MOSI, MISO).
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.
118/132
ST7262
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.
119/132
ST7262
Figure 86. RAIN max. vs fADC with CAIN=0pF4) Figure 87. Recommended CAIN/R AIN values5)
45 1000
40 Cain 10 nF
4 MHz
35
100 Cain 22 nF
Max. R AIN (Kohm)
2 MHz
Max. R AIN (Kohm)
30 Cain 47 nF
25 1 MHz
10
20
15
10 1
0 0.1
0 10 30 70 0.01 0.1 1 10
VDD ST72XXX
VT
0.6V
RAIN AINx 2kΩ(max) 10-Bit A/D
VAIN Conversion
CAIN VT
0.6V IL CADC
±1µA 6pF
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. CPARASITIC represents the capacitance of the PCB (dependent on soldering and PCB layout quality) plus the pad ca-
pacitance (3pF). A high CPARASITIC value will downgrade conversion accuracy. To remedy this, fADC should be reduced.
5. This graph shows that depending on the input signal variation (fAIN), CAIN can be increased for stabilization and to allow
the use of a larger serial resistor (RAIN). It is valid for all fADC frequencies ≤ 4MHz.
120/132
ST7262
12.12.0.1 Analog Power Supply and Reference high frequency characteristics, between the
Pins power and ground lines, placing 0.1µF and 10pF
Depending on the MCU pin count, the package capacitors as close as possible to the ST7 power
may feature separate VDDA and V SSA analog pow- supply pins and a 10µF capacitor close to the
er supply pins. These pins supply power to the A/D power source (see Figure 89).
converter cell and function as the high and low ref- – The analog and digital power supplies should be
erence voltages for the conversion. In smaller connected in a star nework. Do not use a resis-
packages VDDA and V SSA pins are not available tor, as VDDA is used as a reference voltage by the
and the analog supply and reference pads are in- A/D converter and any resistance would cause a
ternally bonded to the VDD and VSS pins. voltage drop and a loss of accuracy.
Separation of the digital and analog power pins al- – Properly place components and route the signal
low board designers to improve A/D performance. traces on the PCB to shield the analog inputs.
Conversion accuracy can be impacted by voltage Analog signals paths should run over the analog
drops and noise in the event of heavily loaded or ground plane and be as short as possible. Isolate
badly decoupled power supply lines (see Section analog signals from digital signals that may
10.7.3.2 PCB Design Guidelines). switch while the analog inputs are being sampled
12.12.0.2 General PCB Design Guidelines by the A/D converter. Do not toggle digital out-
puts on the same I/O port as the A/D input being
To obtain best results, some general design and converted.
layout rules should be followed when designing
the application PCB to shield the the noise-sensi- 12.12.0.3 Specific Application Design
tive, analog physical interface from noise-generat- Guidelines
ing CMOS logic signals. – When a USB transmission is taking place during
– Use separate digital and analog planes. The an- A/D conversion, the noise caused on the analog
alog ground plane should be connected to the power supply by the USB transmission may re-
digital ground plane via a single point on the sult in a loss of ADC accuracy.
PCB. – If the USB is used to supply power to the appli-
– Filter power to the analog power planes. The cation, this causes noise which may result in a
best solution is to connect capacitors, with good loss of ADC accuracy.
ST72XXX
10µF 10pF 0.1µF VSS
ST7
DIGITAL NOISE
FILTERING
VDD
VDD
POWER
SUPPLY 10pF 0.1µF VDDA
SOURCE
EXTERNAL
NOISE
FILTERING VSSA
121/132
ST7262
Notes:
1) Not tested in production, guaranteed by characterization.
2) ADC Accuracy vs. Negative Injection Current:
Injecting negative current on any of the analog input pins significantly reduces the accuracy of the conversion being per-
formed on another analog input.
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 4 LSB
for each 10KΩ increase of the external analog source impedance. It is recommended to add a Schottky diode (pin to
ground) to analog pins which may potentially inject negative current. Any positive injection current within the limits spec-
ified for IINJ(PIN) and ΣIINJ(PIN) in Section 12.8 does not affect the ADC accuracy.
122/132
ST7262
13 PACKAGE CHARACTERISTICS
0.10mm mm inches
Dim
.004 Min Typ Max Min Typ Max
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 0.30 0.37 0.45 0.012 0.015 0.018
Figure 92. 42-Pin Shrink Plastic Dual In-Line Package, 600-mil Width
mm inches
Dim.
Min Typ Max Min Typ Max
A 5.08 0.200
A1 0.51 0.020
A2 3.05 3.81 4.57 0.120 0.150 0.180
b 0.46 0.56 0.018 0.022
b2 1.02 1.14 0.040 0.045
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
E 15.24 16.00 0.600 0.630
E1 12.70 13.72 14.48 0.500 0.540 0.570
e 1.78 0.070
eA 15.24 0.600
eB 18.54 0.730
eC 0.00 1.52 0.000 0.060
PDIP42S L 2.54 3.30 3.56 0.100 0.130 0.140
Number of Pins
N 42
123/132
ST7262
mm inches
Dim.
Min Typ Max Min Typ Max
A 2.46 2.64 0.097 0.104
A1 0.13 0.29 0.005 0.0115
B 0.36 0.48 0.014 0.019
C 0.23 0.32 0.0091 0.0125
0.10mm
D 17.73 18.06 0.698 0.711
.004
E 7.42 7.59 0.292 0.299
e 1.02 0.040
H 10.16 10.41 0.400 0.410
h 0.64 0.74 0.025 0.029
K 0° 8°
L 0.61 1.02 0.024 0.040
Number of Pins
N 34
SO34S
mm inches
E Dim.
Min Typ Max Min Typ Max
124/132
ST7262
mm inches
Dim.
Min Typ Max Min Typ Max
A 2.35 2.65 0.0926 0.1043
A1 0.10 0.0040
B 0.33 0.51 0.0130 0.0200
C 0.32 0.0125
D 4.98 13.00 0.1961 0.5118
E 7.40 7.60 0.2914 0.2992
e 1.27 0.050
H 10.01 10.64 0.394 0.419
h 0.25 0.74 0.010 0.029
K 0° 8° 0° 8°
L 0.41 1.27 0.016 0.050
G 0.10 0.004
SO20 Number of Pins
N 20
mm inches
Dim.
Min Typ Max Min Typ Max
A 5.33 0.210
A2 2.92 3.30 4.95 0.115 0.130 0.195
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 24.89 26.92 0.980 1.060
e 2.54 0.100
E1 6.10 6.35 7.11 0.240 0.250 0.280
L 2.92 3.30 3.81 0.115 0.130 0.150
Number of Pins
PDIP20
N 20
125/132
ST7262
126/132
ST7262
127/132
ST7262
Note:
1. In-Circuit Programming (ICP) interface for FLASH devices.
Note:
1. Add Suffix /EU or /US for the power supply for your region.
128/132
ST7262
Note 1: Low voltage devices available in S020, SO34 and TQFP44 only.
Note 2: Must be disabled in low voltage devices
Note 3: 6 MHz mandatory for low voltage devices
129/132
ST7262
15 IMPORTANT NOTES
130/132
ST7262
16 SUMMARY OF CHANGES
Description of the changes between the current release of the specification and the previous one.
131/132
ST7262
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
132/132