Hi, Newbie here.
I am just starting with PIC programming and have come across something very confusing with PicBasic. From my reading it appears that by assigning 0 to a pin's Dir you make it an input and by assigning 1 you make it an output. (page 22 of the PicBasic manual)
But then there is this code:
Symbol TrisA = $85
Poke TrisA,255 'make all portA pins inputs
- aren't we assigning ones to the TrisA bit of each pin and shouldn't that make them outputs?
Am I missing something here?
This is really going to bug me; your input will really be appreciated.
I am just starting with PIC programming and have come across something very confusing with PicBasic. From my reading it appears that by assigning 0 to a pin's Dir you make it an input and by assigning 1 you make it an output. (page 22 of the PicBasic manual)
But then there is this code:
Symbol TrisA = $85
Poke TrisA,255 'make all portA pins inputs
- aren't we assigning ones to the TrisA bit of each pin and shouldn't that make them outputs?
Am I missing something here?
This is really going to bug me; your input will really be appreciated.