mc68hc05pl4b Freescale Semiconductor, Inc, mc68hc05pl4b Datasheet - Page 59

no-image

mc68hc05pl4b

Manufacturer Part Number
mc68hc05pl4b
Description
Low-cost Single-chip Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
9.5.1 Miscellaneous Control and Status Register for Timer16
MC68HC05PL4
REV 2.0
OCIE - OUTPUT COMPARE INTERRUPT ENABLE
TOIE - TIMER OVERFLOW INTERRUPT ENABLE
IEDG - INPUT CAPTURE EDGE SELECT
OLVL - OUTPUT COMPARE OUTPUT LEVEL SELECT
The Miscellaneous Control and Status Register shown in Figure 9-11 performs
the following functions:
TCAPEN - TIMER INPUT CAPTURE ENABLE
MICSR
$001C
This read/write bit enables interrupts caused by an active signal on the TCMP
pin. Reset clears the OCIE bit.
This read/write bit enables interrupts caused by a timer over o w. Reset clears
the TOIE bit.
The state of this read/write bit determines whether a positive or negative transi-
tion on the TCAP pin triggers a transfer of the contents of the timer register to
the input capture register. Resets have no effect on the IEDG bit.
The state of this read/write bit determines whether a logic one or a logic zero
appears on the TCMP when a successful output compare occurs. Resets clear
the OLVL bit.
The bit con gures por t pin PA2 for Timer16 input capture function (TCAP). At
power-on-reset, this bit is cleared, PA2 is a standard I/O port pin, TCAP to the
Timer16 is pulled high.
reset:
1 = Output compare interrupts enabled.
0 = Output compare interrupts disabled.
1 = Timer over o w interrupts enabled.
0 = Timer over o w interrupts disabled.
1 = Positive edge (low to high transition) triggers input capture.
0 = Negative edge (high to low transition) triggers input capture.
1 = TCMP goes high on output compare.
0 = TCMP goes low on output compare.
1 = PA2 pin con gured as TCAP for timer input capture
0 = PA2 pin as standard I/O port pin
Figure 9-11. Miscellaneous Control and Status Register (MISCR)
Con gure the I/O por t pin PA2 as input pin for TCAP signal
Con gure the I/O por t pin PA3 as output pin for TCMP signal
W
R
IRQEN
BIT 7
0
Freescale Semiconductor, Inc.
For More Information On This Product,
BIT 6
IRQS
16-BIT PROGRAMMABLE TIMER
0
Go to: www.freescale.com
TCMPEN TCAPEN
BIT 5
April 30, 1998
0
BIT 4
0
GENERAL RELEASE SPECIFICATION
BIT 3
0
0
BIT 2
LED
0
COPON
BIT 1
0
BIT 0
POR
1
9-9

Related parts for mc68hc05pl4b