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

68HC805P18 参数 Datasheet PDF下载

68HC805P18图片预览
型号: 68HC805P18
PDF下载: 下载PDF文件 查看货源
内容描述: 规格(通用版) [SPECIFICATION (General Release)]
分类和应用:
文件页数/大小: 111 页 / 2802 K
品牌: FREESCALE [ Freescale ]
 浏览型号68HC805P18的Datasheet PDF文件第69页浏览型号68HC805P18的Datasheet PDF文件第70页浏览型号68HC805P18的Datasheet PDF文件第71页浏览型号68HC805P18的Datasheet PDF文件第72页浏览型号68HC805P18的Datasheet PDF文件第74页浏览型号68HC805P18的Datasheet PDF文件第75页浏览型号68HC805P18的Datasheet PDF文件第76页浏览型号68HC805P18的Datasheet PDF文件第77页  
Freescale Semiconductor, Inc.  
GENERAL RELEASE SPECIFICATION  
10.6 Timer Status Register (TSR)  
8
2
Reading the timer status register (TSR) satisfies the first condition required to clear  
status flags and interrupts. See Figure 10-3. The only remaining step is to read (or  
write) the register associated with the active status flag (and/or interrupt). This  
method does not present any problems for input capture or output compare  
functions.  
3
However, a problem can occur when using a timer interrupt function and reading  
the free-running counter at random times to, for example, measure an elapsed  
time. If the proper precautions are not designed into the application software, a  
timer interrupt flag (TOF) could unintentionally be cleared if:  
4
5
1. The TSR is read when bit 5 (TOF) is set, and  
6
2. The LSB of the free-running counter is read, but not for the purpose of  
servicing the flag or interrupt.  
7
The alternate counter registers (ACRH and ACRL) contain the same values as the  
timer registers (TMRH and TMRL). Registers ACRH and ACRL can be read at any  
time without affecting the timer overflow flag (TOF) or interrupt.  
8
9
Bit 7  
ICF  
6
5
4
0
3
0
2
0
1
0
Bit 0  
0
10  
11  
12  
13  
14  
A
Read:  
Write:  
Reset:  
OCR  
TOF  
TSR  
$0013  
X
X
X
0
0
0
0
0
= Unimplemented  
Figure 10-11. Timer Status Register (TSR)  
ICF — Input Capture Flag  
Bit 7 is set when the edge specified by IEDG in register TCR has been sensed  
by the input capture edge detector fed by pin TCAP. This flag and the input  
capture interrupt can be cleared by reading register TSR followed by reading the  
LSB of the input capture register pair (ICRL).  
16  
17  
18  
19  
20  
OCF — Output Compare Flag  
Bit 6 is set when the contents of the output compare registers match the  
contents of the free-running counter. This flag and the output compare interrupt  
can be cleared by reading register TSR followed by writing the LSB of the output  
compare register pair (OCRL).  
16-BIT TIMER  
Rev. 1.0  
For More Information On This Product,  
Go to: www.freescale.com  
 复制成功!