Figure3. ST9040 Block Diagram
1.2 PIN DESCRIPTION
AS.
Address Strobe (output, active low, 3-state).
Address Strobe is pulsed low once at the beginning of each memory cycle. The rising edge of AS
indicates that address, Read/Write (R/W), and
DataMemorysignalsare validforprogramor data
memorytransfers. Under programcontrol, AScan
be placed in a high-impedance state along with
Port0andPort 1, Data Strobe(DS) andR/W.
DS.
DataStrobe(output,activelow,3-state).
Data
Strobeprovidesthe timingfor datamovement toor
from Port 0 for each memory transfer. During a
writecycle, data out is valid at the leadingedgeof
DS
. Duringa readcycle,DataInmustbevalid prior
to the trailing edge of DS. When the ST9040 accesseson-chipmemory,DSis held highduringthe
wholememorycycle.It can be placed ina highimpedancestatealongwithPort0,Port1,ASandR/W.
R/W.
Read/Write (output, 3-state).
Read/Write
determines the direction of data transfer for external memory transactions. R/W is low when writing
to external program ordata memory, and high for
all othertransactions.Itcanbe placedin a high impedancestatealongwithPort0,Port1, ASandDS.
RESET.
Reset(input,active low).
TheST9isinitialisedby theResetsignal.WiththedeactivationofRESET, program execution begins from the Program
memorylocationpointedto by the vectorcontained
inprogrammemorylocations00hand01h.
INT0,INT7.Externalinterrupts(input,activeonrising or falling edge). Externalinterrupt inputs 0 and
7 respectively.INT0channelmay alsobe used for
the timerwatchdog interrupt.
OSCIN, OSCOUT
.
Oscillator (input and output).
These pins connect a parallel-resonant crystal
(24MHz maximum), or an external source to the
on-chipclockoscillatorand buffer.OSCINistheinput of the oscillatorinverterand internal clockgenerator; OSCOUT is the output of the oscillator
inverter.
AV
DD
. AnalogVDDoftheAnalogtoDigitalConverter.
AV
SS.
Analog VSSof the Analog to Digital Con-
verter.
MustbetiedtoV
SS
.
VDD. Main Power SupplyVoltage (5V± 10%)
V
SS
. DigitalCircuitGround.
P0.0-P0.7,P1.0-P1.7, P2.0-P2.7P3.0-P3.7, P4.0P4.7, P5.0-P5.7, P7.0-P7.7
I/O Port Lines (In-
put/Output, TTL or CMOS compatible)
. 56 lines
grouped into I/O ports of 8 bits, bit programmable
under program control as general purpose I/O or
as alternatefunctions.
1.2.1 I/O PortAlternate Functions
Each pin of the I/O ports of the ST9040 may assume software programmable Alternative Functions as shownin the Pin Configuration Drawings.
Table 1-3 shows the Functions allocated to each
I/OPort pinsand a summaryofpackagesforwhich
they are available.
CPU
16-Bit TIMER / WATCHDOG + SPI
SCI
WITH DMA
I/O PORT 7
(SCI)
8
256 Bytes
REGISTER FILE
2 x 16-bit TIMER
WITH DMA
I/O PORT 3
( TIMERS )
8
I/O PORT 0
(Address/Data)
8
I/O PORT 1
( Address )
8
512 B y t es
EEPROM
256 Bytes
RAM
16k Byt es
ROM
I/O PORT 2
( SPI )
8
I/O PORT 4
( Analog Inputs )
8
A/D
CONVERTER
I/O PORT 5
WITH HANDSHAKE
8
MEMORY BUS
REGISTER BUS
VR001385
INT0 INT7
AV
DDAVSS
ST9040
6/56