Re: problems in PICF506
Hi,
Have not used that chip but will try and help.
RB3 is a dual purpose pin that can be Mclre or a Digital
Input Only.
As you say you need to change Config line to disable the Mclre function.
Again as you say , RB3 is only an Input and can only read an incoming signal - it can sense if that signal is high or low only.
Typical uses would be for say a switch input which may need a pull up resistor so rather than fit an external one you can use the 506s internal pull up resistor by enabling the RBPU bit 6 of the Option register.
This does not produce on output high in that sense.
When the pull up is turned off, it does not make RB3 low - that is not possible - it is an input.
The RBWU is a totally separate function where the pic tests RB3 for you and will act on the change according to the signal / function it is programmed for.
Afraid your
Here I am using ADC sensing value to make RB3 high & low
just is not possible with RB3, you must use another pin thats has Input and Output functions.
hth