Re: Old issue, New question, pullups
If you read the datasheet without preconceptions, they are very clear on how TRISB and PORTB work.
A "0" in TRISB makes the pin an output, a "1" makes it an input,
so if you are trying to toggle a pin high and low, make it an output, and just twiddle the PORTB bit (or LATB if your PIC had one, which a PIC16F886 does not. One more reason to NOT use those ancient PICs)
This forum is mis-configured so it only works correctly if you access it via https
The Microchip website links to it using http
protocol. Will they ever catch on?PicForum
"it just works"