mc68hc05p18a Freescale Semiconductor, Inc, mc68hc05p18a Datasheet - Page 69
mc68hc05p18a
Manufacturer Part Number
mc68hc05p18a
Description
Mc68hc05p18a Hcmos Microcontroller Unit
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1.MC68HC05P18A.pdf
(130 pages)
- Current page: 69 of 130
- Download datasheet (2Mb)
MC68HC05P18A
counter increments every four PH2 clock cycles. The minimum time
required to update the output compare registers is a function of software
rather than hardware.
The output compare output level bit (OLVL) will be clocked to its output
latch regardless of the state of the output compare flag bit (OCF). A valid
output compare must occur before the OLVL bit is clocked to its output
latch (TCMP).
Since neither the output compare flag (OCF) nor the output compare
registers are affected by reset, care must be exercised when initializing
the output compare function. This procedure is recommended:
This procedure prevents the output compare flag bit (OCF) from being
set between the time it is read and the time the output compare registers
are updated. A software example is shown in
1. Block interrupts by setting the I bit in the condition code register
2. Write the MSB of the output compare register pair (OCRH) to
3. Read the timer status register (TSR) to arm the output compare
4. Write the LSB of the output compare register pair (OCRL) to
5. Unblock interrupts by clearing the I bit in the CCR.
Freescale Semiconductor, Inc.
BE
9B
B6
B7
B6
BF
Figure 8-7. Output Compare Software Initialization Example
•
•
•
For More Information On This Product,
(CCR).
inhibit further compares until the LSB is written.
flag (OCF).
enable the output compare function and to clear its flag and
interrupt.
Go to: www.freescale.com
XX
XX
16
13
17
•
•
•
16-Bit Timer
LDX
STX
LDA
STA
LDA
SEI
•
•
•
DATAH
DATAL
OCRH
OCRL
TSR
•
•
•
BLOCK INTERRUPTS
•
•
HI BYTE FOR COMPARE
LOW BYTE FOR COMPARE
INHIBIT OUTPUT COMPARE
ARM OCF BIT TO CLEAR
READY FOR NEXT COMPARE
•
Figure
8-7.
Output Compare
Technical Data
16-Bit Timer
Related parts for mc68hc05p18a
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Mc68hc05 Family Of Microcontrollers Mcus
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Mc68hc05 Family Of Low-cost Single-chip Microcontrollers.
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet:
Part Number:
Description:
Manufacturer:
Freescale Semiconductor, Inc
Datasheet: