UPSD3233 STMicroelectronics, UPSD3233 Datasheet - Page 54

no-image

UPSD3233

Manufacturer Part Number
UPSD3233
Description
Flash Programmable System Devices with 8032 Microcontroller Core
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPSD3233
Manufacturer:
ST
0
Part Number:
UPSD3233A-40T6
Manufacturer:
ST
0
Part Number:
UPSD3233A-40U6
Manufacturer:
ST
0
Part Number:
UPSD3233B
Manufacturer:
ST
0
Part Number:
UPSD3233B-24T6
Manufacturer:
ST
0
Part Number:
UPSD3233B-40T6
Manufacturer:
ST
Quantity:
5 530
Part Number:
UPSD3233B-40T6
Manufacturer:
ST
Quantity:
586
Part Number:
UPSD3233B-40T6
Manufacturer:
ST
Quantity:
20 000
Part Number:
UPSD3233B-40U6
Manufacturer:
COSEL
Quantity:
100
Part Number:
UPSD3233B-40U6
Manufacturer:
ST
Quantity:
20 000
Part Number:
UPSD3233BV-24T6
Manufacturer:
ST
Quantity:
200
UPSD3234A, UPSD3234BV, UPSD3233B, UPSD3233BV
TIMER/COUNTERS (TIMER 0, TIMER 1 AND TIMER 2)
The uPSD323X Devices has three 16-bit Timer/
Counter registers: Timer 0, Timer 1 and Timer 2.
All of them can be configured to operate either as
timers or event counters and are compatible with
standard 8032 architecture.
In the “Timer” function, the register is incremented
every machine cycle. Thus, one can think of it as
counting machine cycles. Since a machine cycle
consists of 6 CPU clock periods, the count rate is
1/6 of the CPU clock frequency or 1/12 of the os-
cillator frequency (f
In the “Counter” function, the register is increment-
ed in response to a 1-to-0 transition at its corre-
sponding external input pin, T0 or T1. In this
function, the external input is sampled during
S5P2 of every machine cycle. When the samples
show a high in one cycle and a low in the next cy-
cle, the count is incremented. The new count value
appears in the register during S3P1 of the cycle
Table 36. Control Register (TCON)
Table 37. Description of the TCON Bits
54/175
TF1
Bit
7
7
6
5
4
3
2
1
0
Symbol
TR1
TR1
TR0
TF1
TF0
IE1
IE0
IT1
IT0
6
OSC
).
Timer 1 Overflow Flag. Set by hardware on Timer/Counter overflow. Cleared by
hardware when processor vectors to interrupt routine
Timer 1 Run Control Bit. Set/cleared by software to turn Timer/Counter on or off
Timer 0 Overflow Flag. Set by hardier on Timer/Counter overflow. Cleared by hardware
when processor vectors to interrupt routine
Timer 0 Run Control Bit. Set/cleared by software to turn Timer/Counter on or off
Interrupt 1 Edge Flag. Set by hardware when external interrupt edge detected. Cleared
when interrupt processed
Interrupt 1 Type Control Bit. Set/cleared by software to specify falling-edge/low-level
triggered external interrupt
Interrupt 0 Edge Flag. Set by hardware when external interrupt edge detected. Cleared
when interrupt processed
Interrupt 0 Type Control Bit. Set/cleared by software to specify falling-edge/low-level
triggered external interrupt
TF0
5
TR0
4
following the one in which the transition was de-
tected. Since it takes 2 machine cycles (24 f
clock periods) to recognize a 1-to-0 transition, the
maximum count rate is 1/24 of the f
no restrictions on the duty cycle of the external in-
put signal, but to ensure that a given level is sam-
pled at least once before it changes, it should be
held for at least one full cycle. In addition to the
“Timer” or “Counter” selection, Timer 0 and Timer
1 have four operating modes from which to select.
Timer 0 and Timer 1
The “Timer” or “Counter” function is selected by
control bits C/ T in the Special Function Register
TMOD. These Timer/Counters have four operat-
ing modes, which are selected by bit-pairs (M1,
M0) in TMOD. Modes 0, 1, and 2 are the same for
Timers/ Counters. Mode 3 is different. The four op-
erating modes are de-scribed in the following text.
IE1
3
Function
IT1
2
IE0
1
OSC
. There are
IT0
0
OSC

Related parts for UPSD3233