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

HD6433846XXXH 参数 Datasheet PDF下载

HD6433846XXXH图片预览
型号: HD6433846XXXH
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器\n [Microcontroller ]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 524 页 / 1465 K
品牌: ETC [ ETC ]
 浏览型号HD6433846XXXH的Datasheet PDF文件第68页浏览型号HD6433846XXXH的Datasheet PDF文件第69页浏览型号HD6433846XXXH的Datasheet PDF文件第70页浏览型号HD6433846XXXH的Datasheet PDF文件第71页浏览型号HD6433846XXXH的Datasheet PDF文件第73页浏览型号HD6433846XXXH的Datasheet PDF文件第74页浏览型号HD6433846XXXH的Datasheet PDF文件第75页浏览型号HD6433846XXXH的Datasheet PDF文件第76页  
2.9.2  
Notes on Bit Manipulation  
The BSET, BCLR, BNOT, BST, and BIST instructions read one byte of data, modify the data,  
then write the data byte again. Special care is required when using these instructions in cases  
where two registers are assigned to the same address, in the case of registers that include write-  
only bits, and when the instruction accesses an I/O port.  
Order of Operation  
Operation  
1
2
3
Read  
Modify  
Write  
Read byte data at the designated address  
Modify a designated bit in the read data  
Write the altered byte data to the designated address  
1. Bit manipulation in two registers assigned to the same address  
Example 1: timer load register and timer counter  
Figure 2-18 shows an example in which two timer registers share the same address. When a bit  
manipulation instruction accesses the timer load register and timer counter of a reloadable timer,  
since these two registers share the same address, the following operations take place.  
Order of Operation  
Operation  
1
2
3
Read  
Modify  
Write  
Timer counter data is read (one byte)  
The CPU modifies (sets or resets) the bit designated in the instruction  
The altered byte data is written to the timer load register  
The timer counter is counting, so the value read is not necessarily the same as the value in the  
timer load register. As a result, bits other than the intended bit in the timer load register may be  
modified to the timer counter value.  
Read  
Count clock  
Timer counter  
Reload  
Write  
Timer load register  
Internal bus  
Figure 2-18 Timer Configuration Example  
57  
 复制成功!