ST62E20C STMicroelectronics, ST62E20C Datasheet

no-image

ST62E20C

Manufacturer Part Number
ST62E20C
Description
8-BIT MCUs WITH A/D CONVERTER, TWO TIMERS, OSCILLATOR SAFEGUARD & SAFE RESET ST62E20CGANG PROGRAMMERS FOR ST62 MCU FAMILY
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST62E20C
Manufacturer:
ST
Quantity:
5
Part Number:
ST62E20C
Manufacturer:
ST
Quantity:
2 357
Part Number:
ST62E20C
Manufacturer:
ST
0
Company:
Part Number:
ST62E20C
Quantity:
20
Part Number:
ST62E20C4BE
Manufacturer:
ST
0
Part Number:
ST62E20CF1
Manufacturer:
STMicroelectronics
Quantity:
1
DEVICE SUMMARY
September 1998
ST62T08C
ST62T09C
ST62T10C
ST62T20C
ST62E20C
3.0 to 6.0V Supply Operating Range
8 MHz Maximum Clock Frequency
-40 to +125° C Operating Temperature Range
Run, Wait and Stop Modes
5 Interrupt Vectors
Look-up Table capability in Program Memory
Data Storage in Program Memory:
User selectable size
Data RAM: 64bytes
User Programmable Options
12 I/O pins, fully programmable as:
– Input with pull-up resistor
– Input without pull-up resistor
– Input with interrupt generation
– Open-drain or push-pull output
– Analog Input (except ST62T08C)
4 I/O lines can sink up to 20mA to drive LEDs or
TRIACs directly
8-bit Timer/Counter with 7-bit programmable
prescaler
Digital Watchdog
Oscillator Safe Guard
Low Voltage Detector for Safe Reset
8-bit A/D Converter with up to 8 analog inputs
On-chip Clock oscillator can be driven by Quartz
Crystal Ceramic resonator or RC network
Power-on Reset
One external Non-Maskable Interrupt
ST626x-EMU2 Emulation and Development
System (connects to an MS-DOS PC via a
parallel port)
DEVICE
OSCILLATOR SAFEGUARD, SAFE RESET AND 20 PINS
(Bytes)
1036
1036
1836
3884
OTP
-
8-BIT OTP/EPROM MCUs WITH A/D CONVERTER,
EPROM
(Bytes)
3884
-
-
-
-
I/O Pins
12
12
12
12
12
Analog
inputs
4
8
8
8
-
(See end of Datasheet for Ordering Information)
ST62T10C/T20C/E20C
ST62T08C/T09C
CDIP20W
PDIP20
PSO20
Rev. 2.6
1/70
89

Related parts for ST62E20C

ST62E20C Summary of contents

Page 1

... System (connects to an MS-DOS PC via a parallel port) DEVICE SUMMARY OTP EPROM DEVICE I/O Pins (Bytes) (Bytes) ST62T08C 1036 - ST62T09C 1036 - ST62T10C 1836 - ST62T20C 3884 - ST62E20C - 3884 September 1998 ST62T10C/T20C/E20C (See end of Datasheet for Ordering Information) Analog inputs ST62T08C/T09C PDIP20 PSO20 CDIP20W Rev ...

Page 2

ST62T08C/T09C/ST62T10C/T20C/E20C . . . . . . . . . . . . . . . . . . 1 1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . ...

Page 3

I/O Port Data Direction Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

Page 4

... ST62xx 8-bit HCMOS family of microcontrollers, which is target low to medium complexity applications. All ST62xx devices are based on a building block ap- proach: a common core is surrounded by a number of on-chip peripherals. The ST62E20C is the erasable EPROM version of the ST62T08C,T09C,T10C and T20C device, which may be used ...

Page 5

PIN DESCRIPTIONS V and V . Power is supplied to the MCU via DD SS these two pins the power connection and the ground connection. SS OSCin and OSCout. These pins are internally connected ...

Page 6

ST62T08C/T09C ST62T10C/T20C/E20C 1.3 MEMORY MAP 1.3.1 Introduction The MCU operates in three separate memory spaces: Program space, Data space, and Stack space. Operation in these three memory spaces is described in the following paragraphs. Figure 3. Memory Addressing Diagram PROGRAM ...

Page 7

... U.V. erasure that also results into the whole EPROM context erasure. Note: Once the Readout Protection is activated longer possible, even for STMicroelectronics, to gain access to the OTP contents. Returned parts with a protection set can therefore not be ac- cepted. ...

Page 8

ST62T08C/T09C ST62T10C/T20C/E20C MEMORY MAP (Cont’d) 1.3.3 Data Space Data Space accommodates all the data necessary for processing the user program. This space com- prises the RAM resource, the processor core and peripheral registers, as well as read-only data such as ...

Page 9

MEMORY MAP (Cont’d) 1.3.5 Data Window Register (DWR) The Data read-only memory window is located from address 0040h to address 007Fh in Data space. It allows direct reading of 64 consecutive bytes locat- ed anywhere in program memory, between ad- ...

Page 10

ST62T08C/T09C ST62T10C/T20C/E20C 1.4 PROGRAMMING MODES 1.4.1 Option Bytes The two Option Bytes allow configuration capabili the MCUs. Option byte’s content is automati- cally read, and the selected options enabled, when the chip reset is activated. It can only ...

Page 11

... The erasure time with this dosage is ap- proximately minutes using an ultraviolet lamp with 12000µW/cm ST62E20C should be placed within 2.5cm (1Inch) of the lamp tubes during erasure. Description Reserved User ROM Reserved Interrupt Vectors ...

Page 12

ST62T08C/T09C ST62T10C/T20C/E20C 2 CENTRAL PROCESSING UNIT 2.1 INTRODUCTION The CPU Core of ST6 devices is independent of the I/O or Memory configuration. As such, it may be thought independent central processor communicating with on-chip I/O, Memory and ...

Page 13

CPU REGISTERS (Cont’d) However, if the program space contains more than 4096 bytes, the additional memory in program space can be addressed by using the Program Bank Switch register. The PC value is incremented after reading the ad- dress of ...

Page 14

ST62T08C/T09C ST62T10C/T20C/E20C 3 CLOCKS, RESET, INTERRUPTS AND POWER SAVING MODES 3.1 CLOCK SYSTEM The MCU features a Main Oscillator which can be driven by an external clock, or used in conjunction with an AT-cut parallel resonant crystal or a suita- ...

Page 15

CLOCK SYSTEM (Cont’d) Turning on the main oscillator is achieved by re- setting the OSCOFF bit of the A/D Converter Con- trol Register or by resetting the MCU. Restarting the main oscillator implies a delay comprising the oscillator start up ...

Page 16

ST62T08C/T09C ST62T10C/T20C/E20C CLOCK SYSTEM (Cont’d) Figure 9. OSG Filtering Principle (1) (2) (3) (4) (1) Maximum Frequency for the device to work correctly (2) Actual Quartz Crystal Frequency at OSCin pin (3) Noise from OSCin (4) Resulting Internal Frequency Figure ...

Page 17

CLOCK SYSTEM (Cont’d) Figure 11. Clock Circuit Block Diagram MAIN OSCILLATOR Figure 12. Maximum Operating Frequency (f Maximum FREQUENCY (MHz 2.5 3 Notes this area, operation is guaranteed at the ...

Page 18

ST62T08C/T09C ST62T10C/T20C/E20C 3.2 RESETS The MCU can be reset in four ways: – by the external Reset input being pulled low; – by Power-on Reset; – by the digital Watchdog peripheral timing out. – by Low Voltage Detection (LVD) 3.2.1 ...

Page 19

RESETS (Cont’d) 3.2.3 Watchdog Reset The MCU provides a Watchdog timer function in order to ensure graceful recovery from software upsets. If the Watchdog register is not refreshed before an end-of-count condition is reached, the internal reset will be activated. ...

Page 20

ST62T08C/T09C ST62T10C/T20C/E20C RESETS (Cont’d) 3.2.6 MCU Initialization Sequence When a reset occurs the stack is reset, the PC is loaded with the address of the Reset Vector (locat program ROM starting at address 0FFEh). A jump to the ...

Page 21

RESETS (Cont’d) Table 5. Register Reset Status Register Oscillator Control Register Port Data Registers Port Direction Register Port Option Register Interrupt Option Register TIMER Status/Control Register Accumulator Data RAM Data ROM Window Register A/D Result Register ...

Page 22

ST62T08C/T09C ST62T10C/T20C/E20C 3.3 DIGITAL WATCHDOG The digital Watchdog consists of a reloadable downcounter timer which can be used to provide controlled recovery from software upsets. The Watchdog circuit generates a Reset when the downcounter reaches zero. User software can prevent ...

Page 23

DIGITAL WATCHDOG (Cont’d) The Watchdog is associated with a Data space register (Digital WatchDog Register, DWDR, loca- tion 0D8h) which is described in greater detail in Section 3.3.1 Digital Watchdog Register This register is set to 0FEh on Reset: bit ...

Page 24

ST62T08C/T09C ST62T10C/T20C/E20C DIGITAL WATCHDOG (Cont’d) 3.3.1 Digital Watchdog Register (DWDR) Address: 0D8h — Read/Write Reset status: 1111 1110b Bit Watchdog Control bit If the hardware option is selected, this bit is ...

Page 25

DIGITAL WATCHDOG (Cont’d) These instructions test the C bit and Reset the MCU (i.e. disable the Watchdog) if the bit is set (i.e. if the Watchdog is active), thus disabling the Watchdog. In all modes, a minimum of 28 instructions ...

Page 26

ST62T08C/T09C ST62T10C/T20C/E20C 3.4 INTERRUPTS The CPU can manage four Maskable Interrupt sources, in addition to a Non Maskable Interrupt source (top priority interrupt). Each source is asso- ciated with a specific Interrupt Vector which con- tains a Jump instruction to ...

Page 27

INTERRUPTS (Cont’d) 3.4.2 Interrupt Procedure The interrupt procedure is very similar to a call pro- cedure, indeed the user can consider the interrupt as an asynchronous call procedure. As this is an asynchronous event, the user cannot know the context ...

Page 28

... When the GEN bit is low, the NMI interrupt is ac- tive but cannot cause a wake up from STOP/WAIT 0 modes. This register is cleared on reset 3.4.4 Interrupt Sources Interrupt sources available on the ST62E20C/ T20C are summarized in the ated mask bit to enable/disable the interrupt re- quest. Address Mask bit Register All Interrupts, excluding C8h ...

Page 29

INTERRUPTS (Cont’d) Figure 21. Interrupt Block Diagram V DD NMI PBE PORT A FROM REGISTER SINGLE BIT ENABLE PORT A,B PBE V DD PORT B Bits PBE PBE TIMER ADC(*) (*)Except on ST62T08C ST62T08C/T09C ST62T10C/T20C/E20C FF CLK Q CLR I ...

Page 30

ST62T08C/T09C ST62T10C/T20C/E20C 3.5 POWER SAVING MODES The WAIT and STOP modes have been imple- mented in the ST62xx family of MCUs in order to reduce the product’s electrical consumption during idle periods. These two power saving modes are described in ...

Page 31

POWER SAVING MODE (Cont’d) 3.5.3 Exit from WAIT and STOP Modes The following paragraphs describe how the MCU exits from WAIT and STOP modes, when an inter- rupt occurs (not a Reset). It should be noted that the restart sequence ...

Page 32

ST62T08C/T09C ST62T10C/T20C/E20C 4 ON-CHIP PERIPHERALS 4.1 I/O PORTS The MCU features Input/Output lines which may be individually programmed as any of the following input or output configurations: – Input without pull-up or interrupt – Input with pull-up and interrupt – ...

Page 33

I/O PORTS (Cont’d) 4.1.1 Operating Modes Each pin may be individually programmed as input or output with various configurations. This is achieved by writing the relevant bit in the Data (DR), Data Direction (DDR) and Option reg- isters (OR). Table ...

Page 34

ST62T08C/T09C ST62T10C/T20C/E20C I/O PORTS (Cont’d) 4.1.2 Safe I/O State Switching Sequence Switching the I/O ports from one state to another should be done in a sequence which ensures that no unwanted side effects can occur. The recom- mended safe transitions ...

Page 35

I/O PORTS (Cont’d) 4.1.3 I/O Port Option Registers ORA/B (CCh PA, CDh PB) Read/Write 7 Px7 Px6 Px5 Px4 Px3 Bit 7-0 = Px7 - Px0: Port A and B Option Register bits. 4.1.4 I/O Port Data Direction Registers DDRA/B ...

Page 36

ST62T08C/T09C ST62T10C/T20C/E20C I/O PORTS (Cont’d) Table 11. I/O Port Option Selections MODE AVAILABLE ON PA0-PA3 Input PB0-PB7 PA0-PA3 Input PB0-PB7 with pull up Input PA0-PA3 with pull up PB0-PB7 with interrupt PB0-PB3 (ST62T10C,T20C,E20C) Analog Input PB4-PB7 (All except ST62T08C) Open ...

Page 37

TIMER The MCU features an on-chip Timer peripheral, consisting of an 8-bit counter with a 7-bit program- mable prescaler, giving a maximum count of 2 The peripheral may be configured in three different operating modes. Figure 24 shows the ...

Page 38

ST62T08C/T09C ST62T10C/T20C/E20C TIMER (Cont’d) 4.2.1 Timer Operating Modes There are three operating modes, which are se- lected by the TOUT and DOUT bits (see TSCR register). These three modes correspond to the two clocks which can be connected to the ...

Page 39

TIMER (Cont’d) 4.2.3 Application Notes The user can select the presence of an on-chip pull-up on the TIMER pin as option. TMZ is set when the counter reaches zero; howev- er, it may also be set by writing 00h in ...

Page 40

ST62T08C/T09C ST62T10C/T20C/E20C 4.3 A/D CONVERTER (ADC) The A/D converter peripheral is an 8-bit analog to digital converter with analog inputs as alternate I/O functions (the number of which is device depend- ent), offering 8-bit resolution with a typical conver- sion ...

Page 41

A/D CONVERTER (Cont’d) Since the ADC is on the same chip as the micro- processor, the user should not switch heavily load- ed output signals during conversion, if high preci- sion is required. Such switching will affect the sup- ply ...

Page 42

ST62T08C/T09C ST62T10C/T20C/E20C 5 SOFTWARE 5.1 ST6 ARCHITECTURE The ST6 software has been designed to fully use the hardware in the most efficient way possible while keeping byte usage to a minimum; in short, to provide byte efficient programming capability. The ...

Page 43

INSTRUCTION SET The ST6 core offers a set of 40 basic instructions which, when combined with nine addressing modes, yield 244 usable opcodes. They can be di- vided into six different types: load/store, arithme- tic/logic, conditional branch, control instructions, ...

Page 44

ST62T08C/T09C ST62T10C/T20C/E20C INSTRUCTION SET (Cont’d) Arithmetic and Logic. These instructions are used to perform the arithmetic calculations and logic operations. In AND, ADD, CP, SUB instruc- tions one operand is always the accumulator while the other can be either a ...

Page 45

INSTRUCTION SET (Cont’d) Conditional Branch. The branch instructions achieve a branch in the program when the select- ed condition is met. Bit Manipulation Instructions. These instruc- tions can handle any bit in data space memory. One group either sets or ...

Page 46

ST62T08C/T09C ST62T10C/T20C/E20C Opcode Map Summary. The following table contains an opcode map for the instructions used by the ST6 LOW 0 1 0000 0001 HI 2 JRNZ 4 CALL abc 0000 1 pcr 2 ext 1 2 ...

Page 47

Opcode Map Summary (Continued) LOW 8 9 1000 1001 HI 2 JRNZ abc 0000 1 pcr 2 ext 1 2 JRNZ abc 0001 1 pcr 2 ext 1 2 JRNZ ...

Page 48

ST62T08C/T09C ST62T10C/T20C/E20C 6 ELECTRICAL CHARACTERISTICS 6.1 ABSOLUTE MAXIMUM RATINGS This product contains devices to protect the inputs against damage due to high static voltages, how- ever it is advisable to take normal precaution to avoid application of any voltage higher ...

Page 49

RECOMMENDED OPERATING CONDITIONS Symbol Parameter T Operating Temperature A V Operating Supply Voltage Oscillator Frequency OSC I Pin Injection Current (positive) INJ+ I Pin Injection Current (negative) V INJ- Notes: 1. Care must be taken in ...

Page 50

ST62T08C/T09C ST62T10C/T20C/E20C 6.3 DC ELECTRICAL CHARACTERISTICS (T = -40 to +125° C unless otherwise specified) A Symbol Parameter V Input Low Level Voltage IL All Input pins V Input High Level Voltage IH All Input pins (1) Hysteresis Voltage V ...

Page 51

DC ELECTRICAL CHARACTERISTICS (Cont’ -40 to +85° C unless otherwise specified)) A Symbol Parameter V LVD Threshold in power- LVD threshold in powerdown dn Low Level Output Voltage All Output pins V OL Low Level Output ...

Page 52

ST62T08C/T09C ST62T10C/T20C/E20C 6.5 A/D CONVERTER CHARACTERISTICS (T = -40 to +125° C unless otherwise specified) A Symbol Parameter Res Resolution (1) (2) A Total Accuracy TOT t Conversion Time C ZIR Zero Input Reading FSR Full Scale Reading Analog Input ...

Page 53

Figure frequency versus Vcc . 10 1 0.1 3 3.5 This curves represents typical variations and is given for guidance only Figure 29. LVD thresholds versus temperature 4.2 4.1 4 3.9 3.8 3.7 3.6 -40° C This ...

Page 54

ST62T08C/T09C ST62T10C/T20C/E20C Figure 30. Idd WAIT versus Vcc at 8 Mhz for OTP devices 1.2 1 0.8 0.6 0.4 0 This curves represents typical variations and is given for guidance only Figure 31. Idd STOP versus Vcc for ...

Page 55

Figure 33. Idd WAIT versus Vcc at 8Mhz for ROM devices 0.8 0.6 0.4 0 This curves represents typical variations and is given for guidance only Figure 34. Idd RUN versus Vcc at 8 Mhz for ROM ...

Page 56

ST62T08C/T09C ST62T10C/T20C/E20C Figure 36. Vol versus Iol on all I/O port at T=25° This curves represents typical variations and is given for guidance only Figure 37. Vol versus Iol for High sink (20mA) ...

Page 57

Figure 39. Voh versus Ioh on all I/O port at 25° This curves represents typical variations and is given for guidance only Figure 40. Voh versus Ioh on all I/O port at ...

Page 58

ST62T08C/T09C ST62T10C/T20C/E20C 7 GENERAL INFORMATION 7.1 PACKAGE MECHANICAL DATA Figure 41. 20-Pin Plastic Dual In-Line Package, 300-mil Width Figure 42. 20-Pin Ceramic Side-Brazed Dual In-Line Package 58/70 146 mm Dim. Min Typ Max A 5.33 A2 2.92 3.30 4.95 0.115 ...

Page 59

... PACKAGE MECHANICAL DATA (Cont’d) Figure 43. 20-Pin Plastic Small Outline Package, 300-mil Width 7.2 .ORDERING INFORMATION Table 20. OTP/EPROM VERSION ORDERING INFORMATION Sales Type I/O ST62E20CF1 ST62T08CB6 ST62T08CM6 ST62T09CB6 ST62T09CM6 ST62T10CB6 12 ST62T10CM6 ST62T20CB6 ST62T20CM6 ST62T20CB3 ST62T20CM3 ST62T08C/T09C ST62T10C/T20C/E20C Dim SO20 N Program Analog ...

Page 60

ST62T08C/T09C ST62T10C/T20C/E20C Notes: 60/70 148 ...

Page 61

FASTROM MCUs WITH A/D CONVERTER, OSCILLATOR SAFEGUARD, SAFE RESET AND 20 PINS 3.0 to 6.0V Supply Operating Range 8 MHz Maximum Clock Frequency -40 to +125° C Operating Temperature Range Run, Wait and Stop Modes 5 Interrupt Vectors Look-up ...

Page 62

... This listing refers exactly to the ROM con- tents and options which will be used to produce the specified MCU. The listing is then returned to the customer who must thoroughly check, com- plete, sign and return it to STMicroelectronics. The signed listing forms a part of the contractual agree- 62/70 150 ment for the production of the specific customer MCU ...

Page 63

ORDERING INFORMATION (Cont’d) Table 4. ROM version Ordering Information Sales Type ROM ST62P08CB1/XXX ST62P08CB6/XXX ST62P08CB3/XXX (*) 1036 Bytes ST62P08CM1/XXX ST62P08CM6/XXX ST62P08CM3/XXX (*) ST62P09CB1/XXX ST62P09CB6/XXX ST62P09CB3/XXX (*) 1036 Bytes ST62P09CM1/XXX ST62P09CM6/XXX ST62P09CM3/XXX (*) ST62P10CB1/XXX ST62P10CB6/XXX ST62P10CB3/XXX (*) 1836 Bytes ST62P10CM1/XXX ST62P10CM6/XXX ...

Page 64

... Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phone Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STMicroelectronics references Device ST62P08C Package: Temperature Range: Oscillator Source Selection Crystal Quartz/Ceramic resonator Watchdog Selection: ...

Page 65

ROM MCUs WITH A/D CONVERTER, OSCILLATOR SAFEGUARD, SAFE RESET AND 20 PINS 3.0 to 6.0V Supply Operating Range 8 MHz Maximum Clock Frequency -40 to +125° C Operating Temperature Range Run, Wait and Stop Modes 5 Interrupt Vectors Look-up ...

Page 66

ST6208C/09C ST6210C/20C 1 GENERAL DESCRIPTION 1.1 INTRODUCTION The ST6210C/20C are mask programmed ROM version of ST62T08C,T09C,T10C,T20C OTP de- vices. They offer the same functionality as OTP devices, selecting as ROM options the options defined in the programmable option byte of ...

Page 67

... Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phone Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STMicroelectronics references Device ST6208C [ ] ST6209C Package Dual in Line Plastic [ ] Small Outline Plastic with conditionning: Temperature Range 0° ...

Page 68

... MCU. The listing is then returned to the customer who must thoroughly check, complete, sign and return it to STMicroelectronics. The signed listing forms a part of the contractual agreement for the creation of the specific customer mask. The STMicroelectronics Sales Organization will be pleased to provide detailed information on con- tractual points ...

Page 69

ORDERING INFORMATION (Cont’d) Table 4. ROM version Ordering Information Sales Type ROM ST6208CB1/XXX ST6208CB6/XXX ST6208CB3/XXX 1036 Bytes ST6208CM1/XXX ST6208CM6/XXX ST6208CM3/XXX ST6209CB1/XXX ST6209CB6/XXX ST6209CB3/XXX 1036 Bytes ST6209CM1/XXX ST6209CM6/XXX ST6209CM3/XXX ST6210CB1/XXX ST6210CB6/XXX ST6210CB3/XXX 1836 Bytes ST6210CM1/XXX ST6210CM6/XXX ST6210CM3/XXX ST6220CB1/XXX ST6220CB6/XXX ST6220CB3/XXX 3884 ...

Page 70

... 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 ...

Related keywords