As the pin are set to input.... if you write to them, the result stay unchanged... as i posted. Not sure with the interrupt.
Why do you think that PORTB.7=1 or PORTB.7=0 no nothing if the TRIS.7 is not set to 0?
One thing is sure, you will clear the RBIF bit just by reading PORTB, so the above solution using Temp=PORTB will certainely cause some strange interrupt behaviour (at least you will miss some). All in the datasheet in INTCON register description.
Last edited by mister_e; - 19th October 2006 at 00:33.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks