s908qc16vdse Freescale Semiconductor, Inc, s908qc16vdse Datasheet - Page 207

no-image

s908qc16vdse

Manufacturer Part Number
s908qc16vdse
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
17.3.2 Input Capture
With the input capture function, the TIM2 can capture the time at which an external event occurs. When
an active edge occurs on the pin of an input capture channel, the TIM2 latches the contents of the counter
into the TIM2 channel registers, T2CHxH:T2CHxL. The polarity of the active edge is programmable. Input
captures can be enabled to generate interrupt requests.
17.3.3 Output Compare
With the output compare function, the TIM2 can generate a periodic pulse with a programmable polarity,
duration, and frequency. When the counter reaches the value in the registers of an output compare
channel, the TIM2 can set, clear, or toggle the channel pin. Output compares can be enabled to generate
interrupt requests.
17.3.3.1 Unbuffered Output Compare
Any output compare channel can generate unbuffered output compare pulses as described in
Output
the new value over the old value currently in the TIM2 channel registers.
Freescale Semiconductor
(IF AVAILABLE)
BUS CLOCK
Compare. The pulses are unbuffered because changing the output compare value requires writing
INTERNAL
T2CLK
TSTOP
TRST
16-BIT COMPARATOR
16-BIT COMPARATOR
16-BIT COMPARATOR
T2CNTH:T2CNTL
T2MODH:T2MODL
T2CH1H:T2CH1L
T2CH0H:T2CH0L
16-BIT COUNTER
16-BIT LATCH
16-BIT LATCH
CHANNEL 0
CHANNEL 1
MC68HC908QC16 • MC68HC908QC8 • MC68HC908QC4 Data Sheet, Rev. 4
PRESCALER
T2CLK
Figure 17-2. TIM2 Block Diagram
ELS0B
ELS1B
MS0A
MS1A
PS2
ELS0A
ELS1A
PRESCALER SELECT
PS1
CH0F
MS0B
CH1F
PS0
CH0MAX
CH1MAX
CH0IE
CH1IE
TOV0
TOV1
TOIE
TOF
INTERRUPT
INTERRUPT
INTERRUPT
Functional Description
LOGIC
LOGIC
LOGIC
LOGIC
LOGIC
PORT
PORT
17.3.3
T2CH0
T2CH1
207

Related parts for s908qc16vdse