參數(shù)資料
型號: MC68HC05C9ACB
廠商: FREESCALE SEMICONDUCTOR INC
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PDIP42
封裝: SHRINK, PLASTIC, DIP-42
文件頁數(shù): 124/160頁
文件大?。?/td> 4128K
代理商: MC68HC05C9ACB
NON-DISCLOSURE
AGREEMENT
REQUIRED
Capture/Compare Timer
General Release Specification
MC68HC05C9A Rev. 4.0
Capture/Compare Timer
8.4.6 Output Compare Registers (OCRH and OCRL)
When the value of the 16-bit counter matches the value in the output
compare registers, 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 the timer status register clears
the output compare flag (OCF).
Figure 8-7. Output Compare Registers (OCRH and OCRL)
To prevent OCF from being set between the time it is read and the time
the output compare registers are updated, use this procedure:
1. Disable interrupts by setting the I bit in the condition code register.
2. Write to OCRH. Compares are now inhibited until OCRL is written.
3. Clear bit OCF by reading timer status register (TSR).
4. Enable the output compare function by writing to OCRL.
5. Enable interrupts by clearing the I bit in the condition code
register.
OCRH
$0016
Bit 7
6
5
4
3
2
1
Bit 0
Write:
BIT15
BIT14
BIT13
BIT12
BIT11
BIT10
BIT9
BIT8
Read:
Unaffected by Reset
OCRL
$0017
Bit 7
6
5
4
3
2
1
Bit 0
Write:
BIT7
BIT6
BIT5
BIT4
BIT3
BIT2
BIT1
BIT0
Read:
Unaffected by Reset
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.
相關PDF資料
PDF描述
MC68HC05C9ACFB 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PQFP44
MC68HC05C9ACFN 8-BIT, MROM, 2.1 MHz, MICROCONTROLLER, PQCC44
MC68HC908EY16AKFA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP32
MC68HC908EY16AVFA 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PQFP32
MB91613PMC 32-BIT, FLASH, 33 MHz, RISC MICROCONTROLLER, PQFP120
相關代理商/技術參數(shù)
參數(shù)描述
MC68HC05C9AFB 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05C9AFN 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05C9AMB 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05C9AMFB 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers
MC68HC05C9AMFN 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Microcontrollers