|
|
| BSF |
Command:
Syntax:
Status Flags Effected: |
BSF
BSF f,b None
|
The BSF command will clear the bit specified by b in the register specified by f.
BCF can be used to clear bit in any internal register as well as ports
on the microcontroller permitting the control of individual signal
lines conencted to the MCU.
| Code Example 1:
Assume we have a register labeled TEMP with a value of 0x00 |
BSF TEMP,0 BSF TEMP,5 BSF TEMP,7 |
Clear bit 0 of register TEMP = b'00000001'. Clear bit 5 of register TEMP = b'00100001'. Clear bit 7 of register TEMP = b'10100001'. |
|
|