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.

Serial Communication with f28035

Other Parts Discussed in Thread: TMS320F28035

Hello,

         I am using TMS320F28035 Experimenter's kit . I have modified the cpu_timer example code and added serial communication interrupt code in it. My code works well.

I want to change an integer value say " i "  in code by sending message through serial communication. Mesage: " i200 ".

Above Message should change the integer value of i to i=200;  

Please help me with the code or algorithm for above problem.

 

Regards,

Shantanu.

  • Shantanu,

    This should be relatively simple.

    1) You need to configure the SCI /DSP to receive data from hyperterminal at the desired baud rate.

    2) Since you need to transmit i200, you can first send 'i' in ASCII through the hyperminal, you need to have some sort of look up table in your program to identify the variable received.

    3) Then you can transmit the 200.

    4) When since the DSP has the both the variable and the constant to used, you can assign the constant to the desired variable.

     

    Hope this helps!

    Regards,

    Manoj

  • hi,

    Since we transmit  only 8bit word, we get only "2" "0" "0" instead of 200 as a single word which i can directly assign to the variable.

    I think, it requires some sort of array code or something. Plz help me to figure out the same.