DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

C8051F020 View Datasheet(PDF) - Silicon Laboratories

Part Name
Description
Manufacturer
C8051F020
Silabs
Silicon Laboratories 
C8051F020 Datasheet PDF : 272 Pages
First Prev 251 252 253 254 255 256 257 258 259 260 Next Last
C8051F020/1/2/3
Important Note About the PCA0CN Register: 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. The following steps should be taken when perform-
ing a bit-wise operation on the PCA0CN register:
Step 1. Disable global interrupts (EA = 0).
Step 2. Read PCA0L. This will latch the value of PCA0H.
Step 3. Read PCA0H, saving the value.
Step 4. Execute the bit-wise operation on CCFn (for example, CLR CCF0, or CCF0 = 0;).
Step 5. Read PCA0L.
Step 6. Read PCA0H, saving the value.
Step 7. 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).
Rev. 1.4
251

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]