XC68HC705F32 Motorola, XC68HC705F32 Datasheet - Page 65

no-image

XC68HC705F32

Manufacturer Part Number
XC68HC705F32
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
XC68HC705F32FU
Quantity:
110
6.2.2
The timer status register ($002E) contains the status bits corresponding to the timer interrupt
conditions – IC1F, IC2F, OC1F, TOF, TCAP1, TCAP2 and OC2F.
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.
IC1F — Input capture 1 flag
This bit is set when the selected polarity of edge is detected by the input capture edge detector 1
at TCAP1; an input capture interrupt will be generated, if IC1IE is set. IC1F is cleared by reading
the TSR and then the input capture 1 low register ($0021).
IC2F — Input capture 2 flag
This bit is set when the selected polarity of edge is detected by the input capture edge detector 2
at TCAP2; an input capture interrupt will be generated if IC2IE is set. IC2F is cleared by reading
the TSR and then the input capture 2 low register ($0025).
OC1F — Output compare 1 flag
This bit is set when the output compare register 1 contents match those of the free-running
counter; an output compare interrupt will be generated if OC1IE is set. OC1F is cleared by reading
the TSR and then the output compare 1 low register ($0023).
TOF — Timer overflow status 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 ($0029).
MC68HC05F32
Timer status (TSR)
1 (set)
0 (clear) –
1 (set)
0 (clear) –
1 (set)
0 (clear) –
1 (set)
0 (clear) –
Timer status register (TSR)
A valid input capture has occurred.
No input capture has occurred.
A valid input capture has occurred.
No input capture has occurred.
A valid output compare has occurred.
No output compare has occurred.
Timer overflow has occurred.
No timer overflow has occurred.
Address
$002E
16-BIT PROGRAMMABLE TIMER
IC1F
bit 7
IC2F
bit 6
OC1F
bit 5
TOF TCAP1 TCAP2 OC2F
bit 4
bit 3
bit 2
bit 1
0
bit 0
MOTOROLA
Undefined
on reset
State
TPG
6-7
6

Related parts for XC68HC705F32