Quote Originally Posted by sbobowski View Post
ok i found
OPTION_REG.7=0 ' Enable weak Pull-Ups

and micro code studio accepted that.

so why does option_reg not have a # behind them
and ADCON0 Does ???

Thanks again in advance
sorry if I'm a rock
Not sure what you mean here..... the option register is 8 bits. With the statement OPTION_REG.7=0, bit 7 of the option register (bit 7 RBPU: PORTB Pull-up Enable bit
1 = PORTB pull-ups are disabled
0 = PORTB pull-ups are enabled by individual port latch values) enables weak pullups. Also from pg. 38 section 5.2
Each of the PORTB pins has a weak internal pull-up
(≈200 μA typical). A single control bit can turn on all the
pull-ups. This is done by clearing the RBPU
(OPTION<7>) bit. The weak pull-up is automatically
turned off when the port pin is configured as an output.
The pull-ups are disabled on Power-on Reset.
. Not sure if I'm answering you question or not.