Hi JDM160
'define ports
green VAR TRISA.0
red VAR TRISA.1
blue VAR TRISA.2
Above is your intial code.
TRISA is data direction contrl register for PORTA.
You should use PORTA.0,PORTA.1 and PORTA.2.
TRISA can not be use as output port.
a.majid
Hi JDM160
'define ports
green VAR TRISA.0
red VAR TRISA.1
blue VAR TRISA.2
Above is your intial code.
TRISA is data direction contrl register for PORTA.
You should use PORTA.0,PORTA.1 and PORTA.2.
TRISA can not be use as output port.
a.majid
from_myanmar
JDM,
How about having a look at the PBP Manual ?
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
Really? I've gotten a similar code to work using the above port codes.. that's strange.Originally Posted by a.majid
Bookmarks