The STATUS register contains the status of arithmetic or logical operations. Depending on the instruction executed, the ALU may affect the values of the Carry (C), Digit Carry (DC) and Zero (Z) bits in the STATUS register. For example, the C and DC bits operate as a borrow and digit borrow out bit, respectively, in subtraction.
CLRF STATUS instruction clears the upper three bits of STATUS register. /TO & /PD bit are not writable.
It is recommended that only BCF, BSF and MOVWF instructions be used to alter the STATUS register.
These instructions do not affect the Z, DC or C bits from the STATUS register
Bit-0 | C |
|
Bit-1 | DC |
|
Bit-2 | Z |
|
Bit-3 | /PD |
|
Bit-4 | /TO |
|
Bit-5 | -- |
|
Bit-6 | CWUF (PIC10F204/ 206 only) |
|
Bit-7 | GPWUF |
|
No comments:
Post a Comment