ST7263BE6 STMicroelectronics, ST7263BE6 Datasheet - Page 63

no-image

ST7263BE6

Manufacturer Part Number
ST7263BE6
Description
LOW SPEED USB 8-BIT MCU FAMILY WITH UP TO 32K FLASH/ROM, DFU CAPABILITY, 8-BIT ADC, WDG, TIMER, SCI and I2C
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7263BE6

4, 8, 16 Or 32 Kbytes Program Memory
high density Flash (HDFlash), FastROM or ROM with Read-Out and Write protection
ST7263Bxx
Input Capture
In this section, the index, i, may be 1 or 2 because there are two input capture functions in
the 16-bit timer.
The two 16-bit input capture registers (IC1R and IC2R) are used to latch the value of the
free running counter after a transition is detected on the ICAPi pin (see
Table 19.
ICiR register is a read-only register.
The active transition is software programmable through the IEDGi bit of Control registers
(CRi).
Timing resolution is one count of the free running counter: (
Procedure
To use the input capture function select the following in the CR2 register:
1.
2.
3.
When an input capture occurs:
Clearing the input Capture interrupt request (that is, clearing the ICFi bit) is done in two
steps:
1.
2.
Select the timer clock (CC[1:0]) (see
Select the edge of the active transition on the ICAP2 pin with the IEDG2 bit (the ICAP2
pin must be configured as floating input or input with pull-up without interrupt if this
configuration is available).
Select the following in the CR1 register:
a)
b)
ICFi bit is set.
The ICiR register contains the value of the free running counter on the active transition
on the ICAPi pin (see
A timer interrupt is generated if the ICIE bit is set and the I bit is cleared in the CC
register. Otherwise, the interrupt remains pending until both conditions become true.
Reading the SR register while the ICFi bit is set.
An access (read or write) to the ICiLR register.
Set the ICIE bit to generate an interrupt after an input capture coming from either
the ICAP1 pin or the ICAP2 pin
Select the edge of the active transition on the ICAP1 pin with the IEDG1 bit (the
ICAP1pin must be configured as floating input or input with pull-up without
interrupt if this configuration is available).
ICiR
IC/R register
Figure
Doc ID 7516 Rev 8
33).
MS Byte
ICiHR
Table
24).
f
CPU
/
CC[1:0]).
On-chip peripherals
LS Byte
Figure
ICiLR
32).
63/186

Related parts for ST7263BE6