AXE133 ported to 14M2 using hardware UART needs no delay between chars upto 9600 baud
EDIT (2/5/2017): Updated version 3.0 of this code capable of operating at 9600 baud is available from post #2
EDIT (3/5/2017): Replaced the circuit attachment. The original circuit had a mistake, pin 1 was not connected directly to the 5V supply
I have ported the RevEd AXE133 code to the 14M2 by using the 4-bit interface to the LCD.
I have also modified it to use the hardware UART instead of the SERIN software serial command. Running at 32MHz a serial backpack using this code can keep up with serial commands sent at 4800 baud. It does not need a delay between each character sent, as the code using SERIN does.
There is one exception. The message function (253,x) writes 16 characters to the LCD and the sending program must delay after sending a message command or some transmitted bytes will be lost. My 4-bit AXE133 code takes around 1.07ms to process each character so the sending program should delay at least 19.8ms. (2.2ms for processing the "253,x" command and 17.6ms for processing the 16 characters in the message).
EDIT (2/5/2017): Updated version 3.0 of this code capable of operating at 9600 baud is available from post #2
EDIT (3/5/2017): Replaced the circuit attachment. The original circuit had a mistake, pin 1 was not connected directly to the 5V supply
I have ported the RevEd AXE133 code to the 14M2 by using the 4-bit interface to the LCD.
I have also modified it to use the hardware UART instead of the SERIN software serial command. Running at 32MHz a serial backpack using this code can keep up with serial commands sent at 4800 baud. It does not need a delay between each character sent, as the code using SERIN does.
There is one exception. The message function (253,x) writes 16 characters to the LCD and the sending program must delay after sending a message command or some transmitted bytes will be lost. My 4-bit AXE133 code takes around 1.07ms to process each character so the sending program should delay at least 19.8ms. (2.2ms for processing the "253,x" command and 17.6ms for processing the 16 characters in the message).
Attachments
-
9.9 KB Views: 36
-
29.1 KB Views: 50
Last edited: