I bugged together a test because I can not remember.
From a terminal on both of the following examples I am sending
Example #1Code:83,79
DisplaysCode:V1 VAR BYTE V2 VAR BYTE T_MAIN: SERIN PORTC.7,N2400,V1,V2 PAUSE 1000 SEROUT PORTC.6,N2400,[V1,V2,10] PAUSE 250 GOTO T_MAIN
83
Example #2
DisplaysCode:V1 VAR BYTE V2 VAR BYTE T_MAIN: SERIN PORTC.7,N2400,#V1,#V2 PAUSE 1000 SEROUT PORTC.6,N2400,[V1,V2,10] PAUSE 250 GOTO T_MAIN
SO
Dave
Always wear safety glasses while programming.
I made a reduced size test program and still got the same results. Finally, with nothing else to try I changed the SERIN pin from PORTB.7 to another pin I was not using (PORTC.1). Works like a charm.
I guess it is either a bad chip or some obscure setting for portb.7 I missed. Thanks for all the help.
Could be a bad connection. I have it installed on a test board. I am making the permanent board which should only be traces, not a bunch of wires. Hopefully, that will remove my ghost.
Thanks for all the help, unfortunately the code was the fun part, drawing up the circuit and making the cca is not as fun.
Bookmarks