English
Language : 

ST7263BHX_09 Datasheet, PDF (64/186 Pages) STMicroelectronics – Low speed USB 8-bit MCU family with up to 32 KB Flash/ROM, DFU capability, 8-bit ADC, WDG, timer, SCI and I²C
On-chip peripherals
ST7263Bxx
Note: 1 After reading the ICiHR register, transfer of input capture data is inhibited and ICFi will never
be set until the ICiLR register is also read.
2 The ICiR register contains the free running counter value which corresponds to the most
recent input capture.
3 The two input capture functions can be used together even if the timer also uses the two
output compare functions.
4 In One Pulse mode and PWM mode only input Capture 2 can be used.
5 The alternate inputs (ICAP1 and ICAP2) are always directly connected to the timer. So any
transitions on these pins activates the input capture function.
Moreover if one of the ICAPi pins is configured as an input and the second one as an output,
an interrupt can be generated if the user toggles the output pin and if the ICIE bit is set.
This can be avoided if the input capture function i is disabled by reading the ICiHR (see note
1).
6 The TOF bit can be used with interrupt generation in order to measure events that go
beyond the timer range (FFFFh).
Figure 32. Input Capture block diagram
ICAP1
pin
EDGE DETECT EDGE DETECT
ICIE
ICAP2
CIRCUIT2
CIRCUIT1
pin
IC2R register
IC1R register
ICF1
16-BIT
16-BIT FREE RUNNING
COUNTER
(Control register 1) CR1
IEDG1
(Status register) SR
ICF2
0
0
0
(Control register 2) CR2
CC1 CC0 IEDG2
Figure 33. Input Capture timing diagram
TIMER CLOCK
COUNTER REGISTER
ICAPi PIN
ICAPi FLAG
ICAPi REGISTER
FF01
FF02
1. The rising edge is the active edge.
FF03
FF03
64/186
Doc ID 7516 Rev 8