I have programmed a PIC18F4520 to send some hex values (A,B, and C) to PUTTY every time I press a button. That works great. In my program, I press the button to branch to the transmit subroutine. It loads A, sends it out, loads B, sends it out, then loads C, and sends it out, all out of pin 25, the TX pin.
This is going to be a problem later. It is literally sending "start bit, data, stop bit" for A, and then "start bit, data stop bit" for B, and same for C. However, I would rather it send "start bit, ABC, stop bit," like a string. This is because I would like the PIC to send a full command to something. In order to do this, it needs to be a data string, but I can only figure out on my own how to make the PIC send individual, isolated 8 bit words, each with their own start/stop bit. How can I make the PIC send strings of data?
Also, is there a way to do this without C? I learned how to do PICs in school, and we learned the RISC way (MOVLW 0xF4 kind of stuff).
This is going to be a problem later. It is literally sending "start bit, data, stop bit" for A, and then "start bit, data stop bit" for B, and same for C. However, I would rather it send "start bit, ABC, stop bit," like a string. This is because I would like the PIC to send a full command to something. In order to do this, it needs to be a data string, but I can only figure out on my own how to make the PIC send individual, isolated 8 bit words, each with their own start/stop bit. How can I make the PIC send strings of data?
Also, is there a way to do this without C? I learned how to do PICs in school, and we learned the RISC way (MOVLW 0xF4 kind of stuff).