treyz
Member level 5
Hi,
I am having a problem of tranmitting an frame from UART(PIC used is 18f4680).
Basically, I am getting that frame from SPI communication(PIC slave) and I need to send it via RS485, I have been told that I can still une UART, it is just the hardware which needs some modifications(transceiver etc..).
But my issue is, I don't know how to write my routine to send that frame.
Frame is such: STX-ADDR-DATA-ETX ==> 8 bits each.
my compiler is c18 from Mplab
Do you have any idea?
I am having a problem of tranmitting an frame from UART(PIC used is 18f4680).
Basically, I am getting that frame from SPI communication(PIC slave) and I need to send it via RS485, I have been told that I can still une UART, it is just the hardware which needs some modifications(transceiver etc..).
But my issue is, I don't know how to write my routine to send that frame.
Frame is such: STX-ADDR-DATA-ETX ==> 8 bits each.
my compiler is c18 from Mplab
Do you have any idea?