MCMC68HC05L16 Freescale Semiconductor, Inc, MCMC68HC05L16 Datasheet - Page 87

no-image

MCMC68HC05L16

Manufacturer Part Number
MCMC68HC05L16
Description
M68hc05 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.3.2 Timer Status Register 2
TI2F — Timer Input 2 (EVI) Interrupt Flag
OC2F — Compare 2 Interrupt Flag
Bits 5 and 4 — Reserved
RTI2F — Reset Timer Input 2 Flag
ROC2F — Reset Output Compare 2 Flag
Bits 1 and 0 — Reserved
9.3.3 Output Compare Register 2
The OC2 register data is transferred to the buffer register when the CPU writes to TCNT2, when the
CMP2 presets the TCNT2, or when system resets.
When the OC2 buffer register matches the TCNT2 register, the OC2F bit in the TSR2 register is set and
TCNT2 is preset to $01.
Freescale Semiconductor
In event mode, the event edge sets TI2F. In gated time accumulation mode, the trailing edge of the
gate signal at the EVI input pin sets TI2F. When the TI2IE bit and this bit are set, an interrupt is
generated. This bit is a read-only bit and writes have no effect. The TI2F is cleared by writing a logic 1
to the RTI2F bit and on reset.
The OC2F bit is set when compare match is detected between counter 2 and OC2 register. When
OC2IE bit and this bit are set, an interrupt is generated. This bit is a read-only bit and writes have no
effect. The OC2F is cleared by writing a logic 1 to ROC2F bit and on reset.
These bits are not used and always read as logic 0.
The RTI2F bit is a write-only bit and always reads as logic 0. Writing logic 1 to this bit clears the TI2F
bit and writing a logic 0 to this bit has no effect.
The ROC2F bit is a write-only bit and always reads as logic 0. Writing logic 1 to this bit clears the OC2F
bit and writing a logic 0 to this bit has no effect.
These bits are not used and always read as logic 0.
Address:
Address:
Reset:
Reset:
Read:
Read:
Write:
Write:
$001D
$001E
BIT 7
BIt 7
TI2F
BIt 7
0
0
Figure 9-10. Output Compare Register 2 (OC2)
Figure 9-9. Timer Status Register 2 (TSR2)
MC68HC05L16 • MC68HC705L16 Data Sheet, Rev. 4.1
= Unimplemented
OC2F
BIT 6
6
0
6
0
BIT 5
5
0
0
5
0
BIT 4
4
0
0
4
0
RTI2F
BIT 3
3
0
0
3
0
ROC2F
BIT 2
2
0
0
2
0
BIT 1
1
0
0
1
0
BIT 0
Bit 0
Bit 0
0
0
0
Timer 2
87

Related parts for MCMC68HC05L16