On some PICs RB4 is open drain meaning it can only sink current not supply. If you can show me the C compiler that can change that I'll be impressed ;-)
Look at the datasheet for the PIC you're using, it will tell you if RB4 is open drain or push-pull output. If it's push-pull you'll be fine otherwise it might be enought to add a pullup resistor.
/Henrik.




Bookmarks