
Originally Posted by
DiGGi
...If I use e.g. the commands 'PINx' , 'Button' or 'High/Low' they all work only on PortB. Is there a possibility that they work on PortA ??
No - As I remember, PBC does not have predefined pins or directions for PORTA. You must do them directly (make sure you turn off any analog presets as Bob has noted – this requirement is PIC specific).
For example to make RA0 high,
Code:
poke $85, %00000000 ' make all PORTA outputs
poke $05, %00000001 ' set RA0 high
to turn off RA0 and turn on RA1, you could then do this
Code:
poke $05, %00000010
Ask if you need more and good luck
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Bookmarks