trennonix
New Member
hi,
the BSF and the BCF functions are supposed to set or clear a specific bit in a register, now this works fine for all registers except for ports
when i try to use it on ports, it seems to clear the whole register and then set or clear the specific bit.
Am I doing something wrong? Is there's a trick of somekind? Or should i just write my own function for that?
Thanks
the BSF and the BCF functions are supposed to set or clear a specific bit in a register, now this works fine for all registers except for ports
when i try to use it on ports, it seems to clear the whole register and then set or clear the specific bit.
Am I doing something wrong? Is there's a trick of somekind? Or should i just write my own function for that?
Thanks