'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
Really? I've gotten a similar code to work using the above port codes.. that's strange.
Bookmarks