Professional Documents
Culture Documents
ST9040 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2.1 I/O Port Alternate Functions . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.2 EEPROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.2.2 EEPROM Programming Procedure . . . . . . . . . . . . . . . . . . 11
1.3.2.3 Parallel Programming Procedure . . . . . . . . . . . . . . . . . . . 11
1.3.2.4 EEPROM Programming Voltage . . . . . . . . . . . . . . . . . . . 11
1.3.2.5 EEPROM Programming Time . . . . . . . . . . . . . . . . . . . . . 11
1.3.2.6 EEPROM Interrupt Management . . . . . . . . . . . . . . . . . . . 11
1.3.2.7 EEPROM Control Register . . . . . . . . . . . . . . . . . . . . . . 12
1.3.3 REGISTER MAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2 ELECTRICAL CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
ST90E40 / ST90T40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
1.2.1 I/O PORT ALTERNATE FUNCTIONS . . . . . . . . . . . . . . . . . . . . 39
1.1 MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.2 EPROM PROGRAMMING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
1.2.1 Eprom Erasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
ST90R40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
1.1 GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
1.2 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
1.2.1 I/O PORT ALTERNATE FUNCTIONS . . . . . . . . . . . . . . . . . . . . 52
1.3 MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2/56
ST9040
3/56
ST9040
4/56
ST9040
1.1GENERAL DESCRIPTION
The ST9040 is a ROM member of the ST9 family of software control to provide timing, status signals,
microcontrollers, completely developed and pro- an address/databus for interfacing external mem-
duced by SGS-THOMSON Microelectronics using ory, timer inputs and outputs, analog inputs, exter-
a proprietary n-well HCMOS process. nal interrupts and serial or parallel I/O with or
The ST9040 peripheral and functional actions are without handshake.
fully compatible throughout the ST903x/4x family. Three basic memory spaces are available to support
This datasheet will thus provide only information this wide range of configurations: Program Memory
specific to this ROM device. (internaland external), Data Memory (internaland ex-
ternal)andtheRegisterFile, which includesthecontrol
THE READER IS ASKED TO REFER TO THE andstatus registers of theon-chip peripherals.
DATASHEET OF THE ST9036 ROM-BASED DE-
VICE FOR FURTHER DETAILS. Two 16 bit MultiFunction Timers, each with an 8 bit
Prescaler and 13 operating modes allow simple
The nucleus of the ST9040 is the advanced Core use for complex waveform generation and meas-
which includes the Central Processing Unit (CPU), urement, PWM functions and many other system
the Register File, a 16 bit Timer/Watchdog with 8 timing functionsby the usage of the two associated
bit Prescaler, a Serial Peripheral Interface support- DMA channels for each timer. In addition there is
ing S-bus, I2C-bus and IM-bus Interface,plus two 8 an 8 channel Analog to Digital Converter with inte-
bit I/O ports. The Core has independent memory gral sample and hold, fast 11s conversion time
and register buses allowing a high degree of pipe- and 8 bit resolution. An Analog Watchdog feature
lining to add to the efficiency of the code execution is included for two input channels.
speed of the extensive instruction set. The power-
ful I/O capabilities demanded by microcontroller Completing the device is a full duplex Serial Com-
applications are fulfilled by the ST9040 with up to munications Interface with an integral 110 to
56 I/O lines dedicated to digital Input/Output. 375,000 baud rate generator, asynchronous and
These lines are grouped into up to seven 8 bit I/O 1.5Mbyte/s synchronous capability (fully program-
Ports and can be configured on a bit basis under mable format) and associated address/wake-up
option, plus two DMA channels.
5/56
ST9040
IN T0 INT7
8
MEMORY BUS
REGISTER BUS
I/O PORT 0 I/O PORT 1 I/O PORT 2 I/O PORT 3 2 x 16-bi t TIMER I/O PORT 4 A / D I/O PORT 5
( Address/Data ) ( Address ) ( SPI ) ( TIMERS ) W ITH DMA ( Analog Inputs ) CONVERTER WITH HANDSHAKE
8 8 8 8 8 8
AVD D AVS S
VR001385
6/56
ST9040
7/56
ST9040
8/56
ST9040
ADDRESS SPACES
Table 1-4. Group F Peripheral Organization
Applicable for ST9040
DEC 00 02 03 08 09 10 24 63
DEC HEX 00 02 03 08 09 0A 18 3F
PORT 0 PORT 4
R241 RF1 EEPROMCR RF1
9/56
ST9040
1.3 MEMORY
1.3.1 INTRODUCTION EEPROM will cause the start of an ERASE/WRITE
The memory of the ST9 is divided into two spaces: cycle at the addressed location. Word (16 bit)
writes are not allowed.
- Data memory with up to 64K (65536) bytes The programming cycle is self-timed, with a typical
- Program memory with up to 64K (65536) bytes programming time of 6ms. The voltage necessary
Thus, there is a total of 128K bytes of addressable for programming the EEPROM is internally gener-
memory space. ated with a +18V charge pump circuit.
The 16K bytes of on-chip ROM memory of the Up to 16 bytes of data may be programmed into
ST9040 are selected at memory addresses 0 the EEPROM during the same write cycle by using
through 3FFFh (hexadecimal) in the PROGRAM the PARALLEL WRITE function.
space. A standbymode is also available which disables all
The DATA space includes the 512 bytes of on-chip power consumption sources within the EEPROM
EEPROM at addresses 0 through 1FFh and the for low power requirements. When STBY is high,
256 bytes of on-chip RAM memory at addresses any attempt to access the EEPROM memory will
200h through 2FFh. produce unpredictable results. After the re-ena-
1.3.2 EEPROM bling of the EEPROM, a delay of 6 INTCLK cycles
must be allowed before the selection of the
1.3.2.1 Introduction EEPROM.
The EEPROMmemory provides user-programma-
ble non-volatile memory on-chip, allowing fast and The EEPROM of the ST9040 has been imple-
reliable storage of user data. As there is also no mented in a high reliability technology developed
off-chip access required, as for an external serial by SGS-THOMSON, this, together with the double
EEPROM, high security levels can be achieved. bit structure,allow 300k Erase/Write cycles and 10
year data retention to be achieved on a microcon-
The EEPROM memory is read as normal RAM troller.
memory at Data Space addresses 0 to 1FFh, how-
ever one WAIT cycle is automatically added for a Control of the EEPROM is performed through one
Read cycle, while a byte write cycle to the registermapped at register addressR241 in Page0.
10/56
ST9040
EEPROM (Continued)
1.3.2.2 EEPROM Programming Procedure The constraint is that each of the bytes occur in the
The programming of a byte of EEPROMmemory is same ROW of the EEPROM memory (A4 constant,
equivalent to writing a byte into a RAM location af- A3-A0 variable). To operate this mode, the Parallel
ter verifying that EEBUSY bit is low. Instructions Mode enable bit, PLLEN, must be set. The data
operating on word data (16 bits) will not access the written is then latched into buffers (at the ad-
EEPROM. dresses specified, which may be non-sequential)
The EEPROM ENABLE bit EEWEN must first be and then transferred to the EEPROM memory by
set before writing to the EEPROM. When this bit is the setting of the PLLST bit of the control register.
low, attempts to write data to the EEPROM have Both PLLST and PLLEN are internally reset at the
no affect, this prevents any spurious memory ac- end of the programming cycle. Any attempt to read
cesses from affecting the data in the EEPROM. the EEPROM memory when PLLEN is set will give
invalid data. In the event that the data in the buffer
Termination of the write operation can be detected latches is not required to be written into the memory
by polling on the EEBUSY status bit, or by inter- by the setting of PLLST, the correct way to terminate
rupt, taking the interrupt vector from the External the operation is to reset PLLEN and to perform a
Interrupt 4 channel. The selection of the interrupt is dummy read of theEEPROMmemory. This termina-
made by EEPROM Interrupt enable bit EEIEN. It tion will clear all data present in the latches.
should be noted that the Mask bit of External Inter-
rupt 4 should be set, and the Interrupt Pending bit 1.3.2.4 EEPROM Programming Voltage
reset, before the setting of EEIEN to prevent un- No external Vpp voltage is required, an internal
wanted interrupts. A delay (eg a nop instruction) 18Volt charge-pump gives the required energy by
should also be included between the operationson a dedicated oscillator pumping at a typical fre-
the mask and pending bits of External Interrupt 4. quency of 5MHz, regardless of the external clock.
If polling on EEBUSY is used, a delay of 6 INTCLK 1.3.2.5 EEPROM Programming Time
clock cycles is necessary after the end of program- No timing routine is required to control the pro-
ming, this can be a nop instruction or, normally, gramming time as dedicated circuitry takes care of
therequired time to test the EEBUSY bit and to the EEPROM programming time (The typical pro-
branch to the next instruction will be sufficient. gramming time is 6ms).
While EEBUSY is active, any attempt to access the 1.3.2.6 EEPROM Interrupt Management
EEPROM matrix will be aborted and the data read At the end of each write procedure the EEPROM
will be invalid. EEBUSY is a read only bit and can- sends an interrupt request (if EEIEN bit is set). The
not be reset by the user if active. EEPROM shares its interrupt channel with the ex-
An erased bit of the EEPROM memory will read as ternal interrupt source INT4, from which the priority
a logic 0, while a programmed cell will be read as level is derived.
a logic 1. For applications requiring the highest Care must be taken when EEIEN is reset. The as-
level of reliability, the Verify Mode, set by EEPROM sociated external interrupt channel must be dis-
control register bit VRFY, allows the reading of the abled (by reseting bit 4 of EIMR, R244) along with
EEPROM memory cells with a reduced gate volt- reseting the interrupt pending bit (bit 4 of EIPR,
age (typically 20%). If the EEPROM memory cell R243) to prevent unwanted interrupts. A delay in-
has been correctly programmed, a logic 1 will be struction (at least 1 nop instruction) must be in-
read with the reduced voltage,otherwise a logic 0 serted between these two operations
will be read. WARNING. The content of the EEPROM of the
1.3.2.3 Parallel Programming Procedure ST9040 family after the out-going test at SGS-
Parallel programming is a feature of the EEPROM THOMSONs manufacturing location is not guar-
macrocell. One up to sixteen bytes of a same row enteed.
can be programmed at once.
11/56
ST9040
EEPROM (Continued)
1.3.2.7 EEPROM Control Register Note. After EESTBY is reset, the user must wait 6
EECR R241 (F1h) Page 0 Read/Write CPUCLK cycles (e.g. 1 nop instruction) before se-
(except EEBUSY: read only) lecting the EEPROM.
EEPROM Control Register bit 4 = EEIEN: EEPROM Interrupt Enable. INTEN
Reset value : 0000 0000b (00h) = 1 disables the external interrupt source INT4,
and enables the EEPROM to send its interrupt re-
7 0 quest to the central interrupt unit at the end of each
write procedure.
0 VERIFY EESTBY EEIEN PLLST PLLEN EEBUSY EEWEN
bit 3 = PLLST: Parallel Write Start. Setting PLLST
bit 7 = B7: This bit is forced to 0 after reset and to 1 starts the parallel writing procedure.It can be
MUST not be modified by the user. set only if PLLEN is alreadyset. PLLST is internally
bit 6 = VERIFY: Set Verify mode. Verify (active reset at the end of the programming sequence.
high) is used to activate the verify mode. bit 2 = PLLEN: Parallel write Enable. Setting
The verify mode provides a guarentee of good re- PLLEN to 1 enables the parallel writing mode
tention of the programmed bit. When active, the which allows the user to write up to 16 bytes at the
reading voltage on the cell gate is decreased from same time. PLLEN is internally reset at the end of
1.2V to 0.0V, decreasing the current from the pro- the programming sequence.
grammed cell by 20%. If the cell is well pro- bit 1 = EEBUSY: BUSY. When this read only bit is
grammed (to 1), a 1 will still be read, otherwise high, an EEPROM write operation is in progress
a 0 will be read. and any attempt to access the EEPROM is
Note . The verify mode must not be used during an aborted.
erasing or a programming cycle). bit 0 = EEWEN: EEPROM Write Enable. Setting
bit 5 = EESTBY: EEPROM Stand-By. EESTBY = this bit allows programming of the EEPROM, when
1 switches off all power consumption sources in- low a writing attempt has no effect.
side the EEPROM. Any attempt to access the 1.3.3 REGISTER MAP
EEPROM when EESTBY = 1 will produce unpre- Please refer to the Register Map of the ST9036 for
dictable results. all general registers with the exceptionof the regis-
ter shown in the following table.
Table 1-5. Register Map Addendum
12/56
ST9040
2 ELECTRICAL CHARACTERISTICS
13/56
ST9040
DC ELECTRICAL CHARACTERISTICS
VDD = 5V 10% TA = 40 C to + 85C, unless otherwise specified)
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
VIHCK Clock Input High Level External Clock 0.7 VDD VDD + 0.3 V
VILCK Clock Input Low Level External Clock 0.3 0.3 VDD V
TTL 2.0 VDD + 0.3 V
VIH Input High Level
CMOS 0.7 VDD VDD + 0.3 V
TTL 0.3 0.8 V
VIL Input Low Level
CMOS 0.3 0.3 VDD V
VIHRS RESET Input High Level 0.7 VDD VDD + 0.3 V
VILRS RESET Input Low Level 0.3 0.3 VDD V
VHYRS RESET Input Hysteresis 0.3 1.5 V
VOH Output High Level Push Pull, Iload = 0.8mA VDD 0.8 V
Push Pull or Open Drain,
VOL Output Low Level 0.4 V
Iload = 1.6mA
Weak Pull-up Current Bidirectional Weak Pull-
IWPU 50 200 420 A
up, VOL = 0V
Active Pull-up Current,
IAPU VIN < 0.8V, under Reset 80 200 420 A
for INT0 and INT7 only
Input/Tri-State,
ILKIO I/O Pin Input Leakage 10 + 10 A
0V < VIN < VDD
ILKRS Reset Pin Input Leakage 0V < VIN < VDD 30 + 30 A
Alternate Function,
A/D Pin Input Leakage
ILKAD Open Drain, 3 +3 A
0V < VIN < VDD
Active Pull-up Input
ILKAP 0V < VIN < 0.8V 10 + 10 A
Leakage
ILKOS OSCIN Pin Input Leakage 0V < VIN < VDD 10 + 10 A
Note: All I/O Ports are configured in Bidirectional Weak Pull-up Mode with no DC load, External Clock pin (OSCIN) is driven by square wave
external clock. No peripheral working.
DC TEST CONDITIONS
14/56
ST9040
AC ELECTRICAL CHARACTERISTICS
(VDD = 5V 10% TA = 40 C to + 85C, unless otherwise specified)
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
15/56
ST9040
Value
N Symbol Parameter Unit Note
Min. Max.
83 ns 2
38 ns 2
Notes:
1. Clock divided by 2 internally (MODER.DIV2=1)
2. Clock not divided by 2 internally (MODER.DIV2=0)
CLOCK TIMING
16/56
ST9040
17/56
ST9040
18/56
ST9040
HANDSHAKE TIMING TABLE (VDD = 5V 10%, TA = 40C to +85C, Cload = 50pF, INTCLK = 12MHz,
Push-pull output configuration, unless otherwise specified)
Value (Note)
N Symbol Parameter OSCIN Divided OSCIN Not Divided Min. Max. Unit
By 2 By 2
TwCH+
TsPD Port Data to RDRDY (2P+2W+1)
4 (W+P) 16 ns
(RDY) Set-up Time TpC 25
TpC 25
Note: The value in the left hand two columns show the formula used to calculate the timing minimum or maximum from the oscillator clock
period, prescale value and number of wait cycles inserted.
The value in the right hand two columns show the timing minimum and maximum for an external clock at 24 MHz divided by 2, prescaler value
of zero and zero wait status.
Legend:
P = Clock Prescaling Value (R235.4,3,2)
W = Programmable Wait Cycles (R252.2.1.0/5,4,3) + External Wait Cycles
19/56
ST9040
HANDSHAKE TIMING
20/56
ST9040
BUS REQUEST/ACKNOWLEDGE TIMING TABLE (VDD = 5V 10%,TA = 40C to +85C, Cload = 50pF,
INTCLK = 12MHz, Push-pull output configuration, unless otherwise specified)
Value (Note)
N Symbol Parameter Unit
OSCIN Divided OSCIN Not Divided
Min. Max.
By 2 By 2
TpC+8 TwCL+12 50 ns
1 TdBR (BACK) BREQ to BUSACK
TpC(6P+2W+7)+65 TpC(3P+W+3)+TwCL+65 360 ns
BUSACK to Bus
3 TdBACK (BREL) 20 20 20 ns
Release
BUSACK to Bus
4 TdBACK (BACT) 20 20 20 ns
Active
Note: The value left hand two columns show the formula used to calculate the timing minimum or maximum from the oscillator clock period,
prescale value and number of wait cycles inserted.
The value right hand two columns show the timing minimum and maximum for an external clock at 24MHz divided by 2, prescale value of zero
and zero wait status.
Note : MEMINT = Group of memory interface signals: AS, DS, R/W, P00-P07, P10-P17
21/56
ST9040
EXTERNAL INTERRUPT TIMING TABLE (VDD = 5V 10%, TA = 40C to +85C, Cload = 50pF,
INTCLK = 12MHz, Push-pull output configuration, unless otherwise specified)
Value (Note)
1 TwLR Low Level Minimum Pulse Width in Rising Edge Mode 2TpC+12 TpC+12 95 ns
2 TwHR High Level Minimum Pulse Width in Rising Edge Mode 2TpC+12 TpC+12 95 ns
3 TwHF High Level Minimum Pulse Width in Falling Edge Mode 2TpC+12 TpC+12 95 ns
4 TwLF Low Level Minimum Pulse Width in Falling Edge Mode 2TpC+12 TpC+12 95 ns
Note: The value left hand two columns show the formula used to calculate the timing minimum or maximum from the oscillator clock period,
prescale value and number of wait cycles inserted.
The value right hand two columns show the timing minimum and maximum for an external clock at 24 MHz divided by 2, prescale value of zero
and zero wait status.
22/56
ST9040
SPI TIMING TABLE (VDD = 5V 10%, T A = 40C to +85C, Cload = 50pF, INTCLK = 12MHz,
Output Alternate Function set as Push-pull)
Value
N Symbol Parameter Unit
Min. Max.
SPI TIMING
23/56
ST9040
Values
N Symbol Parameter Unit
Min. Max.
WATCHDOG TIMING
24/56
ST9040
A/D CONVERTER
EXTERNAL TRIGGER TIMING (VDD = 5V 10%, TA = 40C to +85C, Cload = 50pF)
25/56
ST9040
OSCIN OSCIN
Value (3)
N Symbol Parameter Divided by 2 (2) Not Divided by 2 (2) Unit
Internal trigger
1 TwHIGH Tpc .5 x Tpc 41.5 - ns
pulse width
Internal trigger
2 TwLOW 6 x Tpc 3 x Tpc 250 - ns
pulse distance
Internal trigger
3 TwEXT active edges 276n x Tpc 138n x Tpc n x 11.5 - s
distance (1)
Internal delay
between INTRG
4 TwSTR rising edge and Tpc 3 x Tpc .5 x Tpc 1.5 x Tpc 41.5 125 ns
first conversion
start
26/56
ST9040
OSCIN OSCIN
Value (3)
N Symbol Parameter Divided by 2 (2) Not Divided by 2 (2) Unit
Notes:
1. n = number of autoscanned channels (1 < n < 8)
2. Variable clock (Tpc = OSCIN clock period)
3. CPUCLK = 12MHz
27/56
ST9040
Power-up time 60 s
Resolution 8 8
Monotonicity GUARANTEED
S/N 45 49 dB
Hold Capacitance 30 pF
Input Leakage 3 A
Notes:
1. The values are expected at 25 degree Centigrade with AVCC = 5V
2. LSBs, as used here, has a value of AVCC/256
3. @ 12MHz internal clock
4. Including sample time
5. It must be intended as the internal series resistance before the sampling capacitor
6. This is a typical expected value, but not a tested production parameter.
If V(i) is the value of the i-th transition level (0 < i < 254), the performance of the A/D co nverter has been valued as follows:
OFFSET ERROR = deviation between the actual V(0) and the ideal V(0) (=1/2 LSB)
GAIN ERROR = deviation between the actual V(254) and the ideal V(254) (=AVCC-3/2 LSB)
DNL ERROR = max {[V(i) - V(i-1)]/LSB - 1}
INL ERROR = max {[V(i) - V(0)]/LSB - i}
28/56
ST9040
29/56
ST9040
1 x mode FCK/8 Hz
FRxCKIN Frequency of RxCKIN
16 x mode FCK/4 Hz
1 x mode FCK/8 Hz
FTxCKIN Frequency of TxCKIN
16 x mode FCK/4 Hz
SCI TIMING
30/56
ST9040
Dim. mm inches
Min Typ Max Min Typ Max
A 3.40 0.134
A2 2.55 2.80 3.05 0.100 0.110 0.120
D 22.95 23.20 24.45 0.903 0.913 0.923
D1 19.90 20.00 20.10 0.783 0.787 0.791
D3 18.40 0.724
E 16.95 17.20 17.45 0.667 0.677 0.687
E1 13.90 14.00 14.10 0.547 0.551 0.555
E3 12.00 0.472
e 0.80 0.032
Number of Pins
N 80
ND 24
NE 16
31/56
ST9040
ORDERING INFORMATION
Sales Type Frequency Temperature Range Package
ST9040Q1/XX PQFP80
0C to + 70C
ST9040C1/XX 24MHz PLCC68
ST9040C6/XX -40C to + 85C PLCC68
Note: XX is the ROM code identifier that is allocated by SGS-THOMSON after receipt of all requi red options and the related ROM file.
32/56
ST9040
Customer Company : [. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]
Company Address : [. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]
[. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ]
Telephone : [. . . . . . . . . . . . . . . . . . . . . . . . . . ]
FAX : [. . . . . . . . . . . . . . . . . . . . . . . . . . ]
Contact : [. . . . . . . . . . . . . . . . . . . . . . . . . . ] Telephone (Direct) : [. . . . . . . . . . . . . . . . . . . . . . . . . . ]
Special Marking [ ] No
[ ] Yes 14 characters [ | | | | | | | | | | | | | ]
Authorized characters are letters, digits, ., -, / and spaces only.
Please consult your local SGS-THOMSON sales office for other marking details if required.
Notes :
Customer Signature :
Date :
33/56
ST9040
NOTES :
34/56
ST90E40
ST90T40
16K EPROM HCMOS MCU
WITH EEPROM, RAM AND A/D CONVERTER
36/56
ST90E40 - ST90T40
Table 2. ST90E40L-ST90T40C
Pin Name Pin Name Pin Name Pin Name
61 P44/AIN4 10 P35/T1OUTA 43 P70/SIN 60 AVSS
62 P57 11 P34/T1INA 42 P71/SOUT 59 AVDD
63 P56 12 P33/T0OUTB P72/CLKOUT 58 P47/AIN7
41
64 P55 13 P32/T0INB /TXCLK/INT4 57 P46/AIN6
65 P54 14 P31/T0OUTA P73/ADTRG 56 P45/AIN5
40
66 INT7 15 P30/P/D/T0INA /RXCLK/INT5 55 P43/AIN3
67 INT0 16 P17/A15 39 P74/P/D/INT6 54 P42/AIN2
68 P53 17 P16/A14 38 P75/WAIT 53 P41/AIN1
1 P52 18 P15/A13 P76/WDOUT 52 P40/AIN0
37
2 P51 19 P14/A12 /BUSREQ 51 P27/RRDY5
3 P50 20 P13/A11 P77/WDIN P26/INT3
36 50
4 OSCOUT 21 P12/A10 /BUSACK /RDSTB5/P/D
5 VSS 22 P11/A9 35 R/W 49 P25/WRRDY5
6 OSCIN 23 P10/A8 34 DS P24/INT1
48
7 RESET/VPP 24 P00/A0/D0 33 AS /WRSTB5
8 P37/T1OUTB 25 P01/A1/D1 32 VDD 47 P23/SDO
9 P36/T1INB 26 P02/A2/D2 31 P07/A7/D7 46 P22/INT2/SCK
30 P06/A6/D6 45 P21/SDI/P/D
29 P05/A5/D5 44 P20/NMI
28 P04/A4/D4
27 P03/A3/D3
37/56
ST90E40 - ST90T40
INT0 INT7
8
MEMORY BUS
REGISTER BUS
I/O PORT 0 I/O PORT 1 I/O PORT 2 I/O PORT 3 2 x 16-bit TIMER I/O PORT 4 A /D I/O PORT 5
( Address/Data ) ( Address ) ( SPI ) ( TIMERS ) W ITH DM A ( Ana log Inpu ts ) CONVERTER WITH HANDSHAKE
8 8 8 8 8 8
AVD D AVS S
VR0A1385
38/56
ST90E40 - ST90T40
39/56
ST90E40 - ST90T40
40/56
ST90E40 - ST90T40
41/56
ST90E40 - ST90T40
42/56
ST90E40 - ST90T40
DC ELECTRICAL CHARACTERISTICS
VDD = 5V 10% TA = 40C to + 85C, unless otherwise specified)
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
VIHCK Clock Input High Level External Clock 0.7 VDD VDD + 0.3 V
VILCK Clock Input Low Level External Clock 0.3 0.3 VDD V
TTL 2.0 VDD + 0.3 V
VIH Input High Level
CMOS 0.7 VDD VDD + 0.3 V
TTL 0.3 0.8 V
VIL Input Low Level
CMOS 0.3 0.3 VDD V
VIHRS RESET Input High Level 0.7 VDD VDD + 0.3 V
VILRS RESET Input Low Level 0.3 0.3 VDD V
VHYRS RESET Input Hysteresis 0.3 1.5 V
VOH Output High Level Push Pull, Iload = 0.8mA VDD 0.8 V
Push Pull or Open Drain,
VOL Output Low Level 0.4 V
Iload = 1.6mA
43/56
ST90E40 - ST90T40
DC TEST CONDITIONS
44/56
ST90E40 - ST90T40
AC ELECTRICAL CHARACTERISTICS
(VDD = 5V 10% TA = 40C to + 85C, unless otherwise specified)
Value
Symbol Parameter Test Conditions Unit
Min. Typ. Max.
45/56
ST90E40 - ST90T40
Dim. mm inches
Min Typ Max Min Typ Max
A 3.55 0.14
A2 3.40 0.133
D 23.90 0.941
D1 20.00 0.787
D3 18.40 0.724
E 17.90 0.705
E1 14.00 0.551
E3 12.00 0.472
7.62 0.3
e 0.80 0.032
Number of Pins
N 80
ND 24
NE 16
Dim. mm inches
Min Typ Max Min Typ Max
A 4.47 0.176
A1 0.89 0.035
A3 - -
B 0.48 0.019
B1 - -
D 25.1 0.990
D1 23.6 0.930
D3 20.3 0.800
E 25.1 0.990
E1 23.6 0.930
E3 20.3 0.800
8 0.32
e 1.27 0.050
Number of Pins
N 68
ND 16
NE 16
46/56
ST90E40 - ST90T40
ORDERING INFORMATION
Sales Type Frequency Temperature Range Package
(1)
ST90E40L0 CLCC68W
25C
(1)
ST90E40G0 CQFP80W
24MHz
ST90T40C6 -40C to + 85C PLCC68
ST90T40Q1 0C to + 70C PQFP80
Note . EPROM parts are tested at 25C only
47/56
ST90E40 - ST90T40
Notes:
48/56
ST90R40
ROMLESS HCMOS MCU
WITH EEPROM, RAM AND A/D CONVERTER
50/56
ST90R40
INT0 INT7
8
MEMORY BUS
REGISTER BUS
I/O PORT 0 I/O PORT 1 I/O PORT 2 I/O PORT 3 2 x 16-bit TIMER I/O PORT 4 A /D I/O PORT 5
( Address/Data ) ( Address ) ( SPI ) ( TIMERS ) W ITH DM A ( Ana log Inpu ts ) CONVERTER WITH HANDSHAKE
8 8 8 8 8 8
AVD D AVS S
VR0B1385
51/56
ST90R40
52/56
ST90R40
53/56
ST90R40
54/56
ST90R40
1.3 MEMORY
The memory of the ST90R40 is functionallydivided on-chip RAM memory at addresses 200h through
into two areas, the Register File and Memory. The 2FFh.
Memorymay optionallybe divided into two spaces, The External Memory spaces are addressedusing
each having a maximum of 65,536 bytes. The two the multiplexed address and data buses on Ports 0
memory spaces are separated by function, one and 1. Data Memory may be decodedexternally by
space for Program code, the other for Data. The using the P/D Alternate Function output. The on-
ST90R40 addresses all program memory in the chip general purpose (GP) Registers may be used
external PROGRAM space. The DATA space in- as RAM memory.
cludes the 512 bytes of on-chip EEPROM at ad-
dresses 0 through 1FFh and the 256 bytes of
55/56
ST90R40
ORDERING INFORMATION
Sales Type Frequency Temperature Range Package
ST90R40C6 24MHz -40C to + 85C PLCC68
Information furnished is believed to be accurate and reliable. However, SGS-THOMSON Microelectronics assumes no responsibility for the
consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No
license is granted by implication or otherwise under any patent or patent rights of SGS-THOMSON Microelectronics. Specifications mentioned
in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. SGS-
THOMSON Microelectronics products are not authorized for use as critical components in life support devices or systems without the express
written approval of SGS-THOMSON Microelectronics.
56/56