mc68hc05x4dw Freescale Semiconductor, Inc, mc68hc05x4dw Datasheet - Page 116

no-image

mc68hc05x4dw

Manufacturer Part Number
mc68hc05x4dw
Description
Xc68hc705x4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Timer status
register (TSR)
16-Bit Programmable Timer
MC68HC05X4 Rev 1.0
Address:
The timer status register ($13) contains the status bits for the interrupt
conditions ICF, OCF, and TOF.
Accessing the timer status register satisfies the first condition required
to clear the status bits. The remaining step is to access the register
corresponding to the status bit.
ICF — Input capture flag
This bit is set when the selected polarity of edge is detected by the input
capture edge detector; an input capture interrupt will be generated, if
ICIE is set. ICF is cleared by reading the TSR and then the input capture
low register ($15).
OCF — Output compare flag
This bit is set when the output compare register contents match those of
the free-running counter; an output compare interrupt will be generated,
if OCIE is set. OCF is cleared by reading the TSR and then the output
compare low register ($17).
TOF — Timer overflow flag
This bit is set when the free-running counter overflows from $FFFF to
$0000; a timer overflow interrupt will occur, if TOIE is set. TOF is cleared
by reading the TSR and the counter low register ($19).
Reset:
Freescale Semiconductor, Inc.
For More Information On This Product,
1 = A valid input capture has occurred.
0 = No input capture has occurred.
1 = A valid output compare has occurred.
0 = No output compare has occurred.
1 = Timer overflow has occurred.
0 = No timer overflow has occurred.
$0013
Bit 7
ICF
u
16-Bit Programmable Timer
Go to: www.freescale.com
Figure 7. Timer Status Register (TSR)
OCF
6
u
TOF
5
u
4
0
0
3
0
0
2
0
0
1
0
0
Bit 0
8-ptimer
0
0

Related parts for mc68hc05x4dw