Enable weak-pulls 12F675
Posted: Tue Apr 28, 2009 2:48 pm
what is c code to enable weak-pull ups in option register, without changing any other bits of register.
I believe its a shift left command with a 1 and amount of places required i.e
option_reg (1<<7) or somthing like that
or is it best to mask unwanted changes i.e
option_reg = option_reg & 0b01111111
please bear in mind, my C knowledge is as weak as the pic pullups
I believe its a shift left command with a 1 and amount of places required i.e
option_reg (1<<7) or somthing like that
or is it best to mask unwanted changes i.e
option_reg = option_reg & 0b01111111
please bear in mind, my C knowledge is as weak as the pic pullups
