|
MC68HC05L28 Datasheet, PDF (60/156 Pages) Motorola, Inc – Flexible general-purpose microcomputer | |||
|
◁ |
Bits 8â15 â MSB of counter/alternate counter register
A read of only the more signiï¬cant byte (MSB) transfers the LSB to a buffer, which remains ï¬xed
after the ï¬rst MSB read, until the LSB is also read.
Bits 0â7 â LSB of counter/alternate counter register
A read of only the less signiï¬cant byte (LSB) receives the count value at the time of reading.
6.2
Timer functions
The 16-bit programmable timer is monitored and controlled by a group of ï¬fteen registers, full
details of which are contained in the following paragraphs. An explanation of the timer functions is
also given.
6
6.2.1 Timer control registers
The timer control registers at locations $2C and $2D are read/write registers. Five bits control
interrupts associated with the timer status register ï¬ags IC1F, IC2F, OC1F, OC2F and TOF. Two
bits control which edge is signiï¬cant to the input capture 1 and 2 edge detectors.
6.2.1.1 Timer control register 1 (TCR1)
Timer control 1 (TCR1)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$002C IC1IE IC2IE OC1IE TOIE CO1E IEDG1 IEDG2 OLVL1 0000 0uu0
IC1IE â Input capture 1 interrupt enable
1 (set) â Input capture 1 interrupt enabled.
0 (clear) â Input capture 1 interrupt disabled.
IC2IE â Input capture 2 interrupt enable
1 (set) â Input capture 2 interrupt enabled.
0 (clear) â Input capture 2 interrupt disabled.
OC1IE â Output compare 1 interrupt enable
1 (set) â Output compare 1 interrupt enabled.
0 (clear) â Output compare 1 interrupt disabled.
MOTOROLA
6-4
16-BIT PROGRAMMABLE TIMER
TPG
MC68HC05L28
|
▷ |