st72321j STMicroelectronics, st72321j Datasheet - Page 74
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
st72321j
Manufacturer Part Number
st72321j
Description
8-bit Mcu With Nested Interrupts, Flash, 10-bit Adc, 5 Timers, Spi, Sci, I2c Interface
Manufacturer
STMicroelectronics
Datasheet
1.ST72321J.pdf
(179 pages)
- Current page: 74 of 179
- Download datasheet (2Mb)
ST72321J
16-BIT TIMER (Cont’d)
Notes:
1. After a processor write cycle to the OC i HR reg-
2. If the OC i E bit is not set, the OCMP i pin is a
3. When the timer clock is f
4. The output compare functions can be used both
5. The value in the 16-bit OC
Figure 46. Output Compare Block Diagram
74/179
16-bit
ister, the output compare function is inhibited
until the OC i LR register is also written.
general I/O port and the OLVL i bit will not
appear when a match is found but an interrupt
could be generated if the OCIE bit is set.
OCMP i are set while the counter value equals
the OC i R register value (see
75). This behaviour is the same in OPM or
PWM mode.
When the timer clock is f
external clock mode, OCF i and OCMP i are set
while the counter value equals the OC i R regis-
ter value plus 1 (see
for generating external events on the OCMP i
pins even if the input capture mode is also
used.
OLV i bit should be changed after each suc-
cessful comparison in order to control an output
waveform or establish a new elapsed timeout.
16 BIT FREE RUNNING
OC1R Register
OUTPUT COMPARE
16-bit
CIRCUIT
OC2R Register
COUNTER
16-bit
Figure 48 on page
CPU
i
R register and the
CPU
Figure 47 on page
/4, f
/2, OCF i and
OC1E
CPU
OCIE
OC2E
OCF1
/8 or in
75).
FOLV2 FOLV1
Forced Compare Output capability
When the FOLV i bit is set by software, the OLVL i
bit is copied to the OCMP i pin. The OLV i bit has to
be toggled in order to toggle the OCMP i pin when
it is enabled (OC i E bit=1). The OCF i bit is then not
set by hardware, and thus no interrupt request is
generated.
The FOLVL i bits have no effect in both one pulse
mode and PWM mode.
(Control Register 2) CR2
(Control Register 1) CR1
OCF2
CC1
(Status Register) SR
OLVL2
CC0
0
0
OLVL1
0
Latch
Latch
1
2
OCMP2
OCMP1
Pin
Pin
Related parts for st72321j
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ST7-DVP3](/images/no-image3.png)
Part Number:
Description:
Low Cost, Real Time Emulator Series for ST7
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST7-EMU3](/images/no-image3.png)
Part Number:
Description:
Full-featured, real time emulator series for ST7
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST7-88](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![ST7-STICK](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
In-Circuit Programmer
Manufacturer:
STMicroelectronics
Datasheet:
![st7-56](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-40](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-48](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-30](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-34](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-36](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-28](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-24](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-20](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-16](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-10](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet: