Would someone clarify the difference between UARTprint and UARTwrite. I am using a TIVA TM4C123GXL to transmit via UART to a motor driver. The specification of the driver say that it must be 8 bits no parity and 1 bit to stop at a baud rate of 9600 ( this is the one I'm choosing out of 4 different baud rates).
The driver is set to work as follows.
Char Motion
1 full reverese
64 stop
127 full forward.
I started with lab 12 of the workshops and have included the two push buttons on the board. My code constantly prints a 64 (using UARTPUTCHAR function) unless one of the buttons is pressed in that case either print a 1 for reverse or a 127 for forward.
-Problems
My problem with using UARTPutChar is that when I write '127' it truncates the 12 and by using my putty I can tell it only transmits a 7. Similar scenario with 64.
I did some digging into some other codes and have discovered the UARTprint and the UARTwrite functions by adding the symbolic files.
So my question arises from this discovery, what is the difference and which one should I be using to communicate necessarily with the motor driver?
Thank You,
Luis Alberto Vergara-Rodriguez