ST92150JDV1QAuto STMicroelectronics, ST92150JDV1QAuto Datasheet - Page 171

no-image

ST92150JDV1QAuto

Manufacturer Part Number
ST92150JDV1QAuto
Description
8/16-bit single voltage Flash MCU family with RAM, E3 TM(emulated EEPROM), CAN 2.0B and J1850 BLPD
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST92150JDV1QAuto

Internal Memory
Single Voltage FLASH up to 256 Kbytes, RAM up to 8Kbytes, 1K byte E3 TM (Emulated EEPROM)
Minimum Instruction Time
83 ns (24 MHz int. clock)
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).
ST92124xxx-Auto/150xxxxx-Auto/250xxxx-Auto
– 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.
Figure
96).
171/430
9

Related parts for ST92150JDV1QAuto