st62t25c

Manufacturer Part Numberst62t25c
Description8-bit Otp/eprom Mcus With A/d Converter, Oscillator Safeguard, Safe Reset And 28 Pins
ManufacturerSTMicroelectronics
st62t25c datasheet
 
1
Page 1
2
Page 2
3
Page 3
4
Page 4
5
Page 5
6
Page 6
7
Page 7
8
Page 8
9
Page 9
10
Page 10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Page 1/70

Download datasheet (555Kb)Embed
Next
8-BIT OTP/EPROM MCUs WITH A/D CONVERTER,
OSCILLATOR SAFEGUARD, SAFE RESET AND 28 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 Table capability in Program Memory
Data Storage in Program Memory:
User selectable size
Data RAM: 64bytes
User Programmable Options
20 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
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 16 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 SUMMARY
OTP
EPROM
DEVICE
(Bytes)
(Bytes)
ST62T15C
1836
-
ST62T25C
3884
-
ST62E25C
3884
August 1999
ST62T15C/T25C/E25C
PDIP28
PS028
SS0P28
I/O Pins
CDIP28W
20
(See end of Datasheet for Ordering Information)
20
20
Rev. 2.8
1/70
1

st62t25c Summary of contents

  • Page 1

    ... One external Non-Maskable Interrupt ST626x-EMU2 Emulation and Development System (connects to an MS-DOS PC via a parallel port). DEVICE SUMMARY OTP EPROM DEVICE (Bytes) (Bytes) ST62T15C 1836 - ST62T25C 3884 - ST62E25C 3884 August 1999 ST62T15C/T25C/E25C PDIP28 PS028 SS0P28 I/O Pins CDIP28W 20 (See end of Datasheet for Ordering Information) ...

  • Page 2

    Table of Contents ST62T15C/T25C/E25C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 GENERAL ...

  • Page 3

    Table of Contents 4.1.2 Safe I/O State Switching Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ...

  • Page 4

    ... A/D CONVERTER TEST/V TEST PP NMI INTERRUP T PROGRAM DATA ROM M EMORY USER : SELECTAB LE 1836 Bytes ST62T15C 3884 Bytes DATA RAM ST62T25C, E25C 64 Bytes PC STACK LEVEL 1 STACK LEVEL 2 STACK LEVEL 3 8 BIT CORE STACK LEVEL 4 STACK LEVEL 5 STACK LEVEL 6 POWER RESET OSCILLATOR SUPPLY V V OSCin OSCout ...

  • 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

    ST62T15C/T25C/E25C 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 SPACE ...

  • Page 7

    ... 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. ST62T25C, E25C 0000h * RESERVED 07Fh 080h USER ...

  • Page 8

    ST62T15C/T25C/E25C 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 constants ...

  • 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

    ST62T15C/T25C/E25C 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 be ...

  • Page 11

    ... Reserved 0880h-0F9Fh User ROM 0FA0h-0FEFh Reserved 0FF0h-0FF7h Interrupt Vectors 0FF8h-0FFBh Reserved 0FFCh-0FFDh NMI Interrupt Vector 0FFEh-0FFF h Reset Vector Table 3. ST62T25C,E25C Program Memory Map Device Address Description 0000h-007Fh Reserved 0080h-0F9Fh User ROM 0FA0h-0FEFh Reserved 0FF0h-0FF7h Interrupt Vectors 0FF8h-0FFBh Reserved 0FFCh-0FFDh NMI Interrupt Vector ...

  • Page 12

    ST62T15C/T25C/E25C 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 Pe- ...

  • 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

    ST62T15C/T25C/E25C 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- ble ...

  • 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

    ST62T15C/T25C/E25C 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 10. ...

  • Page 17

    CLOCK SYSTEM (Cont’d) Figure 11. Clock Circuit Block Diagram OSG MAIN OSCILLATOR LFAO Figure 12. Maximum Operating Frequency (f Maximum FREQU ENCY (MHz 2.5 3 3.6 Notes this area, ...

  • Page 18

    ST62T15C/T25C/E25C 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 RESET ...

  • 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

    ST62T15C/T25C/E25C 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 beginning ...

  • Page 21

    RESETS (Cont’d) Table 4. Register Reset Status Register Oscillator Control Register 0DCh Port Data Registers 0C0h to 0C2h Port Direction Register 0C4h to 0C6h Port Option Register 0CCh to 0CEh Interrupt Option Register 0C8h TIMER Status/Control 0D4h ...

  • Page 22

    ST62T15C/T25C/E25C 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 this ...

  • 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 (DWDR). This register is set to 0FEh on Reset: ...

  • Page 24

    ST62T15C/T25C/E25C 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

    ST62T15C/T25C/E25C 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 the ...

  • 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

    ST62T15C/T25C/E25C INTERRUPTS (Cont’d) 3.4.3 Interrupt Option Register (IOR) The Interrupt Option Register (IOR) is used to en- able/disable the individual interrupt sources and to select the operating mode of the external interrupt inputs. This register is write-only and cannot be ...

  • Page 29

    INTERRUPTS (Cont’d) Figure 21. Interrupt Block Diagram PBE PORT A FROM REG I STER PORT NGLE BI T ENABLE PBE V DD PORT PBE PBE I OR ...

  • Page 30

    ST62T15C/T25C/E25C 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 the ...

  • 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

    ST62T15C/T25C/E25C 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 – Input ...

  • 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

    ST62T15C/T25C/E25C 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 are ...

  • Page 35

    I/O PORTS (Cont’d) 4.1.3 I/O Port Option Registers ORA/B/C (CCh PA, CDh PB, CEh PC) Read/Write 7 Px7 Px6 Px5 Px4 Px3 Px2 Bit 7-0 = Px7 - Px0: Port A, B and C Option Regis- ter bits. 4.1.4 I/O ...

  • Page 36

    ST62T15C/T25C/E25C I/O PORTS (Cont’d) Table 10. I/O Port Option Selections MODE AVAILABLE ON PA0-PA7 Input PB0-PB7 PC4-PC7 PA0-PA7 Input PB0-PB7 with pull up PC4-PC7 Input PA0-PA7 with pull up PB0-PB7 PC4-PC7 with interrupt PA4-PA7 Analog Input PB0-PB7 PC4-PC7 Open drain ...

  • 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

    ST62T15C/T25C/E25C 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 7-bit ...

  • 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

    ST62T15C/T25C/E25C 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 time ...

  • 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

    ST62T15C/T25C/E25C 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 ST6 ...

  • 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

    ST62T15C/T25C/E25C 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 data ...

  • 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

    ST62T15C/T25C/E25C Opcode Map Summary. The following table contains an opcode map for the instructions used by the ST6 LOW 0000 0001 0010 HI 2 JRNZ 4 CALL 2 JRNC abc e 0000 1 pcr ...

  • Page 47

    Opcode Map Summary (Continued) LOW 1000 1001 1010 HI 2 JRNZ JRNC abc e 0000 1 pcr 2 ext 1 2 JRNZ JRNC abc e ...

  • Page 48

    ST62T15C/T25C/E25C 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 than ...

  • 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

    ST62T15C/T25C/E25C 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 DD ...

  • 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 Low Level Output Voltage V DD All Output pins V ...

  • Page 52

    ST62T15C/T25C/E25C 6.5 A/D CONVERTER CHARACTERISTICS (T = -40 to +125 C unless otherwise specified) A Symbol Parameter Res Resolution f (1) (2) OSC A Total Accuracy TOT f OSC f OSC t Conversion Time C f OSC Conversion result when ...

  • Page 53

    Figure frequency versus Vcc . 0.1 3 3.5 4 Figure 29. LVD thresholds versus temperature ST62T15C/T25C/E25C 4.5 5 5.5 6 VDD (volts) R=47K R=100K R=470K 53/70 ...

  • Page 54

    ST62T15C/T25C/E25C 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 WAIT ( A) Fosc=32KHz (option byte programmed to ...

  • Page 56

    ST62T15C/T25C/E25C Figure 36. Vol versus Iol on all I/O port at Vdd= Iol (mA) This curves represents typical variations and is given for guidance only Figure 37. Vol versus Iol on all I/O ...

  • Page 57

    Figure 39. Vol versus Iol for High sink (20mA) I/O ports at Vdd= Iol (mA) This curves represents typical variations and is given for guidance only Figure 40. Voh versus Ioh on ...

  • Page 58

    ST62T15C/T25C/E25C 7 GENERAL INFORMATION 7.1 PACKAGE MECHANICAL DATA Figure 42. 28-Pin Plastic Dual In-Line Package, 600-mil Width Figure 43. 28-Pin Plastic Small Outline Package, 300-mil Width 58/ Dim. Min Typ Max A 6.35 A1 0.38 A2 3.18 4.95 ...

  • Page 59

    PACKAGE MECHANICAL DATA (Cont’d) Figure 44. 28-Pin Ceramic Side-Brazed Dual In-Line Package Figure 45. 28-Pin Plastic Shrink Small Outline Package, 0.209” Width ST62T15C/T25C/E25C mm Dim. Min Typ Max Min A 4.17 A1 0.76 0.030 B 0.36 0.46 0.56 0.014 0.018 ...

  • Page 60

    ... INFORMATION Table 19. OTP/EPROM VERSION ORDERING INFORMATION Program Sales Type Memory (Bytes) ST62E25CF1 3884 (EPROM) ST62T15CB6 1836 (OTP) ST62T15CM6 ST62T25CB6 ST62T25CM6 3884 (OTP) ST62T25CN6 ST62T25CB3 ST62T25CM3 3884 (OTP) ST62T25CN3 60/70 60 I/O Temperature Range Package 0 to +70 C CDIP28W - SSOP28 - 125 C SSOP28 ...

  • Page 61

    FASTROM MCUs WITH A/D CONVERTER, OSCILLATOR SAFEGUARD, SAFE RESET AND 28 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

    ... 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- ment for the production of the specific customer MCU. The STMicroelectronics Sales Organization will be pleased to provide detailed information on con- tractual points ...

  • Page 63

    ... Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phone Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STMicroelectronics references Device ST62P15C Package Dual in Line Plastic [ ] Small Outline Plastic with conditioning Shrink Small Outline Plastic ...

  • Page 64

    ST62P15C/P25C Notes: 64/70 64 ...

  • Page 65

    ROM MCUs WITH A/D CONVERTER, OSCILLATOR SAFEGUARD, SAFE RESET AND 28 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

    ST6215C/25C 1 GENERAL DESCRIPTION 1.1 INTRODUCTION The ST6215C/25C are mask programmed ROM version of ST62T15C,T25C OTP devices. They offer the same functionality as OTP devices, selecting as ROM options the options defined in the programmable option byte of the OTP ...

  • Page 67

    ... Contact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Phone Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . STMicroelectronics references Device ST6215C Package Dual in Line Plastic [ ] Small Outline Plastic with conditioning Shrink Small Outline Plastic ...

  • Page 68

    ... This listing refers exactly to the mask which will be used to produce the specified 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. 68/70 ...

  • Page 69

    ORDERING INFORMATION (Cont’d) Table 3. ROM version Ordering Information Sales Type ROM ST6215CB1/XXX ST6215CB6/XXX ST6215CB3/XXX 1836 Bytes ST6215CM1/XXX ST6215CM6/XXX ST6215CM3/XXX ST6225CB1/XXX ST6225CB6/XXX ST6225CB3/XXX 3884 Bytes ST6225CM1/XXX ST6225CM6/XXX ST6225CB3/XXX ST6225CN1/XXX ST6225CN6/XXX ST6225CN3/XXX ST6215C/25C Temperature Range Package 0 to +70 C -40 ...

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