Threebasic memory spacesare availableto support this wide range of configurations: Program
Memory(internal and external),Data Memory (external) and the Register File, which includes the
controlandstatusregistersoftheon-chipperipherals.
Two16 bit MultiFunctionTimers,each withan 8bit
Prescaler and 13 operating modes allow simple
use for complex waveform generationand measurement, PWM functions and many other systemmsiming functions by the usage of the two
associatedDMA channelsfor each timer.
In addition there is an 8 channelAnalog to Digital
Converterwith integralsampleand hold,fast11µs
conversion time and 8 bit resolution. An Analog
Watchdog feature is included for two input channels.
Completingthe device is a full duplex Serial Communications Interface with an integral 110 to
375,000 baud rate generator, asynchronous and
1.5Mbyte/ssynchronouscapability (fully programmable format) and associated address/wake-up
option, plustwo DMA channels.
1.2 PINDESCRIPTION
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,active low, 3-state).
Data
Strobeprovides thetimingfordata movementto or
fromPort0 foreachmemorytransfer.Duringawrite
cycle, data out is valid at the leading edge of DS.
Duringareadcycle,DataInmustbevalidpriortothe
trailingedgeof DS.WhentheST9040accessesonchipmemory,DSisheldhighduringthewholememorycycle.Itcanbeplacedin ahighimpedancestate
alongwith Port0,Port1, ASandR/W.
R/W.
Read/Write(output, 3-state).
Read/Write determines the direction of data transfer for external
memorytransactions.R/W islowwhenwritingtoexternalprogramordatamemory,andhighforallother
transactions.It can be placed in a highimpedance
statealongwithPort0, Port1, ASandDS.
RESET/V
PP
.
Reset (input, active low) or VPP(in-
put).
The ST9 is initialised by the Reset signal.
With the deactivation of RESET, program execution begins from the Program memory location
pointed to by the vector contained in program
memory locations 00h and 01h. In the EPROM
programmingMode, this pin acts as the programmingvoltage inputVPP.
iNT0,INT7. Externalinterrupts(input,activeonrising or falling edge). Externalinterrupt inputs 0 and
7 respectively.INT0 channel may alsobe used for
the timerwatchdoginterrupt.
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
.
Analog V
DD
of the Analog to Digital Con-
verter.
AV
SS.
Analog VSSof the Analog to Digital Con-
verter.
Mustbe tied to V
SS.
VDD.
MainPower SupplyVoltage (5V±10%)
V
SS
.
DigitalCircuit Ground.
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/OPORT ALTERNATEFUNCTIONS
Each pin of the I/O ports of theST90E40/T36may
assumesoftwareprogrammableAlternative Functions as shown in the Pin Configuration Tables.
Due to Bonding options for the packages, some
functions may not be present, Table 3 shows the
FunctionsallocatedtoeachI/OPortpin anda summaryof packagesfor which theyare available.
GENERALDESCRIPTION(Continued)
ST90E40- ST90T40
39/56