ST92F150-EMU2 STMicroelectronics, ST92F150-EMU2 Datasheet - Page 171

no-image

ST92F150-EMU2

Manufacturer Part Number
ST92F150-EMU2
Description
BOARD EMULATOR FOR ST9 SERIES
Manufacturer
STMicroelectronics
Series
ST9-EMU2r
Type
Microcontrollerr
Datasheets

Specifications of ST92F150-EMU2

Contents
ST9 Visual Debug IDE, ST9 HDS2V2 Mainboard, Probe, Sockets, Adapters, Power Supply,Cables & Documentation
For Use With/related Products
ST9 MCUs
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
497-3101
EXTENDED FUNCTION TIMER (Cont’d)
10.3.3.3 Input Capture
In this section, the index, i, may be 1 or 2.
The two input capture 16-bit registers (IC1R and
IC2R) are used to latch the value of the free run-
ning counter after a transition detected by the
ICAPi pin (see figure 5).
ICi Rregister is a read-only register.
The active transition is software programmable
through the IEDGi bit of the Control Register (CRi).
Timing resolution is one count of the free running
counter: (
Procedure
To use the input capture function select the follow-
ing in the CR2 register:
– Select the timer clock (CC[1:0] (see
– Select the edge of the active transition on the
And select the following in the CR1/CR3 register:
– To enable both ICAP1 & ICAP2 interrupts, set
ICAP2 pin with the IEDG2 bit, if ICAP2 is active.
the ICIE bit in the CR1 register (in this case, the
IC1IE & IC2IE enable bits are not significant).
To enable only one ICAP interrupt, reset the ICIE
bit and set the IC1IE (or IC2IE) bit.
Note: If ICIE is reset and both IC1IE & IC2IE are
set, both interrupts are enabled.
In all cases, set the EFTIS bit to enable timer in-
terrupts globally
ICiR
INTCLK /CC[1:0]
MS Byte
ICiHR
).
LS Byte
ICiLR
Table
36).
– Select the edge of the active transition on the
When an input capture occurs:
– ICFi bit is set.
– The ICiR register contains the value of the free
– A timer interrupt is generated under the following
Clearing the Input Capture interrupt request is
done by:
1. An access (read or write) to the SR register
2. An access (read or write) to the ICiLR register.
Note: After reading the ICiHR register, transfer of
input capture data is inhibited until the ICiLR regis-
ter is also read.
The ICiR register always contains the free running
counter value which corresponds to the most re-
cent input capture.
ICAP1 pin with the IEDG1 bit if ICAP1 is active.
running counter on the active transition on the
ICAPi pin (see
two conditions :
1. If the ICIE bit (for both ICAP1 & ICAP2) and
2. If the ICIE bit is reset and the IC1IE and /or
while the ICFi bit is set.
the EFTIS bit are set.
Note: If the ICIE bit is set, the status of the
IC1IE/IC2IE bits in the CR3 register is not sig-
nificant.
IC2IE bits are set and the EFTIS bit is set.
Otherwise, the interrupt remains pending until
the related enable bits are set.
EXTENDED FUNCTION TIMER (EFT)
Figure
96).
171/429
9

Related parts for ST92F150-EMU2