Confusion and possible bug on 16f876
I've been working with 16f876 chips for some time now using PIC BASIC Pro and have recently run into a strange phenomena that has me baffled. Pins 1 and 2 on PORTB have some issues I believe. They don't always go high as outputs when you tell them to go high. Check out this simple code:
DEFINE OSC 20 ' define oscillator to be 20Mhz
ADCON1 = 7 ' set pins to digital
HIGH PORTA.5
HIGH PORTC.4
HIGH PORTB.5
HIGH PORTB.4
HIGH PORTB.1
HIGH PORTB.2
STOP
If you run the above code I think you will find that PORTB.1 and PORTB.2 are still LOW. They never turned high!
I am hoping someone can confirm my results.
Kind Regards,
Eric