Chipwizard
New Member
Success at last. I had a feeling it was something simple that is preventing the colors to be placed correctly. In the subroutine color calls (Red, Green, Blue) I changed movlw to movfw and the entire code works perfectly. Now I will be working on Table lookup section (129 color sets) and SW interrupt on RA5 to change color sets on demand. Here is the change reflected that made the code work:
Red
movfw Color1
movwf copyPORTA
return
;---------------------------------------------
Green
movfw Color2
movwf copyPORTA
return
;---------------------------------------------
Blue
movfw Color3
movwf copyPORTA
return
;---------------------------------------------
Red
movfw Color1
movwf copyPORTA
return
;---------------------------------------------
Green
movfw Color2
movwf copyPORTA
return
;---------------------------------------------
Blue
movfw Color3
movwf copyPORTA
return
;---------------------------------------------