欢迎访问ic37.com |
会员登录 免费注册
发布采购

MC68HC11F1CPU4 参数 Datasheet PDF下载

MC68HC11F1CPU4图片预览
型号: MC68HC11F1CPU4
PDF下载: 下载PDF文件 查看货源
内容描述: MC68HC11F1技术参数 [MC68HC11F1 Technical Data]
分类和应用: 外围集成电路装置微控制器可编程只读存储器电动程控只读存储器电可擦编程只读存储器时钟
文件页数/大小: 158 页 / 3927 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC68HC11F1CPU4的Datasheet PDF文件第107页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第108页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第109页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第110页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第112页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第113页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第114页浏览型号MC68HC11F1CPU4的Datasheet PDF文件第115页  
Freescale Semiconductor, Inc.  
9.2 Input Capture  
The input capture function records the time an external event occurs by latching the  
value of the free-running counter when a selected edge is detected at the associated  
timer input pin. Software can store latched values and use them to compute the peri-  
odicity and duration of events. For example, by storing the times of successive edges  
of an incoming signal, software can determine the period and pulse width of a signal.  
To measure period, two successive edges of the same polarity are captured. To mea-  
sure pulse width, two alternate polarity edges are captured.  
In most cases, input capture edges are asynchronous to the internal timer counter,  
which is clocked relative to an internal clock (PH2). These asynchronous capture re-  
quests are synchronized to PH2 so that the latching occurs on the opposite half cycle  
of PH2 from when the timer counter is being incremented. This synchronization pro-  
cess introduces a delay from when the edge occurs to when the counter value is de-  
tected. Because these delays offset each other when the time between two edges is  
being measured, the delay can be ignored. When an input capture is being used with  
an output compare, there is a similar delay between the actual compare point and  
when the output pin changes state.  
The control and status bits that implement the input capture functions are contained in  
the PACTL, TCTL2, TMSK1, and TFLG1 registers.  
To configure port A bit 3 as an input capture, clear the DDA3 bit of the DDRA register.  
Note that this bit is cleared out of reset. To enable PA3 as the fourth input capture, set  
the I4/O5 bit in the PACTL register. Otherwise, PA3 is configured as a fifth output com-  
pare out of reset, with bit I4/O5 being cleared. If the DDA3 bit is set (configuring PA3  
as an output), and IC4 is enabled, then writes to PA3 cause edges on the pin to result  
in input captures. Writing to TI4/O5 has no effect when the TI4/O5 register is acting as  
IC4.  
9.2.1 Timer Control Register 2  
Use the control bits of this register to program input capture functions to detect a par-  
ticular edge polarity on the corresponding timer input pin. Each of the input capture  
functions can be independently configured to detect rising edges only, falling edges  
only, any edge (rising or falling), or to disable the input capture function. The input cap-  
ture functions operate independently of each other and can capture the same TCNT  
value if the input edges are detected within the same timer count cycle.  
TCTL2 — Timer Control 2  
$1021  
Bit 7  
EDG4B  
0
6
EDG4A  
0
5
EDG1B  
0
4
EDG1A  
0
3
EDG2B  
0
2
EDG2A  
0
1
EDG3B  
0
Bit 0  
EDG3A  
0
RESET:  
EDGxB and EDGxA — Input Capture Edge Control  
There are four pairs of these bits. Each pair is cleared to zero by reset and must be  
encoded to configure the corresponding input capture edge detector circuit. IC4 func-  
tions only if the I4/O5 bit in the PACTL register is set. Refer to Table 9-2 for timer con-  
trol configuration.  
TIMING SYSTEM  
TECHNICAL DATA  
9-5  
For More Information On This Product,  
Go to: www.freescale.com