Académique Documents
Professionnel Documents
Culture Documents
1
Table of Contents
ST62T45B/E45B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
1.2 PIN DESCRIPTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
1.3 MEMORY MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
1.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
1.3.2 Program Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
1.3.3 Data Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
1.3.4 Stack Space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
1.3.5 Data Window Register (DWR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.3.6 Data RAM/EEPROM Bank Register (DRBR). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.3.7 EEPROM Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.4 PROGRAMMING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.4.1 Option Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.4.2 Program Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
1.4.3 EEPROM Data Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.4.4 EPROM Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
2 CENTRAL PROCESSING UNIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
2.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
2.2 CPU REGISTERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
3 CLOCKS, RESET, INTERRUPTS AND POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . 18
3.1 CLOCK SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
3.1.1 Main Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
3.1.2 32kHz STAND-BY OSCILLATOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.2 RESETS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
3.2.1 RESET Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
3.2.2 Power-on Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
3.2.3 Watchdog Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
3.2.4 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
3.2.5 MCU Initialization Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.3 DIGITAL WATCHDOG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
3.3.1 Digital Watchdog Register (DWDR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.3.2 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25
3.4 INTERRUPTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.4.1 Interrupt request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
3.4.2 Interrupt Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.4.3 Interrupt Option Register (IOR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.4.4 Interrupt Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
3.5 POWER SAVING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3.5.1 WAIT Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3.5.2 STOP Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31
3.5.3 Exit from WAIT and STOP Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
72
2/72
2
Table of Contents
4 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
4.1 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
4.1.1 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34
4.1.2 Safe I/O State Switching Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
4.1.3 LCD alternate functions (combiports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1.4 SPI alternate functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1.5 I/O Port Option Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.1.6 I/O Port Data Direction Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.1.7 I/O Port Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.2 TIMER 1 & 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39
4.2.1 TIMER 1 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.2.2 TIMER 2 Operating Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.2.3 Timer Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
4.2.4 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41
4.2.5 TIMER 1 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42
4.2.6 TIMER 2 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43
4.3 A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.3.1 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44
4.4 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.5 LCD CONTROLLER-DRIVER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.5.1 Multiplexing ratio and frame frequency setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.5.2 Segment and common plates driving. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.5.3 LCD RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50
4.5.4 Stand by or STOP operation mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4.5.5 LCD Mode Control Register (LCDCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5 SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
5.1 ST6 ARCHITECTURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
5.2 ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52
5.3 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53
6 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.1 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
6.2 RECOMMENDED OPERATING CONDITIONS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.3 DC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6.4 AC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.5 A/D CONVERTER CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
6.6 TIMER CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.7 SPI CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.8 LCD ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
6.9 PSS ELECTRICAL CHARACTERISTICS (WHEN AVAILABLE) . . . . . . . . . . . . . . . . . . . . 62
7 GENERAL INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .63
7.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.2 PACKAGE THERMAL CHARACTERISTIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
7.3 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3/72
3
Table of Contents
ST62P45B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
1.2 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
1.2.1 Transfer of Customer Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
1.2.2 Listing Generation and Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
ST6245B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .70
1.2 ROM READOUT PROTECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
1.3 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
1.3.1 Transfer of Customer Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
1.3.2 Listing Generation and Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
72
4/72
1
ST62T45B/E45B
1 GENERAL DESCRIPTION
1.1 INTRODUCTION
The ST62T45B and ST62E45B devices are low common core is surrounded by a number of on-
cost members of the ST62xx 8-bit HCMOS family chip peripherals.
of microcontrollers, which are targeted at low to
medium complexity applications. All ST62xx de- The ST62E45B is the erasable EPROM version of
vices are based on a building block approach: a the ST62T45B device, which may be used to em-
ulate the ST62T45B device, as well as the respec-
tive ST6245B ROM devices.
Figure 1. Block Diagram
TIMER 2
TIMER 1 TIMER
PC
5/72
4
ST62T45B/E45B
INTRODUCTION (Cont’d)
OTP and EPROM devices are functionally identi- Figure 2. 52 Pin QFP Package
cal. The ROM based versions offer the same func-
tionality selecting as ROM options the options de-
fined in the programmable option byte of the 39 27
OTP/EPROM versions.OTP devices offer all the
advantages of user programmability at low cost, 40 26
which make them the ideal choice in a wide range
of applications where frequent code changes,
multiple code versions or last minute programma-
bility are required.
These compact low-cost devices feature two Tim-
ers comprising an 8-bit counter and a 7-bit pro-
grammable prescaler, EEPROM data capability, a
serial synchronous port interface (SPI), an 8-bit
52 14
A/D Converter with 8 analog inputs, a Digital
Watchdog timer, and a complete LCD controller
driver, making them well suited for a wide range of 123 13 VR01649C
automotive, appliance and industrial applications.
6/72
5
ST62T45B/E45B
7/72
6
ST62T45B/E45B
0000h 000h
RAM / EEPROM
BANKING AREA
0-63 03Fh
040h
DATA READ-ONLY
PROGRAM MEMORY WINDOW
MEMORY 07Fh
080h X REGISTER
081h Y REGISTER
082h V REGISTER
083h W REGISTER
084h
RAM
8/72
7
ST62T45B/E45B
0F9Fh
0FA0h
0FEFh RESERVED *
0FF0h
0FF7h INTERRUPT VECTORS
0FF8h
RESERVED
0FFBh
0FFCh
NMI VECTOR
0FFDh
0FFEh USER RESET VECTOR
0FFFh
9/72
8
ST62T45B/E45B
10/72
9
ST62T45B/E45B
Example:
DWR=28h 1 0 1 0 0 0
DATA SPACE ADDRESS
:
0 1 0 1 1 0 0 1 59h
ROM
1 0 1 0 0 0 0 1 1 0 0 1
ADDRESS:A19h
VR01573C
11/72
10
ST62T45B/E45B
12/72
11
ST62T45B/E45B
13/72
12
ST62T45B/E45B
14/72
13
ST62T45B/E45B
15/72
14
ST62T45B/E45B
INTERRUP TS
CONTROLLER
DATA SPACE
CONTROL
FLAG SIGNALS DATA
OPCODE VALUES ADDRESS/READ LINE
2 RAM/EE PROM
PROGRAM
DATA
ROM/EPROM ADDRESS 256
DECODER ROM/EPROM
A-DATA B-DATA
DEDICATION S
ACCUMULATOR
Program Counter
12 and FLAGS
6 LAYER STACK ALU
RESULTS TO DATA SPACE (WRITE LINE)
VR01811
16/72
15
ST62T45B/E45B
17/72
16
ST62T45B/E45B
fOSC POR
OSCin
fINT : 13 Core
Timer 1 & 2
ADC
OSCout
MUX LCD
CONTROLLER
DRIVER
OSC32in
EOCR bit 5
32kHz
(START /STOP)
OSCILLATOR
OSC32out
18/72
17
ST62T45B/E45B
2x15...22pF OSC32KHz
OSC32IN
1
OSC32KHz MUX DIV 214
0
32.768kHz OSC32OUT
Crystal
fINT/13
START
EOSCI OSCEOC STOP X X X X X
INT
19/72
18
ST62T45B/E45B
3.2 RESETS
The MCU can be reset in three ways: The internal delay is generated by an on-chip coun-
– by the external Reset input being pulled low; ter. The internal reset line is released 2048 internal
clock cycles after release of the external reset.
– by Power-on Reset;
– by the digital Watchdog peripheral timing out. Notes:
3.2.1 RESET Input To ensure correct start-up, the user should take
care that the reset signal is not released before
The RESET pin may be connected to a device of the VDD level is sufficient to allow MCU operation
the application board in order to reset the MCU if at the chosen frequency (see Recommended Op-
required. The RESET pin may be pulled low in erating Conditions).
RUN, WAIT or STOP mode. This input can be
used to reset the MCU internal state and ensure a A proper reset signal for a slow rising VDD supply
correct start-up procedure. The pin is active low can generally be provided by an external RC net-
and features a Schmitt trigger input. The internal work connected to theRESET pin.
Reset signal is generated by adding a delay to the
external signal. Therefore even short pulses on Figure 11. Reset and Interrupt Processing
the RESET pin are acceptable, provided VDD has
completed its rising phase and that the oscillator is RESET
running correctly (normal RUN or WAIT modes).
The MCU is kept in the Reset state as long as the
RESET pin is held low.
NMI MASK SET
If RESET activation occurs in the RUN or WAIT INT LATCH CLEARED
( IF PRESENT )
modes, processing of the user program is stopped
(RUN mode only), the Inputs and Outputs are con-
figured as inputs with pull-up resistors and the
main Oscillator is restarted. When the level on the SELECT
RESET pin then goes high, the initialization se- NMI MODE FLAGS
20/72
19
ST62T45B/E45B
RESETS (Cont’d)
3.2.3 Watchdog Reset Reset, the Interrupt flag is automatically set, so
that the CPU is in Non Maskable Interrupt mode;
The MCU provides a Watchdog timer function in this prevents the initialisation routine from being
order to ensure graceful recovery from software interrupted. The initialisation routine should there-
upsets. If the Watchdog register is not refreshed fore be terminated by a RETI instruction, in order
before an end-of-count condition is reached, the to revert to normal mode and enable interrupts. If
internal reset will be activated. This, amongst oth- no pending interrupt is present at the end of the in-
er things, resets the watchdog counter. itialisation routine, the MCU will continue by
processing the instruction immediately following
The MCU restarts just as though the Reset had the RETI instruction. If, however, a pending inter-
been generated by the RESET pin, including the rupt is present, it will be serviced.
built-in stabilisation delay period.
3.2.4 Application Notes Figure 12. Reset and Interrupt Processing
VDD
ST6
fOSC CK INTERNAL
RESET
300kΩ COUNTE R
VA0200B
21/72
20
ST62T45B/E45B
RESETS (Cont’d)
Table 6. Register Reset Status
Register Address(es) Status Comment
EEPROM Control Register 0DFh EEPROM enabled
Port Data Registers 0C0h, 0C2h, 0C3h
Port A,B Direction Register 0C4h to 0C5h I/O are Input with pull-up
Port A,B Option Register 0CCh, 0CEh
Interrupt Option Register 0C8h 00h Interrupt disabled
22/72
21
ST62T45B/E45B
23/72
22
ST62T45B/E45B
WATCHDOG COUNTER
RESET
SR bit must be set to “1”, since it is this bit which D2 T5
generates the Reset signal when it changes to “0”;
clearing this bit would generate an immediate Re-
set. D3 T4
It should be noted that the order of the bits in the
DWDR register is inverted with respect to the as-
sociated bits in the down counter: bit 7 of the D4 T3
DWDR register corresponds, in fact, to T0 and bit
2 to T5. The user should bear in mind the fact that
these bits are inverted and shifted with respect to D5 T2
the physical counter bits when writing to this regis-
ter. The relationship between the DWDR register
bits and the physical implementation of the Watch- D6 T1
dog timer downcounter is illustrated inFigure 14.
Only the 6 most significant bits may be used to de- D7 T0
fine the time period, since it is bit 6 which triggers
the Reset when it changes to “0”. This offers the
user a choice of 64 timed periods ranging from
3,072 to 196,608 clock cycles (with an oscillator ÷28 OSC ÷12
frequency of 8MHz, this is equivalent to timer pe-
riods ranging from 384µs to 24.576ms). VR02068A
24/72
23
ST62T45B/E45B
25/72
24
ST62T45B/E45B
RESET
Q 7
RSFF -2 -2 8 -12
S R DB1.7 LOAD SET SET
OSCILLATOR
8 CLOCK
DB0
WRITE
RESET
DATA BUS
VA00010
26/72
25
ST62T45B/E45B
3.4 INTERRUPTS
The CPU can manage four Maskable Interrupt matically reset by the core at the beginning of the
sources, in addition to a Non Maskable Interrupt non-maskable interrupt service routine.
source (top priority interrupt). Each source is as- Interrupt request from source #1 can be config-
sociated with a specific Interrupt Vector which ured either as edge or level sensitive by setting
contains a Jump instruction to the associated in- accordingly the LES bit of the Interrupt Option
terrupt service routine. These vectors are located Register (IOR).
in Program space (see Table 8).
Interrupt request from source #2 are always edge
When an interrupt source generates an interrupt sensitive. The edge polarity can be configured by
request, and interrupt processing is enabled, the setting accordingly the ESB bit of the Interrupt Op-
PC register is loaded with the address of the inter- tion Register (IOR).
rupt vector (i.e. of the Jump instruction), which
then causes a Jump to the relevant interrupt serv- Interrupt request from sources #3 & #4 are level
ice routine, thus servicing the interrupt. sensitive.
Interrupt sources are linked to events either on ex- In edge sensitive mode, a latch is set when a edge
ternal pins, or on chip peripherals. Several events occurs on the interrupt source line and is cleared
can be ORed on the same interrupt source, and when the associated interrupt routine is started.
relevant flags are available to determine which So, the occurrence of an interrupt can be stored,
event triggered the interrupt. until completion of the running interrupt routine be-
fore being processed. If several interrupt requests
The Non Maskable Interrupt request has the high- occurs before completion of the running interrupt
est priority and can interrupt any interrupt routine routine, only the first request is stored.
at any time; the other four interrupts cannot inter-
rupt each other. If more than one interrupt request Storage of interrupt requests is not available in
is pending, these are processed by the processor level sensitive mode. To be taken into account,
core according to their priority level: source #1 has the low level must be present on the interrupt pin
the higher priority while source #4 the lower. The when the MCU samples the line after instruction
priority of each interrupt source is fixed. execution.
At the end of every instruction, the MCU tests the
Table 8. Interrupt Vector Map interrupt lines: if there is an interrupt request the
Interrupt Source Priority Vector Address next instruction is not executed and the appropri-
Interrupt source #0 1 (FFCh-FFDh)
ate interrupt service routine is executed instead.
Interrupt source #1 2 (FF6h-FF7h) Table 9. Interrupt Option Register Description
Interrupt source #2 3 (FF4h-FF5h)
SET Enable all interrupts
Interrupt source #3 4 (FF2h-FF3h) GEN
CLEARED Disable all interrupts
Interrupt source #4 5 (FF0h-FF1h)
Rising edge mode on inter-
SET
rupt source #2
3.4.1 Interrupt request ESB
Falling edge mode on inter-
CLEARED
All interrupt sources but the Non Maskable Inter- rupt source #2
rupt source can be disabled by setting accordingly Level-sensitive mode on in-
SET
the GEN bit of the Interrupt Option Register (IOR). terrupt source #1
LES
This GEN bit also defines if an interrupt source, in- Falling edge mode on inter-
cluding the Non Maskable Interrupt source, can CLEARED
rupt source #1
restart the MCU from STOP/WAIT modes. OTHERS NOT USED
Interrupt request from the Non Maskable Interrupt
source #0 is latched by a flip flop which is auto-
27/72
26
ST62T45B/E45B
IINTERRUPTS (Cont’d)
3.4.2 Interrupt Procedure MCU
The interrupt procedure is very similar to a call – Automatically the MCU switches back to the nor-
procedure, indeed the user can consider the inter- mal flag set (or the interrupt flag set) and pops
rupt as an asynchronous call procedure. As this is the previous PC value from the stack.
an asynchronous event, the user cannot know the The interrupt routine usually begins by the identi-
context and the time at which it occurred. As a re- fying the device which generated the interrupt re-
sult, the user should save all Data space registers quest (by polling). The user should save the regis-
which may be used within the interrupt routines. ters which are used within the interrupt routine in a
There are separate sets of processor flags for nor- software stack. After the RETI instruction is exe-
mal, interrupt and non-maskable interrupt modes, cuted, the MCU returns to the main routine.
which are automatically switched and so do not
need to be saved. Figure 16. Interrupt Processing Flow Chart
The following list summarizes the interrupt proce- INS TRUC TION
dure:
MCU
FETCH
– The interrupt is detected. IN STRU CTION
User
– User selected registers are saved within the in- ”POP”
THE STAC KED PC
terrupt service routine (normally on a software
stack).
– The source of the interrupt is found by polling the NO C HEC K IF THER E IS
AN IN TERRU PT RE QUEST
?
interrupt flags (if more than one source is asso- AN D INT ER RU PT MASK
28/72
27
ST62T45B/E45B
IINTERRUPTS (Cont’d)
3.4.3 Interrupt Option Register (IOR) Bit 5 = ESB: Edge Selection bit.
The Interrupt Option Register (IOR) is used to en- The bit ESB selects the polarity of the interrupt
able/disable the individual interrupt sources and to source #2.
select the operating mode of the external interrupt Bit 4 = GEN: Global Enable Interrupt. When this
inputs. This register is write-only and cannot be bit is set to one, all interrupts are enabled. When
accessed by single-bit operations. this bit is cleared to zero all the interrupts (exclud-
Address: 0C8h — Write Only ing NMI) are disabled.
Reset status: 00h When the GEN bit is low, the NMI interrupt is ac-
tive but cannot cause a wake up from STOP/WAIT
7 0 modes.
- LES ESB GEN - - - - This register is cleared on reset.
3.4.4 Interrupt Sources
Bit 7, Bits 3-0 = Unused. Interrupt sources available on the
ST62E45B/T45B are summarized in theFigure 10
Bit 6 = LES: Level/Edge Selection bit. with associated mask bit to enable/disable the in-
When this bit is set to one, the interrupt source #1 terrupt request.
is level sensitive. When cleared to zero the edge
sensitive mode for interrupt request is selected.
Table 10. Interrupt Requests and Mask Bits
Address Interrupt
Peripheral Register Mask bit Masked Interrupt Source
Register source
GENERAL IOR C8h GEN All Interrupts, excluding NMI All
TIMER 1 TSCR1 D4h
ETI TMZ: TIMER Overflow source 3
TIMER 2 TSCR2 D7h
A/D CONVERTER ADCR D1h EAI EOC: End of Conversion source 4
SPI SPI C2h ALL End of Transmission source 1
Port PAn ORPA-DRPA C0h-C4h ORPAn-DRPAn PAn pin source 2
Port PBn ORPB-DRPB C1h-C5h ORPBn-DRPBn PBn pin source 2
Port PCn ORPC-DRPC C6h-CFh ORPCn-DRPCn PCn pin source 2
32kHz OSC 32OCR DBh EOSCI OSCEOC source 3
29/72
28
ST62T45B/E45B
INTERRUPTS (Cont’d)
Figure 17. Interrupt Block Diagram
FF
INT #0 NMI (FFC ,D))
NMI CLK Q
CLR
I0 Start
FF
SPI CLK Q 0
CLR
MUX INT #1 (FF6,7)
FROM REGISTER PORT A,B,C I1 Start
SINGLE BIT ENABLE
PBE 1
PORT B PBE FF
CLK Q INT #2 (FF4,5)
PORT C PBE CLR
Bits I2 Start
IOR bit 5 (ESB)
TMZ
TIMER1 ETI
OSC32kHz OSCEOC
EOSCI
30/72
29
ST62T45B/E45B
The WAIT and STOP modes have been imple- of the processor core prior to the WAIT instruction,
mented in the ST62xx family of MCUs in order to but also on the kind of interrupt request which is
reduce the product’s electrical consumption dur- generated. This is described in the following para-
ing idle periods. These two power saving modes graphs. The processor core does not generate a
are described in the following paragraphs. delay following the occurrence of the interrupt, be-
3.5.1 WAIT Mode cause the oscillator clock is still available and no
stabilisation period is necessary.
The MCU goes into WAIT mode as soon as the 3.5.2 STOP Mode
WAIT instruction is executed. The microcontroller
can be considered as being in a “software frozen” If the Watchdog is disabled, STOP mode is avail-
state where the core stops processing the pro- able. When in STOP mode, the MCU is placed in
gram instructions, the RAM contents and periph- the lowest power consumption mode. In this oper-
eral registers are preserved as long as the power ating mode, the microcontroller can be considered
supply voltage is higher than the RAM retention as being “frozen”, no instruction is executed, the
voltage. In this mode the peripherals are still ac- oscillator is stopped, the RAM contents and pe-
tive. ripheral registers are preserved as long as the
power supply voltage is higher than the RAM re-
WAIT mode can be used when the user wants to tention voltage, and the ST62xx core waits for the
reduce the MCU power consumption during idle occurrence of an external interrupt request or a
periods, while not losing track of time or the capa- Reset to exit the STOP state.
bility of monitoring external events. The active os-
cillator is not stopped in order to provide a clock If the STOP state is exited due to a Reset (by ac-
signal to the peripherals. Timer counting may be tivating the external pin) the MCU will enter a nor-
enabled as well as the Timer interrupt, before en- mal reset procedure. Behaviour in response to in-
tering the WAIT mode: this allows the WAIT mode terrupts depends on the state of the processor
to be exited when a Timer interrupt occurs. The core prior to issuing the STOP instruction, and
same applies to other peripherals which use the also on the kind of interrupt request that is gener-
clock signal. ated.
If the WAIT mode is exited due to a Reset (either This case will be described in the following para-
by activating the external pin or generated by the graphs. The processor core generates a delay af-
Watchdog), the MCU enters a normal reset proce- ter occurrence of the interrupt request, in order to
dure. If an interrupt is generated during WAIT wait for complete stabilisation of the oscillator, be-
mode, the MCU’s behaviour depends on the state fore executing the first instruction.
31/72
30
ST62T45B/E45B
32/72
31
ST62T45B/E45B
4 ON-CHIP PERIPHERALS
RESET VDD
SIN CONTROLS
DATA VDD
DIRECTION
REGISTER
INPUT/OUTPUT
DATA
REGISTER
SHIF T
REGISTER
OPTION
REGISTER
SOUT
TO INTER RUPT
TO ADC
VA00413
33/72
32
ST62T45B/E45B
34/72
33
ST62T45B/E45B
Interrupt Input
pull-up 010* 011 Analog
Input
pull-up (Reset 000 001 Input
state)
35/72
34
ST62T45B/E45B
PA5-PA7
Input PB0-PB7
PC0-PC7 Data in
Interrupt
Input
PA5-PA7
with pull up
PB0-PB7
(Reset state except for Data in
PC0-PC7
PC0-PC7)
Interrupt
Input PA5-PA7
with pull up PB0-PB7
Data in
with interrupt PC0-PC7
Interrupt
PA5-PA7
Analog Input
PB0-PB3 ADC
Data out
36/72
35
ST62T45B/E45B
PID PP/OD
OPR
1 DR
PB7/Sout MUX
0 OUT
PID
IN
PB6/Sin DR
SYNCHRONOUS
SERIAL I/O
PID
CLOCK
PB5/Scl DR
VR01661F
37/72
36
ST62T45B/E45B
Px7 Px6 Px5 Px4 Px3 Px2 Px1 Px0 Px7 Px6 Px5 Px4 Px3 Px2 Px1 Px0
Bit 7-0 = Px7 - Px0: Port A, B, C Option Register Bit 7-0 = Px7 - Px0: Port A, B, C Data Registers
bits. bits.
4.1.6 I/O Port Data Direction Registers
DDRA/B/C (C4h PA, C5h PB, C6h PC)
Read/Write
7 0
38/72
37
ST62T45B/E45B
7-BIT PRESCALER
0 1 2 3 4 5 6 7 PS0
8-1 MULTIPLEXER PS1
PS2
8-BIT COUNTER
VA00186
39/72
38
ST62T45B/E45B
DATABUS 8
8
8 8
6 b7 b6 b5 b4 b3 b2 b1 b0
5 8-BIT
COUNTER STATUS/CONTROL
4 SELECT
PSC REGISTER
3 1 OF 8 TMZ ETI TOUT DOUT PSI PS2 PS1 PS0
2
1
0
TIMER
INTERRUPT
LINE
SYNCHRONIZATION LATCH
LOGIC
VA00009
DATA BUS
8 8 8
6 8-BIT b7 b6 b5 b4 b3 b2 b1 b0
5
4 STATUS/CONTROL
PSC 3 SELECT REGISTER
2 1 OF 8
fINT 12 1
TMZ ETI D5 D4 PSI PS2 PS1 PS0
0
3
/
INTERRUPT
LINE
VR02070A
.
40/72
39
ST62T45B/E45B
41/72
40
ST62T45B/E45B
42/72
41
ST62T45B/E45B
43/72
42
ST62T45B/E45B
44/72
43
ST62T45B/E45B
45/72
44
ST62T45B/E45B
RESET
DIN RESET Q4
CP 4-Bit Counter
Q4
(Q4=High after Clock8)
Sin I/O Port
Data Reg
Direction Interrupt
Reset
8-Bit Data Load
CP Shift Register
DIN DOUT
Output
OPR Reg. 8-Bit Tristate Data I/O Enable
Sout I/O Port 0
MUX
VR01504
46/72
45
ST62T45B/E45B
47/72
46
ST62T45B/E45B
1/3 2/3
BACKPLAN ES SEGMENTS
VLCD VLCD VLCD
CONTROLLER LCD
RAM
32kHz CONTROL
REGISTER
fint
CLOCK
OSC 32kHz SELECTION
(When available)
DATA BUS
VR02099
48/72
47
ST62T45B/E45B
The 1/3 VLCD and 2/3 VLCD values used in 1/1, Note: For display voltages VLCD < 4.5V the resis-
1/3 and 1/4 multiplexing ratio modes are internally tivity of the divider may be too high for some appli-
generated and issued on external pins, while 1/2 cations (especially using 1/3 or 1/4 duty display
VLCD value used in 1/2 mode is obtained by ex- mode). In that case an external resistive divider
must be used to achieve the desired resistivity.
49/72
48
ST62T45B/E45B
50/72
49
ST62T45B/E45B
Table 20. Oscillator Source Selection Table 21. 32kHz Division Factor for Base
Frequency Selection
HF2 HF1 HF0 Division Factor
0 0 0 Clock disabled: Display off LF2 LF1 LF0 32kHz Division Factor
0 0 1 Auxiliary 32kHz oscillator 0 0 0 512
0 1 0 Reserved 0 0 1 386
1 1 1 Reserved 0 1 0 256
Others Division from MCU fINT 0 1 1 192
1 0 0 128
4.5.5 LCD Mode Control Register (LCDCR)
1 0 1 96
Address: DCh - Read/Write 1 1 0 64
Bits 7-6 = DS0, DS1. Multiplexing ratio select bits. 1 1 1 Reserved
These bits select the number of common back-
planes used by the LCD control.
51/72
50
ST62T45B/E45B
5 SOFTWARE
The ST6 software has been designed to fully use bits of the opcode with the byte following the op-
the hardware in the most efficient way possible code. The instructions (JP, CALL) which use the
while keeping byte usage to a minimum; in short, extended addressing mode are able to branch to
to provide byte efficient programming capability. any address of the 4K bytes Program space.
The ST6 core has the ability to set or clear any
register or RAM location bit of the Data space with An extended addressing mode instruction is two-
a single instruction. Furthermore, the program byte long.
may branch to a selected address depending on
Program Counter Relative. The relative ad-
the status of any bit of the Data space. The carry
dressing mode is only used in conditional branch
bit is stored with the value of the bit when the SET
instructions. The instruction is used to perform a
or RES instruction is processed.
test and, if the condition is true, a branch with a
span of -15 to +16 locations around the address of
5.2 ADDRESSING MODES the relative instruction. If the condition is not true,
the instruction which follows the relative instruc-
The ST6 core offers nine addressing modes, tion is executed. The relative addressing mode in-
which are described in the following paragraphs. struction is one-byte long. The opcode is obtained
Three different address spaces are available: Pro- in adding the three most significant bits which
gram space, Data space, and Stack space. Pro- characterize the kind of the test, one bit which de-
gram space contains the instructions which are to termines whether the branch is a forward (when it
be executed, plus the data for immediate mode in- is 0) or backward (when it is 1) branch and the four
structions. Data space contains the Accumulator, less significant bits which give the span of the
the X,Y,V and W registers, peripheral and In- branch (0h to Fh) which must be added or sub-
put/Output registers, the RAM locations and Data tracted to the address of the relative instruction to
ROM locations (for storage of tables and con- obtain the address of the branch.
stants). Stack space contains six 12-bit RAM cells
used to stack the return addresses for subroutines Bit Direct. In the bit direct addressing mode, the
and interrupts. bit to be set or cleared is part of the opcode, and
the byte following the opcode points to the ad-
Immediate. In the immediate addressing mode, dress of the byte in which the specified bit must be
the operand of the instruction follows the opcode set or cleared. Thus, any bit in the 256 locations of
location. As the operand is a ROM byte, the imme- Data space memory can be set or cleared.
diate addressing mode is used to access con-
stants which do not change during program exe- Bit Test & Branch. The bit test and branch ad-
cution (e.g., a constant used to initialize a loop dressing mode is a combination of direct address-
counter). ing and relative addressing. The bit test and
branch instruction is three-byte long. The bit iden-
Direct. In the direct addressing mode, the address tification and the tested condition are included in
of the byte which is processed by the instruction is the opcode byte. The address of the byte to be
stored in the location which follows the opcode. tested follows immediately the opcode in the Pro-
Direct addressing allows the user to directly ad- gram space. The third byte is the jump displace-
dress the 256 bytes in Data Space memory with a ment, which is in the range of -127 to +128. This
single two-byte instruction. displacement can be determined using a label,
which is converted by the assembler.
Short Direct. The core can address the four RAM
registers X,Y,V,W (locations 80h, 81h, 82h, 83h) Indirect. In the indirect addressing mode, the byte
in the short-direct addressing mode. In this case, processed by the register-indirect instruction is at
the instruction is only one byte and the selection of the address pointed by the content of one of the
the location to be processed is contained in the indirect registers, X or Y (80h,81h). The indirect
opcode. Short direct addressing is a subset of the register is selected by the bit 4 of the opcode. A
direct addressing mode. (Note that 80h and 81h register indirect instruction is one byte long.
are also indirect registers).
Inherent. In the inherent addressing mode, all the
Extended. In the extended addressing mode, the information necessary to execute the instruction is
12-bit address needed to define the instruction is contained in the opcode. These instructions are
obtained by concatenating the four less significant one byte long.
52/72
51
ST62T45B/E45B
The ST6 core offers a set of 40 basic instructions Load & Store. These instructions use one, two or
which, when combined with nine addressing three bytes in relation with the addressing mode.
modes, yield 244 usable opcodes. They can be di- One operand is the Accumulator for LOAD and the
vided into six different types: load/store, arithme- other operand is obtained from data memory us-
tic/logic, conditional branch, control instructions, ing one of the addressing modes.
jump/call, and bit manipulation. The following par-
agraphs describe the different types. For Load Immediate one operand can be any of
the 256 data space bytes while the other is always
All the instructions belonging to a given type are immediate data.
presented in individual tables.
Table 22. Load & Store Instructions
Flags
Instruction Addressing Mode Bytes Cycles
Z C
LD A, X Short Direct 1 4 ∆ *
LD A, Y Short Direct 1 4 ∆ *
LD A, V Short Direct 1 4 ∆ *
LD A, W Short Direct 1 4 ∆ *
LD X, A Short Direct 1 4 ∆ *
LD Y, A Short Direct 1 4 ∆ *
LD V, A Short Direct 1 4 ∆ *
LD W, A Short Direct 1 4 ∆ *
LD A, rr Direct 2 4 ∆ *
LD rr, A Direct 2 4 ∆ *
LD A, (X) Indirect 1 4 ∆ *
LD A, (Y) Indirect 1 4 ∆ *
LD (X), A Indirect 1 4 ∆ *
LD (Y), A Indirect 1 4 ∆ *
LDI A, #N Immediate 2 4 ∆ *
LDI rr, #N Immediate 3 4 * *
Notes:
X,Y. Indirect Register Pointers, V & W Short Direct Registers
# . Immediate data (stored in ROM memory)
rr. Data space register
∆. Affected
* . Not Affected
53/72
52
ST62T45B/E45B
54/72
53
ST62T45B/E45B
55/72
54
ST62T45B/E45B
Opcode Map Summary.The following table contains an opcode map for the instructions used by the ST6
LOW LOW
0 1 2 3 4 5 6 7
0000 0001 0010 0011 0100 0101 0110 0111
HI HI
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 LD
0 0
0000 e abc e b0,rr,ee e # e a,(x) 0000
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 INC 2 JRC 4 LDI
1 e abc e b0,rr,ee e x e a,nn 1
0001 0001
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc 2 imm
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 CP
2 e abc e b4,rr,ee e # e a,(x) 2
0010 0010
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 LD 2 JRC 4 CPI
3 3
0011 e abc e b4,rr,ee e a,x e a,nn 0011
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc 2 imm
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 ADD
4 4
0100 e abc e b2,rr,ee e # e a,(x) 0100
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 INC 2 JRC 4 ADDI
5 5
0101 e abc e b2,rr,ee e y e a,nn 0101
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc 2 imm
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 INC
6 6
0110 e abc e b6,rr,ee e # e (x) 0110
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 LD 2 JRC
7 7
0111 e abc e b6,rr,ee e a,y e # 0111
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 LD
8 8
1000 e abc e b1,rr,ee e # e (x),a 1000
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 RNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 INC 2 JRC
9 9
1001 e abc e b1,rr,ee e v e # 1001
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 AND
A A
1010 e abc e b5,rr,ee e # e a,(x) 1010
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 LD 2 JRC 4 ANDI
B B
1011 e abc e b5,rr,ee e a,v e a,nn 1011
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc 2 imm
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 SUB
C C
1100 e abc e b3,rr,ee e # e a,(x) 1100
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 INC 2 JRC 4 SUBI
D D
1101 e abc e b3,rr,ee e w e a,nn 1101
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc 2 imm
2 JRNZ 4 CALL 2 JRNC 5 JRR 2 JRZ 2 JRC 4 DEC
E E
1110 e abc e b7,rr,ee e # e (x) 1110
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 prc 1 ind
2 JRNZ 4 CALL 2 JRNC 5 JRS 2 JRZ 4 LD 2 JRC
F F
1111 e abc e b7,rr,ee e a,w e # 1111
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc
56/72
55
ST62T45B/E45B
57/72
56
ST62T45B/E45B
6 ELECTRICAL CHARACTERISTICS
This product contains devices to protect the inputs Power Considerations.The average chip-junc-
against damage due to high static voltages, how- tion temperature, Tj, in Celsius can be obtained
ever it is advisable to take normal precaution to from:
avoid application of any voltage higher than the Tj= TA + PD x RthJA
specified maximum rated voltages.
Where: TA = Ambient Temperature.
For proper operation it is recommended that VI RthJA = Package thermal resistance
and VO be higher than VSS and lower than VDD. (junction-to ambient).
Reliability is enhanced if unused inputs are con-
nected to an appropriate logic voltage level (VDD PD = Pint + Pport.
or VSS). Pint = IDD x VDD (chip internal power).
Pport = Port power dissipation (deter-
mined by the user).
Notes:
- Stresses above those listed as ”absolute maximum ratings” may cause permanent damage to the device. This is a stress rating only and
functional operation of the device at these conditions is not implied. Exposure to maximum rating conditions for extended period s may
affect device reliability.
- (1) Within these limits, clamping diodes are guarantee to be not conductive. Voltages outside these limits are authorised as long as injection
current is kept within the specification.
58/72
57
ST62T45B/E45B
1
2.5 3 3.5 4 4.5 5 5.5 6
The shaded area is outside the recommended operating range; device functionality is not guaranteed under these conditions.
59/72
58
ST62T45B/E45B
Notes:
(1) Hysteresis voltage between switching levels
(2) All peripherals running
(3) All peripherals in stand-by
60/72
59
ST62T45B/E45B
Notes:
1. Period for which VDD has to be connected at 0V to allow internal Reset function at next power-up.
Notes:
1. Noise at AVDD, AVSS <10mV
2. Wit h oscillator frequencies less than 1MHz, the A/D Converter accuracy is decreased. .
61/72
60
ST62T45B/E45B
Notes:
1. The DC offset refers to all segment and common outputs. It is the difference between the measured voltage value and nominal valu e for
every voltage level.
2. An external resistor network is required when VLCD is lower then 4.5V.
62/72
61
ST62T45B/E45B
7 GENERAL INFORMATION
mm inches
Dim
Min Typ Max Min Typ Max
A 3.40 0.134
A1 0.25 0.010
A2 2.55 2.80 3.05 0.100 0.110 0.120
B 0.35 0.50 0.014 0.020
C 0.13 0.23 0.005 0.009
D 16.95 17.20 17.45 0.667 0.677 0.687
D1 13.90 14.00 14.10 0.547 0.551 0.555
D3 12.00 0.472
E 16.95 17.20 17.45 0.667 0.677 0.687
E1 13.90 14.00 14.10 0.547 0.551 0.555
E3 12.00 0.472
e 1.00 0.039
K 0° 7° 0° 7°
L 0.65 0.80 0.95 0.026 0.031 0.037
L1 1.60 0.063
PQFP52 M
Number of Pins
N 52
mm inches
Dim
Min Typ Max Min Typ Max
A 3.27 0.129
A1 0.50 0.020
B 0.35 0.40 0.50 0.014 0.016 0.020
C 0.13 0.15 0.23 0.005 0.006 0.009
D 16.65 17.20 17.75 0.656 0.677 0.699
D1 13.57 13.97 14.37 0.566
D2 13.06 13.46 13.86 0.514 0.530 0.546
D3 12.00 0.472
e 1.00 0.039
G 12.70 0.500
G2 0.96 0.038
L 0.35 0.80 0.014 0.031
Ø 8.31 0.327
Number of Pins
CQFP052W N 52
63/72
62
ST62T45B/E45B
64/72
63
R ST62P45B
8-BIT FASTROM MCU WITH LCD DRIVER,
EEPROM AND A/D CONVERTER
Rev. 2.3
64
ST62P45B
1 GENERAL DESCRIPTION
1.1 INTRODUCTION 1.2.2 Listing Generation and Verification
The ST62P45B is the Factory Advanced Service When SGS-THOMSON receives the user’s ROM
Technique ROM (FASTROM) versions of contents, a computer listing is generated from it.
ST62T45B OTP devices. This listing refers exactly to the ROM contents and
It offers the same functionality as OTP devices, options which will be used to produce the speci-
selecting as FASTROM options the options de- fied MCU. The listing is then returned to the cus-
fined in the programmable option byte of the OTP tomer who must thoroughly check, complete, sign
version. and return it to SGS-THOMSON. The signed list-
ing forms a part of the contractual agreement for
1.2 ORDERING INFORMATION the production of the specific customer MCU.
The following section deals with the procedure for The SGS-THOMSON Sales Organization will be
transfer of customer codes to SGS-THOMSON. pleased to provide detailed information on con-
tractual points.
1.2.1 Transfer of Customer Code
Table 29. ROM Memory Map for ST62P45B
Customer code is made up of the ROM contents
and the list of the selected FASTROM options. Device Address Description
The ROM contents are to be sent on diskette, or
by electronic means, with the hexadecimal file 0000h-007Fh Reserved
0080h-0F9h User ROM
generated by the development tool. All unused 0FA0h-0FEFh Reserved
bytes must be set to FFh. 0FF0h-0FF7h Interrupt Vectors
0FF8h-0FFBh Reserved
The selected options are communicated to SGS- 0FFCh-0FFDh NMI Vector
THOMSON using the correctly filled OPTION 0FFEh-0FFFh Reset Vector
LIST appended.
66/72
65
ST62P45B
Customer . . .. . . .. . .. ... .. . . .. . .. ..
Address . . .. . . .. . .. ... .. . . .. . .. ..
.........................
Contact . . .. . . .. . .. ... .. . . .. . .. ..
Phone No . . .. . . .. . .. ... .. . . .. . .. ..
Reference . . .. . . .. . .. ... .. . . .. . .. ..
Device: [ ] ST62P45B
Package: [ ] Plastic Quad Flat Package (Tape & Reel)
Temperature Range: [ ] 0°C to + 70°C [ ] - 40°C to + 85°C
Watchdog Selection: [ ] Software Activation
[ ] Hardware Activation
NMI Pull-Up Selection: [ ] Yes [ ] No
TIMER Pull-Up Selection: [ ] Yes [ ] No
Comments :
Number of segments and backplanes used:
Supply Operating Range in the application:
Oscillator Fequency in the application:
Notes . . .. . . .. . .. ... .. . . .. . .. ..
Signature . . .. . . .. . .. ... .. . . .. . .. ..
Date . . .. . . .. . .. ... .. . . .. . .. ..
67/72
66
ST62P45B
Notes:
68/72
67
R ST6245B
8-BIT ROM MCU WITH LCD DRIVER,
EEPROM AND A/D CONVERTER
Rev. 2.3
1
ST6245B
1 GENERAL DESCRIPTION
1.1 INTRODUCTION 1.2 ROM READOUT PROTECTION
The ST6245B is mask programmed ROM version If the ROM READOUT PROTECTION option is
of ST62T45B OTP devices. selected, a protection fuse can be blown to pre-
It offers the same functionality as OTP devices, vent any access to the program memory content.
selecting as ROM options the options defined in In case the user wants to blow this fuse, high volt-
the programmable option byte of the OTP version. age must be applied on the TEST pin.
Figure 1. Programming wave form
Figure 2. Programming Circuit
100 s ma x
15 5V 47 m F
14V typ
10
100nF
5
t VS S
TEST VDD
15 0 s typ
P ROTE CT
10 0mA
ma x TE S T 14V
100nF
ZP D15
15V
4mA typ
t
VR02003
VR02001
70/72
1
ST6245B
Customer . . .. . . .. . .. ... .. . . .. . .. ..
Address . . .. . . .. . .. ... .. . . .. . .. ..
.........................
Contact . . .. . . .. . .. ... .. . . .. . .. ..
Phone No . . .. . . .. . .. ... .. . . .. . .. ..
Reference . . .. . . .. . .. ... .. . . .. . .. ..
Device: [ ] ST6245B
Package: [ ] Plastic Quad Flat Package (Tape & Reel)
Temperature Range: [ ] 0°C to + 70°C [ ] - 40°C to + 85°C
Special Marking: [ ] No [ ] Yes ”_ _ _ _ _ _ _ _ _ _ _ ”
Authorized characters are letters, digits, ’.’, ’-’, ’/’ and spaces only.
Maximum character count: PQFP52: 10
Comments :
Number of segments and backplanes used:
Supply Operating Range in the application:
Oscillator Fequency in the application:
Notes . . .. . . .. . .. ... .. . . .. . .. ..
Signature . . .. . . .. . .. ... .. . . .. . .. ..
Date . . .. . . .. . .. ... .. . . .. . .. ..
71/72
1
ST6245B
The following section deals with the procedure for ly check, complete, sign and return it to
transfer of customer codes to SGS-THOMSON. SGS-THOMSON. The signed listing forms a part
1.3.1 Transfer of Customer Code of the contractual agreement for the creation of
the specific customer mask.
Customer code is made up of the ROM contents
and the list of the selected mask options. The The SGS-THOMSON Sales Organization will be
ROM contents are to be sent on diskette, or by pleased to provide detailed information on con-
electronic means, with the hexadecimal file gener- tractual points.
ated by the development tool. All unused bytes
must be set to FFh.
Table 1. ROM Memory Map for ST6245B
The selected mask options are communicated to
SGS-THOMSON using the correctly filled OP- Device Address Description
TION LIST appended.
0000h-007Fh Reserved
1.3.2 Listing Generation and Verification 0080h-0F9h User ROM
0FA0h-0FEFh Reserved
When SGS-THOMSON receives the user’s ROM 0FF0h-0FF7h Interrupt Vectors
contents, a computer listing is generated from it. 0FF8h-0FFBh Reserved
This listing refers exactly to the mask which will be 0FFCh-0FFDh NMI Vector
used to produce the specified MCU. The listing is 0FFEh-0FFFh Reset Vector
then returned to the customer who must thorough-
Information furnished is believed to be accurate and reliable. However, SGS-THOMSO N Microelectronics 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 SGS-TH OMSON Microelectronics. Specifications
mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously
supplied. SGS-THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems
without the express written approval of SGS-THO MSON Microelectronics.
1998 SGS-THOMSON Microelectronics - All rights reserved.
Printed in France by Imprimerie AGL
Purchase of I2 C Components by SGS-TH OMSON Microelectronics conveys a license under the Philips I2 C Patent. Rights to use these
components in an I2 C system is granted provided that the system conforms to the I2 C Standard Specification as defined by Philips.
SGS-THOMSO N Microelectronics Group of Companies
Australia - Brazil - Canada - China - France - Germany - Italy - Japan - Korea - Malaysia - Malta - Morocco - The Netherlands -
Singapore Spain - Sweden - Switzerland - Taiwan - Thailand - United Kingdom - U.S.A.
72/72