参数资料
型号: MC68HC11E20VFN2
厂商: FREESCALE SEMICONDUCTOR INC
元件分类: 微控制器/微处理器
英文描述: 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQCC52
封装: PLASTIC, LCC-52
文件页数: 39/242页
文件大小: 1672K
代理商: MC68HC11E20VFN2
第1页第2页第3页第4页第5页第6页第7页第8页第9页第10页第11页第12页第13页第14页第15页第16页第17页第18页第19页第20页第21页第22页第23页第24页第25页第26页第27页第28页第29页第30页第31页第32页第33页第34页第35页第36页第37页第38页当前第39页第40页第41页第42页第43页第44页第45页第46页第47页第48页第49页第50页第51页第52页第53页第54页第55页第56页第57页第58页第59页第60页第61页第62页第63页第64页第65页第66页第67页第68页第69页第70页第71页第72页第73页第74页第75页第76页第77页第78页第79页第80页第81页第82页第83页第84页第85页第86页第87页第88页第89页第90页第91页第92页第93页第94页第95页第96页第97页第98页第99页第100页第101页第102页第103页第104页第105页第106页第107页第108页第109页第110页第111页第112页第113页第114页第115页第116页第117页第118页第119页第120页第121页第122页第123页第124页第125页第126页第127页第128页第129页第130页第131页第132页第133页第134页第135页第136页第137页第138页第139页第140页第141页第142页第143页第144页第145页第146页第147页第148页第149页第150页第151页第152页第153页第154页第155页第156页第157页第158页第159页第160页第161页第162页第163页第164页第165页第166页第167页第168页第169页第170页第171页第172页第173页第174页第175页第176页第177页第178页第179页第180页第181页第182页第183页第184页第185页第186页第187页第188页第189页第190页第191页第192页第193页第194页第195页第196页第197页第198页第199页第200页第201页第202页第203页第204页第205页第206页第207页第208页第209页第210页第211页第212页第213页第214页第215页第216页第217页第218页第219页第220页第221页第222页第223页第224页第225页第226页第227页第228页第229页第230页第231页第232页第233页第234页第235页第236页第237页第238页第239页第240页第241页第242页
Output Compare
M68HC11E Family Data Sheet, Rev. 5.1
Freescale Semiconductor
133
9.3.3 Timer Input Capture 4/Output Compare 5 Register
Use TI4/O5 as either an input capture register or an output compare register, depending on the function
chosen for the PA3 pin. To enable it as an input capture pin, set the I4/O5 bit in the pulse accumulator
control register (PACTL) to logic level 1. To use it as an output compare register, set the I4/O5 bit to a
logic level 0. Refer to 9.7 Pulse Accumulator.
9.4 Output Compare
Use the output compare (OC) function to program an action to occur at a specific time — when the 16-bit
counter reaches a specified value. For each of the five output compare functions, there is a separate
16-bit compare register and a dedicated 16-bit comparator. The value in the compare register is
compared to the value of the free-running counter on every bus cycle. When the compare register
matches the counter value, an output compare status flag is set. The flag can be used to initiate the
automatic actions for that output compare function.
To produce a pulse of a specific duration, write a value to the output compare register that represents the
time the leading edge of the pulse is to occur. The output compare circuit is configured to set the
appropriate output either high or low, depending on the polarity of the pulse being produced. After a match
occurs, the output compare register is reprogrammed to change the output pin back to its inactive level
at the next match. A value representing the width of the pulse is added to the original value, and then
written to the output compare register. Because the pin state changes occur at specific values of the
free-running counter, the pulse width can be controlled accurately at the resolution of the free-running
counter, independent of software latencies. To generate an output signal of a specific frequency and duty
cycle, repeat this pulse-generating procedure.
The five 16-bit read/write output compare registers are: TOC1, TOC2, TOC3, and TOC4, and the TI4/O5.
TI4/O5 functions under software control as either IC4 or OC5. Each of the OC registers is set to $FFFF
on reset. A value written to an OC register is compared to the free-running counter value during each
E-clock cycle. If a match is found, the particular output compare flag is set in timer interrupt flag register
1 (TFLG1). If that particular interrupt is enabled in the timer interrupt mask register 1 (TMSK1), an interrupt
is generated. In addition to an interrupt, a specified action can be initiated at one or more timer output
pins. For OC[5:2], the pin action is controlled by pairs of bits (OMx and OLx) in the TCTL1 register. The
output action is taken on each successful compare, regardless of whether or not the OCxF flag in the
TFLG1 register was previously cleared.
Register name: Timer Input Capture 4/Output Compare 5 (High)
Address: $101E
Bit 7
654321
Bit 0
Read:
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Write:
Reset:
1
1111111
Register name: Timer Input Capture 4/Output Compare 5 (Low)
Address: $101F
Bit 7
654321
Bit 0
Read:
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Write:
Reset:
1
1111111
Figure 9-7. Timer Input Capture 4/Output
Compare 5 Register Pair (TI4/O5)
相关PDF资料
PDF描述
MC68HC11E9BCB3 8-BIT, MROM, 3 MHz, MICROCONTROLLER, PDIP56
MC68HC711E20CFU2 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQFP64
MC68S711E9CFN2 8-BIT, OTPROM, 2 MHz, MICROCONTROLLER, PQCC52
MC68HC11E9MPB2 8-BIT, MROM, 2 MHz, MICROCONTROLLER, PQFP52
MC68HC711E9CFS2 8-BIT, UVPROM, 2 MHz, MICROCONTROLLER, CQCC52
相关代理商/技术参数
参数描述
MC68HC11E20VFU2 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:M68HC11E Series Programming Reference Guide
MC68HC11E9B3 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-channel, 8-bit analog-to-digital (A/D) converter
MC68HC11E9BCB2 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:Microcontrollers
MC68HC11E9BCB3 制造商:MOTOROLA 制造商全称:Motorola, Inc 功能描述:8-channel, 8-bit analog-to-digital (A/D) converter