mc68hc11e0fnr2 Freescale Semiconductor, Inc, mc68hc11e0fnr2 Datasheet - Page 137

no-image

mc68hc11e0fnr2

Manufacturer Part Number
mc68hc11e0fnr2
Description
Hc11 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.4.5 Timer Counter Register
The 16-bit read-only TCNT register contains the prescaled value of the 16-bit timer. A full counter read
addresses the most significant byte (MSB) first. A read of this address causes the least significant byte
(LSB) to be latched into a buffer for the next CPU cycle so that a double-byte read returns the full 16-bit
state of the counter at the time of the MSB read cycle.
9.4.6 Timer Control Register 1
The bits of this register specify the action taken as a result of a successful OCx compare.
OM[2:5] — Output Mode Bits
OL[2:5] — Output Level Bits
Freescale Semiconductor
These control bit pairs are encoded to specify the action taken after a successful OCx compare. OC5
functions only if the I4/O5 bit in the PACTL register is clear. Refer to
Register name: Timer Counter Register (High)
Register name: Timer Counter Register (Low)
Address:
Reset:
Reset:
Reset:
Read:
Read:
Read:
Write:
Write:
Write:
$1020
Bit 15
OM2
Bit 7
Bit 7
Bit 7
Bit 7
OMx
0
0
0
0
0
1
1
Figure 9-16. Timer Control Register 1 (TCTL1)
Figure 9-15. Timer Counter Register (TCNT)
Table 9-3. Timer Output Compare Actions
= Unimplemented
OLx
Bit 14
Bit 6
OL2
0
1
0
1
0
0
6
6
6
0
M68HC11E Family Data Sheet, Rev. 5.1
Timer disconnected from output pin logic
Toggle OCx output line
Clear OCx output line to 0
Set OCx output line to 1
Bit 13
OM3
Bit 5
5
0
5
0
5
0
Action Taken on Successful Compare
Address: $100F
Address: $100E
Bit 12
Bit 4
OL3
4
0
4
0
4
0
Bit 11
OM4
Bit 3
3
0
3
0
3
0
Bit 10
Bit 2
OL4
2
0
2
0
2
0
Table 9-3
OM5
Bit 9
Bit 1
1
0
1
0
1
0
for the coding.
Bit 0
Bit 8
Bit 0
Bit 0
Bit 0
OL5
0
0
0
Output Compare
137

Related parts for mc68hc11e0fnr2