ST92195C STMicroelectronics, ST92195C Datasheet - Page 84

no-image

ST92195C

Manufacturer Part Number
ST92195C
Description
48-96 Kbyte Rom Hcmos Mcu With On-screen Display And Teletext Data Slicer
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST92195C3B1
Quantity:
108
Part Number:
ST92195C3B1
Manufacturer:
ST
0
Part Number:
ST92195C3B1/EBZ
Manufacturer:
ST
Quantity:
23
Part Number:
ST92195C3B1/EBZ
Quantity:
6
Part Number:
ST92195C3B1/EBZ
Manufacturer:
ST
0
Part Number:
ST92195C3B1/EUN
Manufacturer:
ST
0
Part Number:
ST92195C3B1/EUX
Manufacturer:
ST
Quantity:
192
Part Number:
ST92195C3B1/EUX
Manufacturer:
ST
0
Part Number:
ST92195C3B1/MST
Manufacturer:
ST
0
Part Number:
ST92195C3B1/OBC
Manufacturer:
ST
Quantity:
61
STANDARD TIMER (Cont’d)
7.2.2.4 Standard Timer Output Modes
OUTPUT modes are selected using 2 bits of the
STC register: OUTMD1 and OUTMD2.
No Output Mode (OUTMD1 = “0”, OUTMD2 = “0”)
The output is disabled and the corresponding pin
is set high, in order to allow other alternate func-
tions to use the I/O pin.
Square Wave Output Mode (OUTMD1 = “0”,
OUTMD2 = “1”)
The Standard Timer toggles the state of the
STOUT pin on every End Of Count condition. With
INTCLK = 24MHz, this allows generation of a
square wave with a period ranging from 333ns to
5.59 seconds.
PWM Output Mode (OUTMD1 = “1”)
The value of the OUTMD2 bit is transferred to the
STOUT output pin at the End Of Count. This al-
lows the user to generate PWM signals, by modi-
fying the status of OUTMD2 between End of Count
events, based on software counters decremented
on the Standard Timer interrupt.
7.2.3 Interrupt Selection
The Standard Timer may generate an interrupt re-
quest at every End of Count.
Bit 2 of the STC register (INTS) selects the inter-
rupt source between the Standard Timer interrupt
and the external interrupt pin. Thus the Standard
Timer Interrupt uses the interrupt channel and
takes the priority and vector of the external inter-
rupt channel.
If INTS is set to “1”, the Standard Timer interrupt is
disabled; otherwise, an interrupt request is gener-
ated at every End of Count.
Note: When enabling or disabling the Standard
Timer Interrupt (writing INTS in the STC register)
an edge may be generated on the interrupt chan-
nel, causing an unwanted interrupt.
To avoid this spurious interrupt request, the INTS
bit should be accessed only when the interrupt log-
ic is disabled (i.e. after the DI instruction). It is also
necessary to clear any possible interrupt pending
requests on the corresponding external interrupt
channel before enabling it. A delay instruction (i.e.
a NOP instruction) must be inserted between the
reset of the interrupt pending bit and the INTS
write instruction.
7.2.4 Register Mappingl
Each Standard Timer has 4 registers mapped into
Page 11 in Group F of the Register File
In the register description on the following page,
register addresses refer to STIM0 only.
STD Timer Register
ST92195C/D - STANDARD TIMER (STIM)
STIM0
STIM1
STH0
STP0
STC0
STH2
STP2
STC2
STL0
STL2
R240 (F0h)
R241 (F1h)
R242 (F2h)
R243 (F3h)
R248 (F8h)
R249 (F9h)
R250 (FAh)
R251 (FBh)
Register Address
84/249

Related parts for ST92195C