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

MC68331CFC16 参数 Datasheet PDF下载

MC68331CFC16图片预览
型号: MC68331CFC16
PDF下载: 下载PDF文件 查看货源
内容描述: 用户手册 [User’s Manual]
分类和应用: 微控制器和处理器外围集成电路时钟
文件页数/大小: 254 页 / 1319 K
品牌: MOTOROLA [ MOTOROLA ]
 浏览型号MC68331CFC16的Datasheet PDF文件第167页浏览型号MC68331CFC16的Datasheet PDF文件第168页浏览型号MC68331CFC16的Datasheet PDF文件第169页浏览型号MC68331CFC16的Datasheet PDF文件第170页浏览型号MC68331CFC16的Datasheet PDF文件第172页浏览型号MC68331CFC16的Datasheet PDF文件第173页浏览型号MC68331CFC16的Datasheet PDF文件第174页浏览型号MC68331CFC16的Datasheet PDF文件第175页  
When the programmed content of an output compare register matches the value in  
TCNT, an output compare status flag (OCxF) bit in TFLG1 is set. If the appropriate in-  
terrupt enable bit (OCxI) in TMSK1 is set, an interrupt request is made when a match  
occurs. Refer to 7.4.2 GPT Interrupts for more information.  
Operation of output compare 1 differs from that of the other output compare functions.  
OC1 control logic can be programmed to make state changes on other OC pins when  
an OC1 match occurs. Control bits in the timer compare force register (CFORC) allow  
for early forced compares.  
7.8.3.1 Output Compare 1  
Output compare 1 can affect any or all of OC[1:5] when an output match occurs. In  
addition to allowing generation of multiple control signals from a single comparison op-  
eration, this function makes it possible for two or more output compare functions to  
control the state of a single OC pin. Output pulses as short as one timer count can be  
generated in this way.  
The OC1 action mask register (OC1M) and the OC1 action data register (OC1D) con-  
trol OC1 function. Setting a bit in OC1M selects a corresponding bit in the GPT parallel  
data port. Bits in OC1D determine whether selected bits are to be set or cleared when  
an OC1 match occurs. Pins must be configured as outputs in order for the data in the  
register to be driven out on the corresponding pin. If an OC1 match and another output  
match occur at the same time and both attempt to alter the same pin, the OC1 function  
controls the state of the pin.  
7
7.8.3.2 Forced Output Compare  
Timer compare force register (CFORC) is used to make forced compares. The action  
taken as a result of a forced compare is the same as when an output compare match  
occurs, except that status flags are not set. Forced channels take programmed actions  
immediately after the write to CFORC.  
The CFORC register is implemented as the upper byte of a 16-bit register which also  
contains the PWM control register C (PWMC). It can be accessed as eight bits or a  
word access can be used. Reads of force compare bits (FOC) have no meaning and  
always return zeros. These bits are self-negating.  
7.9 Input Capture 4/Output Compare 5  
The IC4/OC5 pin can be used for input capture, output compare, or general-purpose  
I/O. A function enable bit (I4/O5) in the pulse accumulator control register (PACTL)  
configures the pin for input capture (IC4) or output compare function (OC5). Both bits  
are cleared during reset, configuring the pin as an input, but also enabling the OC5  
function. IC4/OC5 I/O functions are controlled by the I4/O5 bit in the port GP data di-  
rection register (DDRGP).  
The 16-bit register (TI4/O5) used with the IC4/OC5 function acts as an input capture  
register or as an output compare register depending on which function is selected.  
When used as the input capture 4 register, it cannot be written except in test or freeze  
mode.  
MC68331  
GENERAL-PURPOSE TIMER  
MOTOROLA  
7-13  
USER’S MANUAL  
 复制成功!