mc68hc05jb4p Freescale Semiconductor, Inc, mc68hc05jb4p Datasheet - Page 64

no-image

mc68hc05jb4p

Manufacturer Part Number
mc68hc05jb4p
Description
Mc68hc705jb4 Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
GENERAL RELEASE SPECIFICATION
9.5
A software example of this procedure is shown below.
TIMER CONTROL REGISTER (TCR)
The timer control register is shown in Figure 9-10 performs the following func-
tions:
Reset clears all the bits in the TCR with the exception of the IEDG bit which is
unaffected.
ICIE - INPUT CAPTURE INTERRUPT ENABLE
OCIE - OUTPUT COMPARE INTERRUPT ENABLE
TOIE - TIMER OVERFLOW INTERRUPT ENABLE
TCR
$0012
9B
...
...
B7
B6
BF
...
...
9A
This read/write bit enables interrupts caused by an active signal on the PB0/
ICAP1 pin. Reset clears the ICIE bit.
This read/write bit enables interrupts caused by a successful compare between
the timer counter and the output compare registers. Reset clears the OCIE bit.
This read/write bit enables interrupts caused by a timer overflow. Reset clears
the TOIE bit.
reset:
1 = Input capture interrupts enabled.
0 = Input capture interrupts disabled.
1 = Output compare interrupts enabled.
0 = Output compare interrupts disabled.
1 = Timer overflow interrupts enabled.
0 = Timer overflow interrupts disabled.
Enables input capture interrupts
Enables output compare interrupts
Enables timer overflow interrupts
Control the active edge polarity of the ICAP1 signal on pin PB0/ICAP1
W
R
16
13
17
BIT 7
ICIE
0
Freescale Semiconductor, Inc.
SEI
...
...
STA
LDA
STX
...
...
CLI
Figure 9-10. Timer Control Register (TCR)
For More Information On This Product,
BIT 6
OCIE
0
OCRH
TSR
OCRL
Go to: www.freescale.com
February 24, 1999
BIT 5
TOIE
16-BIT TIMER
0
DISABLE INTERRUPTS
.....
.....
INHIBIT OUTPUT COMPARE
ARM OCF FLAG FOR CLEARING
READY FOR NEXT COMPARE, OCF CLEARED
.....
.....
ENABLE INTERRUPTS
BIT 4
0
0
BIT 3
0
0
BIT 2
0
0
Unaffected
IEDG
BIT 1
BIT 0
REV
0
0

Related parts for mc68hc05jb4p