PASM single pin turn on or off.
TJHJ
Posts: 243
I dont know why I am having such a hard time with this. I am new to PASM( In case you missed that LOL). And I cant seem to find an example.
So I cant seem to figure out how to turn on or off a single pin. If I use the mov command, I overwrite the whole register. If I use an or command I cant garentee which state it is in.
Anyone have an example of how to do this.
Thank you for your time.
TJ
So I cant seem to figure out how to turn on or off a single pin. If I use the mov command, I overwrite the whole register. If I use an or command I cant garentee which state it is in.
Anyone have an example of how to do this.
Thank you for your time.
TJ
Comments
The above assumes that the corresponding bit in DIRA has been turned on already.
TJ
take a look at the PASM-commands MUXC MUCNC MUXZ MUXNZ Prop-manual page 383ff.
short example:
best regards
Stefan