Other Parts Discussed in Thread: DRV8301
Hello,
We have a PCB we’ve designed, with the objective of using InstaSpin to control a BLDC motor. The micro we’re using is the TMS320F28069M. I have to communicate with an LCD, using a UART at 115.2 kBAUD, 8 bits, one stop bit, no flow control, or other fancy stuff. So, I’ve been trying out some of the examples provided by TI. The loopback example works perfectly. Running the Echo Back example, however, I received only gibberish, using RealTerm, or TeraTerm as the terminal program. At first, I thought that the USB to Serial Converter was at fault (it was not explicitly supported in Windows 10). I got a new USB to Serial but got the same results. Now I’m going straight into a genuine serial port on a machine that (luckily) has one. Still the same thing…
I pared the Echo Back example down little by little, so that now I’m using it to just transmit a single character repeatedly, at 9600 BAUD, rather than the original 115.2K.
You can see in the scope output in the attached files, that the output is as expected, and is at the appropriate BAUD rate. I see this over and over for every character I try to transmit. At one point I was thinking it might be a big-endian vs. little-endian issue, but you’ll see in the attached word document that this is not the case. Using Code Composer, I can monitor the value of "msg", the variable in which the eventual output of the serial port is stored, and it is also always what I expect.
One big difference in the way that I’m using Echo Back is that I’m trying to transmit and receive using the B Serial Port, and the example is set up for the A Serial Port. The pins for the A port are just not available to me, as they are being used for something else.
I've tried every possible permutation (I think) of settings in RealTerm, and this is just driving me crazy that such an apparently simple process should come out so wrong.
I’ve provided the .c files that I’m currently using for this example project (including the alterations I’ve made). If you need any of the .h files, please let me know.
Outputs.zip
Thanks,
Dave