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

68HC05P4A_1 参数 Datasheet PDF下载

68HC05P4A_1图片预览
型号: 68HC05P4A_1
PDF下载: 下载PDF文件 查看货源
内容描述: 规格(通用版) [SPECIFICATION (General Release)]
分类和应用:
文件页数/大小: 83 页 / 2055 K
品牌: FREESCALE [ Freescale ]
 浏览型号68HC05P4A_1的Datasheet PDF文件第45页浏览型号68HC05P4A_1的Datasheet PDF文件第46页浏览型号68HC05P4A_1的Datasheet PDF文件第47页浏览型号68HC05P4A_1的Datasheet PDF文件第48页浏览型号68HC05P4A_1的Datasheet PDF文件第50页浏览型号68HC05P4A_1的Datasheet PDF文件第51页浏览型号68HC05P4A_1的Datasheet PDF文件第52页浏览型号68HC05P4A_1的Datasheet PDF文件第53页  
Freescale Semiconductor, Inc.  
GENERAL RELEASE SPECIFICATION  
8.5  
Timer Status Register (TSR) $13  
The TSR is a read-only register containing three status flag bits.  
$13  
ICF  
U
OCF  
U
TOF  
U
0
0
0
0
0
0
0
0
0
0
RESET:  
Figure 8-3. Timer Status Register  
ICF — Input Capture Flag  
1 = Flag set when selected polarity edge is sensed by input capture  
edge detector  
0 = Flag cleared when TSR and input capture low register ($15) are  
accessed  
OCF — Output Compare Flag  
1 = Flag set when output compare register contents match the free-  
running counter contents  
0 = Flag cleared when TSR and output compare low register ($17) are  
accessed  
TOF — Timer Overflow Flag  
1 = Flag set when free-running counter transition from $FFFF to $0000  
occurs  
0 = Flag cleared when TSR and counter low register ($19) are accessed  
Bits 0-4 — Not used  
Always read zero  
Accessing the timer status register satisfies the first condition required to clear  
status bits. The remaining step is to access the register corresponding to the  
status bit.  
A problem can occur when using the timer overflow function and reading the free-  
running counter at random times to measure an elapsed time. Without  
incorporating the proper precautions into software, the timer overflow flag could  
unintentionally be cleared if:  
1. The timer status register is read or written when TOF is set, and  
2. The LSB of the free-running counter is read but not for the purpose of  
servicing the flag.  
The counter alternate register at address $1A and $1B contains the same value  
as the free-running counter (at address $18 and $19); therefore, this alternate  
register can be read at any time without affecting the timer overflow flag in the  
timer status register.  
TIMER  
MC68HC05P4A  
Rev. 2.0  
8-6  
For More Information On This Product,  
Go to: www.freescale.com  
 复制成功!