參數(shù)資料
型號: 68HC05PL4B
廠商: Motorola, Inc.
英文描述: 8-Bit Microcontroller Units (MCU).(8位微控制器)
中文描述: 8位微控制器單元(MCU)。(8位微控制器)
文件頁數(shù): 58/98頁
文件大小: 1019K
代理商: 68HC05PL4B
GENERAL RELEASE SPECIFICATION
April 30, 1998
MOTOROLA
9-8
16-BIT PROGRAMMABLE TIMER
MC68HC05PL4
REV 2.0
3.
4.
Read the TSR to arm the OCF for clearing.
Enable the output compare registers by writing to the OCRL. This also
clears the OCF flag bit in the TSR.
Enable interrupts by clearing the I bit in the condition code register.
A software example of this procedure is shown in
Table 9-1
.
5.
9.5
TIMER CONTROL REGISTER (TCR)
The timer control register shown in
Figure 9-10
performs the following functions:
Enables input capture interrupts.
Enables output compare interrupts.
Enables timer overflow interrupts.
Configure the I/O Port Pin PA2 as input pin for TCAP signal
Configure the I/O Port Pin PA3 as output pin for TCMP signal
Control the active edge polarity of the TCAP signal.
Controls the active level of the TCMP output.
Reset clears all the bits in the TCR with the exception of the IEDG bit which is
unaffected.
ICIE - INPUT CAPTURE INTERRUPT ENABLE
This read/write bit enables interrupts caused by an active signal on the PB1/
TCAP pin or from CPF2 flag bit of the analog subsystem voltage comparator 2.
Reset clears the ICIE bit.
1 =
Input capture interrupts enabled.
0 =
Input capture interrupts disabled.
Table 9-1. Output Compare Initialization Example
9B
...
...
B7
B6
BF
...
...
9A
16
13
17
SEI
...
...
STA
LDA
STX
...
...
CLI
OCRH
TSR
OCRL
DISABLE INTERRUPTS
.....
.....
INHIBIT OUTPUT COMPARE
ARM OCF FLAG FOR CLEARING
READY FOR NEXT COMPARE, OCF CLEARED
.....
.....
ENABLE INTERRUPTS
BIT 7
BIT 6
BIT 5
BIT 4
0
BIT 3
0
BIT 2
0
BIT 1
BIT 0
TCR
$0012
R
W
ICIE
OCIE
TOIE
IEDG
OLVL
reset:
0
0
0
0
0
0
U
0
Figure 9-10. Timer Control Register (TCR)
相關(guān)PDF資料
PDF描述
68HC705PL4 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC705PL4B 8-Bit Microcontroller Units (MCU).(8位微控制器)
68HC908JB8FS Freescale Semiconductor, Inc.
69190-405 50/100M SOT-23 CMOS RF LDO REGULATORS
6A20G CURRENT 6.0 Amperes VOLTAGE 50 to 1000 Volts
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
68HC05SB7 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:SPECIFICATION (General Release)
68HC05V12 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:General Release Specification
68HC05X1 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:SPECIFICATION (General Release)
68HC070KH12 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:8 BIT MICROCONTROLLER UNITS
68HC08KH12 制造商:MOTOROLA 制造商全稱:Motorola, Inc 功能描述:8 BIT MICROCONTROLLER UNITS