Output Compare; Figure 52. Input Capture Block Diagram; Figure 53. Input Capture Timing Diagram - STMicroelectronics ST72361 Auto Series Manual

8-bit mcu for automotive with flash or rom, 10-bit adc, 5 timers, spi, linsci
Table of Contents

Advertisement

16-bit timer

Figure 52. Input capture block diagram

ICAP1
pin
ICAP2
pin

Figure 53. Input capture timing diagram

COUNTER REGISTER
12.3.5

Output compare

In this section, the index, i, may be 1 or 2 because there are two output compare functions in
the 16-bit timer.
This function can be used to control an output waveform or indicate when a period of time
has elapsed.
When a match is found between the Output Compare register and the free running counter,
the output compare function:
Assigns pins with a programmable value if the OCiE bit is set
Sets a flag in the status register
Generates an interrupt if enabled
Two 16-bit registers Output Compare Register 1 (OC1R) and Output Compare Register 2
(OC2R) contain the value to be compared to the counter register each timer clock cycle.
OCiR
108/279
EDGE DETECT
EDGE DETECT
CIRCUIT2
IC2R Register
16-BIT
16-BIT FREE RUNNING
COUNTER
TIMER CLOCK
FF01
ICAPi PIN
ICAPi FLAG
ICAPi REGISTER
Note: The rising edge is the active edge.
MS Byte
OCiHR
Doc ID 12468 Rev 3
ICIE
CIRCUIT1
IC1R Register
ICF1
FF02
ST72361xx-Auto
(Control Register 1) CR1
IEDG1
(Status Register) SR
ICF2
0
0
0
(Control Register 2) CR2
CC1
CC0
IEDG2
FF03
FF03
LS Byte
OCiLR

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ST72361 Auto Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents