參數(shù)資料
型號: MC68HC05P9AVP
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: HCMOS Microcontroller Unit
中文描述: HCMOS微控制器
文件頁數(shù): 101/158頁
文件大?。?/td> 1106K
代理商: MC68HC05P9AVP
Timer
I/O Registers
MOTOROLA
Timer
101
Output Compare
Registers
When the value of the 16-bit counter matches the value in the read/write
output compare registers (OCRH and OCRL), the planned TCMP pin
action takes place. Writing to OCRH before writing to OCRL inhibits
timer compares until OCRL is written. Reading or writing to OCRL after
reading the timer status register clears the output compare flag (OCF).
To prevent OCF from being set between the time it is read and the time
the output compare registers are updated, use the following procedure:
1.
2.
3.
4.
5.
Disable interrupts by setting the I bit in the condition code register.
Write to OCRH. Compares are now inhibited until OCRL is written.
Clear bit OCF by reading the timer status register (TSR).
Enable the output compare function by writing to OCRL.
Enable interrupts by clearing the I bit in the condition code
register.
$0016
Bit 7
6
5
4
3
2
1
Bit 0
Read:
Bit 15
14
13
12
11
10
9
Bit 8
Write:
Reset:
Unaffected by reset
$0017
Bit 7
6
5
4
3
2
1
Bit 0
Read:
Bit 7
6
5
4
3
2
1
Bit 0
Write:
Reset:
Unaffected by reset
Figure 58. Output Compare Registers (OCRH and OCRL)
21-tim1ic1oc_a
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
MC68HC05P9ACP HCMOS Microcontroller Unit
MC68HC05P9ADW HCMOS Microcontroller Unit
MC68HC05P9AMDW HCMOS Microcontroller Unit
MC68HC05P9AMP HCMOS Microcontroller Unit
MC68HC05P9AP HCMOS Microcontroller Unit
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MC68HC05P9DW 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05P9P 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:HCMOS MICROCONTROLLER UNIT
MC68HC05PV8 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Techinal Data - rev 1.9
MC68HC05PV8A 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Techinal Data - rev 1.9
MC68HC05RC16 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:General Release Specification