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

C8051F310 参数 Datasheet PDF下载

C8051F310图片预览
型号: C8051F310
PDF下载: 下载PDF文件 查看货源
内容描述: 8/16 KB ISP功能的Flash MCU系列 [8/16 kB ISP Flash MCU Family]
分类和应用: 微控制器和处理器
文件页数/大小: 228 页 / 2504 K
品牌: SILABS [ SILICON LABORATORIES ]
 浏览型号C8051F310的Datasheet PDF文件第218页浏览型号C8051F310的Datasheet PDF文件第219页浏览型号C8051F310的Datasheet PDF文件第220页浏览型号C8051F310的Datasheet PDF文件第221页浏览型号C8051F310的Datasheet PDF文件第223页浏览型号C8051F310的Datasheet PDF文件第224页浏览型号C8051F310的Datasheet PDF文件第225页浏览型号C8051F310的Datasheet PDF文件第226页  
C8051F310/1/2/3/4/5/6/7
19.3. PCA Counter
On “REV A” devices, if the main PCA counter (PCA0H : PCA0L) overflows during the execution phase of a
read-modify-write instruction (bit-wise SETB or CLR, ANL, ORL, XRL) that targets the PCA0CN register,
the CF (Counter Overflow) bit will not be set. An example software work-around is as follows:
Step 1.
Step 2.
Step 3.
Step 4.
Step 5.
Step 6.
Step 7.
Disable global interrupts (EA = 0).
Read PCA0L. This will latch the value of PCA0H.
Read PCA0H, saving the value.
Execute the bit-wise operation on CCFn (for example, CLR CCF0, or CCF0 = 0;).
Read PCA0L.
Read PCA0H, saving the value.
If the value of PCA0H read in Step 3 is 0xFF and the value for PCA0H read in Step 6 is
0x00, then manually set the CF bit in software (for example, SETB CF, or CF = 1;).
Step 8. Re-enable interrupts (EA = 1).
This behavior is not present on “REV B” and later devices. Software written for “REV A” devices will run on
“REV B” and later devices without modification.
222
Rev. 1.7