ST62T53C/T60C/T63C ST62E60C: 8-Bit Otp/Eprom Mcus With A/D Converter, Safe Reset, Auto-Reload Timer, Eeprom and Spi
ST62T53C/T60C/T63C ST62E60C: 8-Bit Otp/Eprom Mcus With A/D Converter, Safe Reset, Auto-Reload Timer, Eeprom and Spi
ST62E60C
8-BIT OTP/EPROM MCUs WITH A/D CONVERTER,
SAFE RESET, AUTO-RELOAD TIMER, EEPROM AND SPI
Rev. 2.8
2/84
Table of Contents Document
Page
4 ON-CHIP PERIPHERALS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1 I/O PORTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.1.1 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.1.2 Safe I/O State Switching Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.1.3 AR Timer Alternate function Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.1.4 SPI Alternate function Option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
4.2 TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
4.2.1 Timer Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.2.2 Timer Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.2.3 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4.2.4 Timer Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
4.3 AUTO-RELOAD TIMER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.3.1 AR Timer Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.3.2 Timer Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.3.3 AR Timer Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.4 A/D CONVERTER (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.4.1 Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.5 SERIAL PERIPHERAL INTERFACE (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.5.1 SPI Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.6 SPI TIMING DIAGRAMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
5 SOFTWARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.1 ST6 ARCHITECTURE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.2 ADDRESSING MODES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
5.3 INSTRUCTION SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
6.1 ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
6.2 RECOMMENDED OPERATING CONDITIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
6.3 DC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
6.4 AC ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
6.5 A/D CONVERTER CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.6 TIMER CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.7 SPI CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
6.8 ARTIMER ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7 GENERAL INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.1 PACKAGE MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.2 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
3/84
Table of Contents Document
Page
ST62P53C/P60C/P63C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
1.2 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
1.2.1 Transfer of Customer Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
1.2.2 Listing Generation and Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
ST6253C/60B/63B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
1.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
1.2 ROM READOUT PROTECTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
1.3 ORDERING INFORMATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
1.3.1 Transfer of Customer Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
1.3.2 Listing Generation and Verification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
2 SUMMARY OF CHANGES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4/84
ST62T53C/T60C/T63C ST62E60C
1 GENERAL DESCRIPTION
1.1 INTRODUCTION
The ST62T53C, ST62T60C, ST62T63C and fined in the programmable option byte of the OTP/
ST62E60C devices are low cost members of the EPROM versions.
ST62xx 8-bit HCMOS family of microcontrollers,
which is targeted at low to medium complexity ap- OTP devices offer all the advantages of user pro-
plications. All ST62xx devices are based on a grammability at low cost, which make them the
building block approach: a common core is sur- ideal choice in a wide range of applications where
rounded by a number of on-chip peripherals. frequent code changes, multiple code versions or
last minute programmability are required.
The ST62E60C is the erasable EPROM version of
the ST62T60C device, which may be used to em- These compact low-cost devices feature a Timer
ulate the ST62T53C, ST62T60C and ST62T63C comprising an 8-bit counter and a 7-bit program-
devices, as well as the respective ST6253C, mable prescaler, an 8-bit Auto-Reload Timer,
ST6260B and ST6263B ROM devices. EEPROM data capability (except ST62T53C), a
serial port communication interface, an 8-bit A/D
OTP and EPROM devices are functionally identi- Converter with 7 analog inputs and a Digital
cal. The ROM based versions offer the same func- Watchdog timer, making them well suited for a
tionality selecting as ROM options the options de- wide range of automotive, appliance and industrial
applications.
Figure 1. Block Diagram
STACK LEVEL 1
STACK LEVEL 2 DIGITAL
STACK LEVEL 3 8 BIT CORE WATCHDOG
STACK LEVEL 4
STACK LEVEL 5
STACK LEVEL 6
5/84
ST62T53C/T60C/T63C ST62E60C
6/84
ST62T53C/T60C/T63C ST62E60C
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
7/84
ST62T53C/T60C/T63C ST62E60C
RESERVED*
087Fh
USER 0880h
PROGRAM MEMORY
(OTP/EPROM)
3872 BYTES
USER
PROGRAM MEMORY
(OTP)
1824 BYTES
0F9Fh
0F9Fh 0FA0h
0FA0h 0FEFh
RESERVED*
0FEFh RESERVED*
0FF0h
0FF0h 0FF7h INTERRUPT VECTORS
0FF7h INTERRUPT VECTORS
0FF8h
0FF8h RESERVED
RESERVED 0FFBh
0FFBh 0FFCh
0FFCh NMI VECTOR
NMI VECTOR 0FFDh
0FFDh 0FFEh
0FFEh USER RESET VECTOR
USER RESET VECTOR 0FFFh
0FFFh
(*) Reserved areas should be filled with 0FFh (*) Reserved areas should be filled with 0FFh
8/84
ST62T53C/T60C/T63C ST62E60C
9/84
ST62T53C/T60C/T63C ST62E60C
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
10/84
ST62T53C/T60C/T63C ST62E60C
11/84
ST62T53C/T60C/T63C ST62E60C
Note: The EEPROM is disabled as soon as STOP instruction is executed in order to achieve the lowest
power-consumption.
12/84
ST62T53C/T60C/T63C ST62E60C
13/84
ST62T53C/T60C/T63C ST62E60C
14/84
ST62T53C/T60C/T63C ST62E60C
15/84
ST62T53C/T60C/T63C ST62E60C
INTERRUPTS
CONTROLLER
DATA SPACE
CONTROL
FLAG SIGNALS DATA
OPCODE VALUES ADDRESS/READ LINE
2 RAM/EEPROM
PROGRAM
DATA
ROM/EPROM ADDRESS 256
DECODER ROM/EPROM
A-DATA B-DATA
DEDICATIONS
ACCUMULATOR
Program Counter
12 and FLAGS
6 LAYER STACK ALU
RESULTS TO DATA SPACE (WRITE LINE)
VR01811
16/84
ST62T53C/T60C/T63C ST62E60C
17/84
ST62T53C/T60C/T63C ST62E60C
18/84
ST62T53C/T60C/T63C ST62E60C
19/84
ST62T53C/T60C/T63C ST62E60C
(1)
(2)
(3)
(4)
Main
Oscillator
Emergency
Oscillator
Internal
Frequency
VR001933
20/84
ST62T53C/T60C/T63C ST62E60C
21/84
ST62T53C/T60C/T63C ST62E60C
POR
: 13 Core
OSG
TIMER 1
M OSCILLATOR
MAIN fINT Watchdog
OSCILLATOR U DIVIDER : 12
X RS0,RS1
LFAO
:1
Figure 13. Maximum Operating Frequency (fMAX) versus Supply Voltage (V DD)
7 4
FUNCTIONALITY IS NOT
3
6
fOSG
GUARANTEED
IN THIS AREA
5
fOSG Min (at 85°C)
4 2
3
fOSG Min (at 125°C)
2
1
1
2.5 3 3.6 4 4.5 5 5.5 6
Notes:
1. In this area, operation is guaranteed at the area is guaranteed at the quartz crystal frequency.
quartz crystal frequency. When the OSG is enabled, access to this area is
2. When the OSG is disabled, operation in this prevented. The internal frequency is kept a fOSG.
area is guaranteed at the crystal frequency. When 4. When the OSG is disabled, operation in this
the OSG is enabled, operation in this area is guar- area is not guaranteed
anteed at a frequency of at least fOSG Min. When the OSG is enabled, access to this area is
3. When the OSG is disabled, operation in this prevented. The internal frequency is kept at fOSG.
22/84
ST62T53C/T60C/T63C ST62E60C
3.2 RESETS
The MCU can be reset in four ways: is executed immediately following the internal de-
– by the external Reset input being pulled low; lay.
– by Power-on Reset; To ensure correct start-up, the user should take
care that the VDD Supply is stabilized at a suffi-
– by the digital Watchdog peripheral timing out. cient level for the chosen frequency (see recom-
– by Low Voltage Detection (LVD) mended operation) before the reset signal is re-
3.2.1 RESET Input leased. In addition, supply rising must start from
0V.
The RESET pin may be connected to a device of
the application board in order to reset the MCU if As a consequence, the POR does not allow to su-
required. The RESET pin may be pulled low in pervise static, slowly rising, or falling, or noisy
RUN, WAIT or STOP mode. This input can be (presenting oscillation) VDD supplies.
used to reset the MCU internal state and ensure a An external RC network connected to the RESET
correct start-up procedure. The pin is active low pin, or the LVD reset can be used instead to get
and features a Schmitt trigger input. The internal the best performances.
Reset signal is generated by adding a delay to the
external signal. Therefore even short pulses on Figure 14. 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
NMI MODE FLAGS
RESET pin then goes high, the initialization se-
quence is executed following expiry of the internal
delay period.
If RESET pin activation occurs in the STOP mode, PUT FFEH
ON ADDRESS BUS
the oscillator starts up and all Inputs and Outputs
are configured as inputs with pull-up resistors.
When the level of the RESET pin then goes high,
the initialization sequence is executed following
expiry of the internal delay period. YES
IS RESET STILL
3.2.2 Power-on Reset PRESENT?
23/84
ST62T53C/T60C/T63C ST62E60C
RESETS (Cont’d)
3.2.3 Watchdog Reset ues, allowing hysteresis effect. Reference value in
The MCU provides a Watchdog timer function in case of voltage drop has been set lower than the
order to ensure graceful recovery from software reference value for power-on in order to avoid any
upsets. If the Watchdog register is not refreshed parasitic Reset when MCU start's running and
before an end-of-count condition is reached, the sinking current on the supply.
internal reset will be activated. This, amongst oth- As long as the supply voltage is below the refer-
er things, resets the watchdog counter. ence value, there is a internal and static RESET
command. The MCU can start only when the sup-
The MCU restarts just as though the Reset had ply voltage rises over the reference value. There-
been generated by the RESET pin, including the fore, only two operating mode exist for the MCU:
built-in stabilisation delay period. RESET active below the voltage reference, and
3.2.4 LVD Reset running mode over the voltage reference as
shown on the Figure 15, that represents a power-
The on-chip Low Voltage Detector, selectable as up, power-down sequence.
user option, features static Reset when supply
voltage is below a reference value. Thanks to this Note: When the RESET state is controlled by one
feature, external reset circuit can be removed of the internal RESET sources (Low Voltage De-
while keeping the application safety. This SAFE tector, Watchdog, Power on Reset), the RESET
RESET is effective as well in Power-on phase as pin is tied to low logic level.
in power supply drop with different reference val-
Figure 15. LVD Reset on Power-on and Power-down (Brown-out)
VDD
VUp
Vdn
RESET
RESET
time
VR02106A
24/84
ST62T53C/T60C/T63C ST62E60C
RESETS (Cont’d)
3.2.6 MCU Initialization Sequence Figure 16. Reset and Interrupt Processing
When a reset occurs the stack is reset, the PC is
RESET
loaded with the address of the Reset Vector (locat-
ed in program ROM starting at address 0FFEh). A
jump to the beginning of the user program must be
coded at this address. Following a Reset, the In- JP JP:2 BYTES/4 CYCLES
terrupt flag is automatically set, so that the CPU is RESET
in Non Maskable Interrupt mode; this prevents the VECTOR
VDD
ST6
fOSC CK INTERNAL
RESET
RPU COUNTER
AND. Wired
RESD1)
RESET RESET
RESET
POWER ON RESET
WATCHDOG RESET
LVD RESET
VR02107A
25/84
ST62T53C/T60C/T63C ST62E60C
RESETS (Cont’d)
Table 5Register Reset Status
Register Address(es) Status Comment
0DDh
Miscellaneous Register 00h SPI Output not connected to PC3
0E0h to 0E2h
SPI Registers 00h SPI disabled
0E1h
SPI DIV Register 00h SPI disabled
0E2h
SPI MOD Register 00h SPI disabled
0E0h
SPI DSR Register Undefined SPI disabled
26/84
ST62T53C/T60C/T63C ST62E60C
27/84
ST62T53C/T60C/T63C ST62E60C
WATCHDOG COUNTER
RESET
bit must be set to “1”, since it is this bit which gen- D2 T5
erates 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 in Figure 18.
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 peri-
ods ranging from 384 µs to 24.576ms). VR02068A
28/84
ST62T53C/T60C/T63C ST62E60C
29/84
ST62T53C/T60C/T63C ST62E60C
VR02002
RESET
Q 7
RSFF -2 -2 8 -12
S R DB1.7 LOAD SET SET
OSCILLATOR
8 CLOCK
DB0
WRITE
RESET
DATA BUS
VA00010
30/84
ST62T53C/T60C/T63C ST62E60C
3.4 INTERRUPTS
The CPU can manage four Maskable Interrupt ically reset by the core at the beginning of the non-
sources, in addition to a Non Maskable Interrupt maskable interrupt service routine.
source (top priority interrupt). Each source is asso- Interrupt request from source #1 can be config-
ciated with a specific Interrupt Vector which con- ured either as edge or level sensitive by setting ac-
tains a Jump instruction to the associated interrupt cordingly the LES bit of the Interrupt Option Regis-
service routine. These vectors are located in Pro- ter (IOR).
gram space (see Table 7).
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 lev-
is pending, these are processed by the processor el sensitive mode. To be taken into account, the
core according to their priority level: source #1 has low level must be present on the interrupt pin when
the higher priority while source #4 the lower. The the MCU samples the line after instruction execu-
priority of each interrupt source is fixed. tion.
At the end of every instruction, the MCU tests the
Table 7. 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 8. 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
This GEN bit also defines if an interrupt source, in- LES
Falling edge mode on inter-
cluding the Non Maskable Interrupt source, can re- CLEARED
rupt source #1
start 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 automat-
31/84
ST62T53C/T60C/T63C ST62E60C
INTERRUPTS (Cont’d)
3.4.2 Interrupt Procedure MCU
The interrupt procedure is very similar to a call pro- – Automatically the MCU switches back to the nor-
cedure, indeed the user can consider the interrupt mal flag set (or the interrupt flag set) and pops
as an asynchronous call procedure. As this is an the previous PC value from the stack.
asynchronous event, the user cannot know the The interrupt routine usually begins by the identify-
context and the time at which it occurred. As a re- ing 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 21. Interrupt Processing Flow Chart
The following list summarizes the interrupt proce- INSTRUCTION
dure:
MCU
FETCH
– The interrupt is detected. INSTRUCTION
User
– User selected registers are saved within the in- "POP"
THE STACKED PC
terrupt service routine (normally on a software
stack).
– The source of the interrupt is found by polling the NO CHECK IF THERE IS
? AN INTERRUPT REQUEST
interrupt flags (if more than one source is associ- AND INTERRUPT MASK
32/84
ST62T53C/T60C/T63C ST62E60C
INTERRUPTS (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 bit
inputs. This register is write-only and cannot be is set to one, all interrupts are enabled. When this
accessed by single-bit operations. bit is cleared to zero all the interrupts (excluding
Address: 0C8h — Write Only 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 these MCUs are
summarized in the Table 9 with associated mask
Bit 6 = LES: Level/Edge Selection bit. bit to enable/disable the interrupt request.
When this bit is set to one, the interrupt source #1
is level sensitive. When cleared to zero the edge
sensitive mode for interrupt request is selected.
Table 9Interrupt Requests and Mask Bits
Address Interrupt
Peripheral Register Mask bit Masked Interrupt Source
Register vector
GENERAL IOR C8h GEN All Interrupts, excluding NMI
TIMER TSCR1 D4h ETI TMZ: TIMER Overflow Vector 4
A/D CONVERTER ADCR D1h EAI EOC: End of Conversion Vector 4
OVIE OVF: AR TIMER Overflow
AR TIMER ARMC D5h CPIE CPF: Successful compare Vector 3
EIE EF: Active edge on ARTIMin
SPI SPIMOD E2h SPIE SPRUN: End of Transmission Vector 2
Port PAn ORPA-DRPA C0h-C4h ORPAn-DRPAn PAn pin Vector 1
Port PBn ORPB-DRPB C1h-C5h ORPBn-DRPBn PBn pin Vector 1
Port PCn ORPC-DRPC C2h-C6h ORPCn-DRPCn PCn pin Vector 2
33/84
ST62T53C/T60C/T63C ST62E60C
INTERRUPTS (Cont’d)
Figure 22. Interrupt Block Diagram
PBE
V DD
PORT A FF
CLK Q 0
PORT B PBE
CLR
Bits
INT #1 (FF6,7)
I Start MUX
1
RESTART FROM
IOR REG. C8H, bit 6 STOP/WAIT
PORT C FF
PBE CLK Q INT #2 (FF4,5)
Bits
CLR
SPIDIV Register
I Start
SPINT bit 2
IOR REG. C8H, bit 5
SPIE bit
OVF
SPIMOD Register OVIE
CPF INT #3 (FF2,3)
AR TIMER
CPIE
EF
EIE
TMZ
TIMER1 INT #4 (FF0,1)
VDD ETI
EOC
ADC EAI
FF NMI (FFC,D)
NMI CLK Q
CLR
I0 Start
VA0426K
34/84
ST62T53C/T60C/T63C ST62E60C
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 during generated. This is described in the following para-
idle periods. These two power saving modes are graphs. The processor core does not generate a
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 availa-
state where the core stops processing the pro- ble. When in STOP mode, the MCU is placed in
gram instructions, the RAM contents and peripher- the lowest power consumption mode. In this oper-
al 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 acti-
signal to the peripherals. Timer counting may be vating 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.
35/84
ST62T53C/T60C/T63C ST62E60C
36/84
ST62T53C/T60C/T63C ST62E60C
4 ON-CHIP PERIPHERALS
RESET VDD
SIN CONTROLS
DATA VDD
DIRECTION
REGISTER
INPUT/OUTPUT
DATA
REGISTER
SHIFT
REGISTER
OPTION
REGISTER
SOUT
TO INTERRUPT
TO ADC
VA00413
37/84
ST62T53C/T60C/T63C ST62E60C
38/84
ST62T53C/T60C/T63C ST62E60C
Interrupt Input
pull-up 010* 011 Analog
Input
pull-up (Reset 000 001 Input
state)
39/84
ST62T53C/T60C/T63C ST62E60C
PA0-PA3
Input PB0-PB3, PB6-PB7
Data in
PC2-PC4
Interrupt
PA0-PA3
Input
PB0-PB3, PB6-PB7
with pull up Data in
PC2-PC4
Interrupt
Input PA0-PA3
with pull up PB0-PB3, PB6-PB7
Data in
with interrupt PC2-PC4
Interrupt
PA0-PA3
Analog Input
PC2-PC4 ADC
Data out
Open drain output PB0-PB3, PB6-PB7
30mA
Data out
40/84
ST62T53C/T60C/T63C ST62E60C
41/84
ST62T53C/T60C/T63C ST62E60C
VDD
PP/OD
1 OUT
PC3/Sout MUX
0 DR
b0
MISC.
OR REGISTER
IN
PC2/Sin DR
SPI
CLOCK IN
1 CLOCK OUT
PC4/SCK MUX
0 DR
SPCLK
MOD REGISTER
OR
IN
OR
TOUT
TIMER 1
1 OUT
PC1/TIM1 MUX
0 DR
ARTIMin
ARTIMin DR
AR TIMER
OR
PWMOE
PP/OD ARTIMout
1
ARTIMout MUX
0 DR
VR0C1661
42/84
ST62T53C/T60C/T63C ST62E60C
4.2 TIMER
The MCU features an on-chip Timer peripheral, The prescaler input is the internal frequency (fINT)
consisting of an 8-bit counter with a 7-bit program- divided by 12. The prescaler decrements on the
mable prescaler, giving a maximum count of 215. rising edge. Depending on the division factor pro-
Figure 26 shows the Timer Block Diagram. The grammed by PS2, PS1 and PS0 bits in the TSCR
content of the 8-bit counter can be read/written in (see Figure 12), the clock input of the timer/coun-
the Timer/Counter register, TCR, which can be ad- ter register is multiplexed to different sources. For
dressed in Data space as a RAM location at ad- division factor 1, the clock input of the prescaler is
dress 0D3h. The state of the 7-bit prescaler can be also that of timer/counter; for factor 2, bit 0 of the
read in the PSC register at address 0D2h. The prescaler register is connected to the clock input of
control logic device is managed in the TSCR reg- TCR. This bit changes its state at half the frequen-
ister as described in the following paragraphs. cy of the prescaler input clock. For factor 4, bit 1 of
the PSC is connected to the clock input of TCR,
The 8-bit counter is decrement by the output (ris- and so forth. The prescaler initialize bit, PSI, in the
ing edge) coming from the 7-bit prescaler and can TSCR register must be set to allow the prescaler
be loaded and read under program control. When (and hence the counter) to start. If it is cleared, all
it decrements to zero then the TMZ (Timer Zero)bit the prescaler bits are set and the counter is inhib-
in the TSCR is set. If the ETI (Enable Timer Inter- ited from counting. The prescaler can be loaded
rupt) bit in the TSCR is also set, an interrupt re- with any value between 0 and 7Fh, if bit PSI is set.
quest is generated. The Timer interrupt can be The prescaler tap is selected by means of the
used to exit the MCU from WAIT mode. PS2/PS1/PS0 bits in the control register.
Figure 27 illustrates the Timer’s working principle.
Figure 26. Timer Block Diagram
DATA BUS
8 8 8
6 8-BIT b7 b6 b5 b4 b3 b2 b1 b0
5
COUNTER
4 STATUS/CONTROL
PSC SELECT
3 REGISTER
2 1 OF 7
fINT 1 TMZ ETI D5 D4 PSI PS2 PS1 PS0
12
0
3
INTERRUPT
LINE
VR02070A
43/84
ST62T53C/T60C/T63C ST62E60C
TIMER (Cont’d)
4.2.1 Timer Operation zero, the TMZ bit in the TSCR register is set to
The Timer prescaler is clocked by the prescaler one.
clock input (fINT ÷ 12). 4.2.3 Application Notes
The user can select the desired prescaler division TMZ is set when the counter reaches zero; howev-
ratio through the PS2, PS1, PS0 bits. When the er, it may also be set by writing 00h in the TCR
TCR count reaches 0, it sets the TMZ bit in the register or by setting bit 7 of the TSCR register.
TSCR. The TMZ bit can be tested under program The TMZ bit must be cleared by user software
control to perform a timer function whenever it when servicing the timer interrupt to avoid unde-
goes high. sired interrupts when leaving the interrupt service
4.2.2 Timer Interrupt routine. After reset, the 8-bit counter register is
loaded with 0FFh, while the 7-bit prescaler is load-
When the counter register decrements to zero with ed with 07Fh, and the TSCR register is cleared.
the ETI (Enable Timer Interrupt) bit set to one, an This means that the Timer is stopped (PSI=“0”)
interrupt request associated with Interrupt Vector and the timer interrupt is disabled.
#4 is generated. When the counter decrements to
Figure 27. Timer Working Principle
7-BIT PRESCALER
0 1 2 3 4 5 6 7 PS0
8-1 MULTIPLEXER PS1
PS2
8-BIT COUNTER
VA00186
44/84
ST62T53C/T60C/T63C ST62E60C
TIMER (Cont’d)
A write to the TCR register will predominate over PSI=“0” both counter and prescaler are not run-
the 8-bit counter decrement to 00h function, i.e. if a ning.
write and a TCR register decrement to 00h occur Bit 2, 1, 0 = PS2, PS1, PS0: Prescaler Mux. Se-
simultaneously, the write will take precedence, lect. These bits select the division ratio of the pres-
and the TMZ bit is not set until the 8-bit counter caler register.
reaches 00h again. The values of the TCR and the
PSC registers can be read accurately at any time. Table 12. Prescaler Division Factors
PS2 PS1 PS0 Divided by
4.2.4 Timer Registers 0 0 0 1
Timer Status Control Register (TSCR) 0 0 1 2
Address: 0D4h — Read/Write 0 1 0 4
0 1 1 8
7 0
1 0 0 16
TMZ ETI D5 D4 PSI PS2 PS1 PS0 1 0 1 32
1 1 0 64
Bit 7 = TMZ: Timer Zero bit 1 1 1 128
45/84
ST62T53C/T60C/T63C ST62E60C
46/84
ST62T53C/T60C/T63C ST62E60C
DRB7
AR COMPARE
REGISTER
8
PB7/
ARTIMout
CPF
COMPARE R
S
8
PWMOE
8 8
PB6/
ARTIMin
SL0-SL1
AR AR
EF
SYNCHRO RELOAD/CAPTURE LOAD
REGISTER REGISTER
8 8
DATA BUS
VR01660A
47/84
ST62T53C/T60C/T63C ST62E60C
COUNTER
255
COMPARE
VALUE
RELOAD
REGISTER
000
t
PWM OUTPUT
t
VR001852
48/84
ST62T53C/T60C/T63C ST62E60C
49/84
ST62T53C/T60C/T63C ST62E60C
50/84
ST62T53C/T60C/T63C ST62E60C
51/84
ST62T53C/T60C/T63C ST62E60C
52/84
ST62T53C/T60C/T63C ST62E60C
53/84
ST62T53C/T60C/T63C ST62E60C
SCK FILTER
CLOCK
Sin FILTER
Sout
SHIFT
8 REGISTER
DATA BUS
VR001693
54/84
ST62T53C/T60C/T63C ST62E60C
55/84
ST62T53C/T60C/T63C ST62E60C
56/84
ST62T53C/T60C/T63C ST62E60C
Figure 32. CPOL = 0 Clock Polarity Normal, CPHA = 0 Phase Selection Normal
SPRUN
SCK
Sin
Sampling
Sout b7 b6 b5 b4 b3 b2 b1 b0
VR001694
Figure 33. CPOL = 1 Clock Polarity Inverted, CPHA = 0 Phase Selection Normal
SPRUN
SCK
Sin
Sampling
Sout b7 b6 b5 b4 b3 b2 b1 b0
VR0A1694
57/84
ST62T53C/T60C/T63C ST62E60C
Figure 34. CPOL = 0 Clock Polarity Normal, CPHA = 1 Phase Selection Shifted
SPRUN
SCK
Sin
Sampling
Sout b7 b6 b5 b4 b3 b2 b1 b0
VR0B1694
Figure 35. CPOL = 1 Clock Polarity Inverted, CPHA = 1 Phase Selection Shifted
SPRUN
SCK
Sin
Sampling
Sout b7 b6 b5 b4 b3 b2 b1 b0
VR0C1694
58/84
ST62T53C/T60C/T63C ST62E60C
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 address-
the status of any bit of the Data space. The carry
bit is stored with the value of the bit when the SET ing mode is only used in conditional branch in-
structions. The instruction is used to perform a test
or RES instruction is processed.
and, if the condition is true, a branch with a span of
-15 to +16 locations around the address of the rel-
5.2 ADDRESSING MODES ative instruction. If the condition is not true, the in-
struction which follows the relative instruction is
The ST6 core offers nine addressing modes, executed. The relative addressing mode instruc-
which are described in the following paragraphs. tion is one-byte long. The opcode is obtained in
Three different address spaces are available: Pro- adding the three most significant bits which char-
gram space, Data space, and Stack space. Pro- acterize the kind of the test, one bit which deter-
gram space contains the instructions which are to mines whether the branch is a forward (when it is
be executed, plus the data for immediate mode in- 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 Input/ branch (0h to Fh) which must be added or sub-
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 execu- Bit Test & Branch. The bit test and branch ad-
tion (e.g., a constant used to initialize a loop coun- dressing mode is a combination of direct address-
ter). 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. Di- tested follows immediately the opcode in the Pro-
rect addressing allows the user to directly address gram space. The third byte is the jump displace-
the 256 bytes in Data Space memory with a single ment, which is in the range of -127 to +128. This
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) in Indirect. In the indirect addressing mode, the byte
the short-direct addressing mode. In this case, the processed by the register-indirect instruction is at
instruction is only one byte and the selection of the the address pointed by the content of one of the in-
location to be processed is contained in the op- direct registers, X or Y (80h,81h). The indirect reg-
code. Short direct addressing is a subset of the di- ister is selected by the bit 4 of the opcode. A regis-
rect addressing mode. (Note that 80h and 81h are ter indirect instruction is one byte long.
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.
59/84
ST62T53C/T60C/T63C ST62E60C
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 using
tic/logic, conditional branch, control instructions, 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 17. 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
60/84
ST62T53C/T60C/T63C ST62E60C
61/84
ST62T53C/T60C/T63C ST62E60C
62/84
ST62T53C/T60C/T63C ST62E60C
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 e abc e b0,rr,ee e # e a,(x) 0
0000 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 e abc e b4,rr,ee e a,x e a,nn 3
0011 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 e abc e b2,rr,ee e # e a,(x) 4
0100 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 e abc e b2,rr,ee e y e a,nn 5
0101 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 e abc e b6,rr,ee e # e (x) 6
0110 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 e abc e b6,rr,ee e a,y e # 7
0111 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 e abc e b1,rr,ee e # e (x),a 8
1000 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 e abc e b1,rr,ee e v e # 9
1001 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 e abc e b5,rr,ee e # e a,(x) A
1010 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 e abc e b5,rr,ee e a,v e a,nn B
1011 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 e abc e b3,rr,ee e # e a,(x) C
1100 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 e abc e b3,rr,ee e w e a,nn D
1101 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 abc e b7,rr,ee e # e (x) E
1110 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 e abc e b7,rr,ee e a,w e # F
1111 1111
1 pcr 2 ext 1 pcr 3 bt 1 pcr 1 sd 1 prc
63/84
ST62T53C/T60C/T63C ST62E60C
64/84
ST62T53C/T60C/T63C ST62E60C
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
and VO be higher than V SS and lower than V DD. RthJA =Package thermal resistance (junc-
Reliability is enhanced if unused inputs are con- tion-to ambient).
nected to an appropriate logic voltage level (VDD PD = Pint + Pport.
or V SS).
Pint =IDD x VDD (chip internal power).
Pport =Port power dissipation (determined
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 periods 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.
65/84
ST62T53C/T60C/T63C ST62E60C
Figure 36. Maximum Operating FREQUENCY (Fmax) Versus SUPPLY VOLTAGE (V DD)
4
3 Suffix version
3
1
2.5 3 3.6 4 4.5 5 5.5 6
The shaded area is outside the recommended operating range; device functionality is not guaranteed under these conditions.
66/84
ST62T53C/T60C/T63C ST62E60C
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
VIL Input Low Level Voltage
VDD x 0.3 V
All Input pins
VIH Input High Level Voltage
VDD x 0.7 V
All Input pins
Notes:
(1) Hysteresis voltage between switching levels
(2) All peripherals running
(3) All peripherals in stand-by
67/84
ST62T53C/T60C/T63C ST62E60C
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
Vup LVD Threshold in power-on Vdn +50 mV 4.1 4.3 V
Vdn LVD threshold in powerdown 3.6 3.8 Vup -50 mV V
VDD= 5.0V; IOL = +10µA 0.1
Low Level Output Voltage
VDD= 5.0V; IOL = + 5mA 0.8
All Output pins
VDD= 5.0V; IOL = + 10mAv 1.2
VOL VDD= 5.0V; IOL = +10µA 0.1 V
Low Level Output Voltage VDD= 5.0V; IOL = +10mA 0.8
30 mA Sink I/O pins VDD= 5.0V; IOL = +20mA 1.3
VDD= 5.0V; IOL = +30mA 2.0
High Level Output Voltage VDD= 5.0V; IOH = -10µA 4.9
VOH V
All Output pins VDD= 5.0V; IOH = -5.0mA 3.5
Supply Current in STOP ILOAD=0mA
IDD 10 µA
Mode, with LVD disabled(*) VDD=5.0V
Note:
(*) All Peripherals in stand-by.
Notes:
1. Period for which VDD has to be connected at 0V to allow internal Reset function at next power-up.
2 An oscillator frequency above 1MHz is recommended for reliable A/D results.
3. Measure performed with OSCin pin soldered on PCB, with an around 2pF equivalent capacitance.
68/84
ST62T53C/T60C/T63C ST62E60C
Notes:
1. Noise at VDD, VSS <10mV
2. With oscillator frequencies less than 1MHz, the A/D Converter accuracy is decreased.
STOP mode 2
69/84
ST62T53C/T60C/T63C ST62E60C
6 T = -40°C
Vol (V)
T = 25°C
4
T = 95°C
2 T = 125°C
0
0 10 20 30 40
Iol (mA)
This curves represents typical variations and is given for guidance only
8
6 Vdd = 3.0V
Vol (V)
Vdd = 4.0V
4
Vdd = 5.0V
2 Vdd = 6.0V
0
0 10 20 30 40
Iol (mA)
This curves represents typical variations and is given for guidance only
Figure 39. Vol versus Iol for High sink (30mA) I/Oports at T=25°C
5
4
Vdd = 3.0V
Vol (V)
3 Vdd = 4.0V
2 Vdd = 5.0V
1 Vdd = 6.0V
0
0 10 20 30 40
Iol (mA)
This curves represents typical variations and is given for guidance only
70/84
ST62T53C/T60C/T63C ST62E60C
Figure 40. Vol versus Iol for High sink (30mA) I/O ports at Vdd=5V
5
4
T = -40°C
Vol (V)
3 T = 25°C
2 T = 95°C
T = 125°C
1
0
0 10 20 30 40
Iol (mA)
This curves represents typical variations and is given for guidance only
6
4 Vdd = 3.0V
Voh (V)
Vdd = 4.0V
2
Vdd = 5.0V
0 Vdd = 6.0V
-2
0 10 20 30 40
Ioh (mA)
This curves represents typical variations and is given for guidance only
4 T = -40°C
Voh (V)
T = 25°C
2
T = 95°C
0 T = 125°C
-2
0 10 20 30 40
Ioh (mA)
This curves represents typical variations and is given for guidance only
71/84
ST62T53C/T60C/T63C ST62E60C
Figure 43. Idd WAIT versus VDD at 8 Mhz for OTP devices
2.5
Idd WAIT (mA)
2 T = -40°C
1.5 T = 25°C
1 T = 95°C
0.5 T = 125°C
0
3V 4V 5V 6V
Vdd
This curves represents typical variations and is given for guidance only
8
Idd STOP (µA)
6 T = -40°C
4 T = 25°C
2 T = 95°C
0 T = 125°C
-2
3V 4V 5V 6V
Vdd
This curves represents typical variations and is given for guidance only
1.5
Idd STOP (µA)
T = -40°C
1
T = 25°C
0.5 T = 95°C
T = 125°C
0
-0.5
3V 4V 5V 6V
Vdd
This curves represents typical variations and is given for guidance only
72/84
ST62T53C/T60C/T63C ST62E60C
Figure 46. Idd WAIT versus VDD at 8Mhz for ROM devices
2.5
Idd WAIT (mA)
2 T = -40°C
1.5 T = 25°C
1 T = 95°C
0.5 T = 125°C
0
3V 4V 5V 6V
Vdd
This curves represents typical variations and is given for guidance only
Figure 47. Idd RUN versus VDD at 8 Mhz for ROM and OTP devices
6
Idd RUN (mA)
T = -40°C
T = 25°C
4
T = 95°C
T = 125°C
2
0
3V 4V 5V 6V
Vdd
This curves represents typical variations and is given for guidance only
4.2
4.1
Vthresh.
4
Vup
Vdn
3.9
3.8
3.7
-40°C 25°C 95°C 125°C
Temp
This curves represents typical variations and is given for guidance only
73/84
ST62T53C/T60C/T63C ST62E60C
10
R=1OK
R=27K
Frequency
MHz
R=67K
R=100K
1
3 4 5 6
VDD (volts)]
This curves represents typical variations and is given for guidance only
10
Frequency
R=47K
MHz
1 R=100K
R=470K
0.1
3 3.5 4 4.5 5 5.5 6
VDD (volts)
This curves represents typical variations and is given for guidance only
74/84
ST62T53C/T60C/T63C ST62E60C
7 GENERAL INFORMATION
mm inches
Dim.
A2 A Min Typ Max Min Typ Max
A 5.33 0.210
A1 L c A1 0.38 0.015
A2 2.92 3.30 4.95 0.115 0.130 0.195
b eB
D1 b2 e b 0.36 0.46 0.56 0.014 0.018 0.022
b2 1.14 1.52 1.78 0.045 0.060 0.070
c 0.20 0.25 0.36 0.008 0.010 0.014
D D 24.89 26.16 26.92 0.980 1.030 1.060
D1 0.13 0.005
e 2.54 0.100
20 11
eB 10.92 0.430
E1
E1 6.10 6.35 7.11 0.240 0.250 0.280
1 10
L 2.92 3.30 3.81 0.115 0.130 0.150
Number of Pins
N 20
mm inches
Dim.
Min Typ Max Min Typ Max
A 3.63 0.143
A1 0.38 0.015
B 3.56 0.46 0.56 0.140 0.018 0.022
B1 1.14 12.70 1.78 0.045 0.500 0.070
C 0.20 0.25 0.36 0.008 0.010 0.014
D 24.89 25.40 25.91 0.980 1.000 1.020
D1 22.86 0.900
E1 6.99 7.49 8.00 0.275 0.295 0.315
e 2.54 0.100
G 6.35 6.60 6.86 0.250 0.260 0.270
G1 9.47 9.73 9.98 0.373 0.383 0.393
G2 1.14 0.045
L 2.92 3.30 3.81 0.115 0.130 0.150
S 12.70 0.500
Ø 4.22 0.166
CDIP20W Number of Pins
N 20
75/84
ST62T53C/T60C/T63C ST62E60C
D
mm inches
h x 45× Dim.
L
Min Typ Max Min Typ Max
A A 2.35 2.65 0.093 0.104
A1 c
A1 0.10 0.30 0.004 0.012
a
B e B 0.33 0.51 0.013 0.020
C 0.23 0.32 0.009 0.013
D 12.60 13.00 0.496 0.512
E 7.40 7.60 0.291 0.299
e 1.27 0.050
H 10.00 10.65 0.394 0.419
h 0.25 0.75 0.010 0.030
E H
α 0° 8° 0° 8°
L 0.40 1.27 0.016 0.050
Number of Pins
N 20
76/84
ST62P53C/P60C/P63C
8-BIT FASTROM MCUs WITH A/D CONVERTER,
SAFE RESET, AUTO-RELOAD TIMER, EEPROM AND SPI
Rev. 2.8
1 GENERAL DESCRIPTION
1.1 INTRODUCTION tents and options which will be used to produce
the specified MCU. The listing is then returned to
The ST62P53C, ST62P60C and ST62P63C are
the customer who must thoroughly check, com-
the Factory Advanced Service Technique ROM plete, sign and return it to STMicroelectronics. The
(FASTROM) versions of ST62T53C, ST6260B signed listing forms a part of the contractual agree-
and ST62T63C OTP devices.
ment for the production of the specific customer
They offer the same functionality as OTP devices, MCU.
selecting as FASTROM options the options de-
The STMicroelectronics Sales Organization will be
fined in the programmable option byte of the OTP pleased to provide detailed information on con-
version. tractual points.
1.2 ORDERING INFORMATION Table 24. ROM Memory Map for ST62P60C
The following section deals with the procedure for Device Address Description
transfer of customer codes to STMicroelectronics.
0000h-007Fh Reserved
1.2.1 Transfer of Customer Code 0080h-0F9Fh User ROM
Customer code is made up of the ROM contents 0FA0h-0FEFh Reserved
and the list of the selected FASTROM options. 0FF0h-0FF7h Interrupt Vectors
0FF8h-0FFBh Reserved
The ROM contents are to be sent on diskette, or
0FFCh-0FFDh NMI Interrupt Vector
by electronic means, with the hexadecimal file 0FFEh-0FFFh Reset Vector
generated by the development tool. All unused
bytes must be set to FFh. Table 25. ROM Memory Map: ST62P53C/P63C
The selected options are communicated to STMi- Device Address Description
croelectronics using the correctly filled OPTION 0000h-087Fh Reserved
LIST appended. See page 82. 0880h-0F9Fh User ROM
1.2.2 Listing Generation and Verification 0FA0h-0FEFh Reserved
0FF0h-0FF7h Interrupt Vectors
When STMicroelectronics receives the user’s 0FF8h-0FFBh Reserved
ROM contents, a computer listing is generated 0FFCh-0FFDh NMI Interrupt Vector
from it. This listing refers exactly to the ROM con- 0FFEh-0FFFh Reset Vector
Table 26. FASTROM Version Ordering Information
Sales Type ROM (Bytes) EEPROM (Bytes) Temperature Range Package
ST62P53CB1/XXX 0 to + 70°C
ST62P53CB6/XXX -40 to + 85°C PDIP20
ST62P53CB3/XXX (*) -40 to + 125°C
1836 -
ST62P53CM1/XXX 0 to + 70°C
ST62P53CM6/XXX -40 to + 85°C PSO20
ST62P53CM3/XXX (*) -40 to + 125°C
ST62P60CB1/XXX 0 to + 70°C
ST62P60CB6/XXX -40 to + 85°C PDIP20
ST62P60CB3/XXX (*) -40 to + 125°C
3884 128
ST62P60CM1/XXX 0 to + 70°C
ST62P60CM6/XXX -40 to + 85°C PSO20
ST62P60CM3/XXX (*) -40 to + 125°C
ST62P63CB1/XXX 0 to + 70°C
ST62P63CB6/XXX -40 to + 85°C PDIP20
ST62P63CB3/XXX (*) -40 to + 125°C
1836 64
ST62P63CM1/XXX 0 to + 70°C
ST62P63CM6/XXX -40 to + 85°C PSO20
ST62P63CM3/XXX (*) -40 to + 125°C
(*) Advanced information
78/84
1
ST6253C/60B/63B
8-BIT ROM MCUs WITH A/D CONVERTER,
SAFE RESET, AUTO-RELOAD TIMER, EEPROM AND SPI
Rev. 2.8
1 GENERAL DESCRIPTION
1.1 INTRODUCTION 1.2 ROM READOUT PROTECTION
The ST6253C, ST6260B and ST6263B are mask If the ROM READOUT PROTECTION option is
programmed ROM versions of ST62T53C, selected, a protection fuse can be blown to pre-
ST6260B and ST62T63C OTP devices. vent any access to the program memory content.
They offer the same functionality as OTP devices, In case the user wants to blow this fuse, high volt-
selecting as ROM options the options defined in age must be applied on the TEST pin.
the programmable option byte of the OTP version,
except the LVD & OSG options that are not availa-
ble on the ST6260B/63B ROM device. Figure 55. Programming Circuit
Figure 54. Programming wave form
0.5s min
TEST
5V 47mF
15 100nF
14V typ
10
VSS
5
VDD
TEST PROTECT
150 µs typ
TEST 14V
100nF
100mA ZPD15
max 15V
VR02003
4mA typ
t
VR02001
Note: ZPD15 is used for overvoltage protection
80/84
1
ST6253C/60B/63B
81/84
ST6253C/60B/63B
Customer: .... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
Address: .... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
.... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
Contact: .... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
Phone: .... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
Reference: .... ..... .... .... .... .... .... ..... .... .... .... .... ..... ............ .... ...
STMicroelectronics references:
Comments:
Oscillator Frequency in the application: ...........................................
Supply Operating Range in the application: ...........................................
Notes: ..........................................................................
Date: ..........................................................................
Signature: ..........................................................................
82/84
ST6253C/60B/63B
2 SUMMARY OF CHANGES
Rev. Main Changes Date
83/84
ST6253C/60B/63B
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
©2001 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 - China - Finland - France - Germany - Hong Kong - India - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain
Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
84/84