This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

using serial port in tiva C series.

Other Parts Discussed in Thread: TM4C123GH6PM, ENERGIA

hello 

i am using tm4c123gh6pm to run a stepper motor. according to my code if i write 10 to COM3( which is where the controller is connected) , the motor should spin. When i directly write to the port using command prompt (i use the function echo 12>com3) , the motor spins. however , when i write a code in visual studio to write 3 to the com port the motor does not spin. What could possibly be wrong?

  • Hello Gourav

    Did you scope the UART lines to see

    1. If the UART from the PC to the TM4C123 device is being sent?

    2. The Baud Rate is correct from PC to TM4C123 and so is the frame format as expected by TM4C123?

    If you can capture a scope plot it would be useful

    Regards,

    Amit

  • Poster's description is far too brief/undisciplined.  (Yet - scent of "Energia" registers)

    Earlier Template Suggestion forces bit more, "coherence" from posters - saves (needless) wear/tear on staff (& outsiders) who must daily, "prompt for the (neglected) tech basics!"  Oh well!   (tag {below} well describes...)