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.

sci_echoback wrong baud problem with TMS320C2000 (F28069) (added oscilloscope pic)

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28069

Hi,

I have set up my Putty terminal to the settings described in sci_echoback (controlSUITE\device_support\f2806x\v135\F2806x_examples\sci_echoback) but all I get is jibberish. I can clearly see that my F28069 is receiving the letters I am typing and printing them back, only it is shown wrong. I believe this has something to do with the baud rate.

Is the clock settings in sci_echoback set correctly according to my TMS320F28069 on my TMS320C2000 PLC development kit? If not, how should this be set up? 

EDIT: Added picture of TX line of msg = "\r\nEnter a character: \0"

I have checked that SciaRegs.SCInBAUD is correct with ( 20 MHz / 9600 * 8) - 1 ) 259 = 0x103 : SCIHBAUD is 0x0001 and SCILBAUD = 0x0003

  • Thanks to this post I figured that I have 20 MHz external OSC, PLL sets SYSCLKOUT to 90MHz and Low-Speed Peripheral Clock is devided by 4 by default, making my LSPCLK 22MHz. This gives me a new value for my baud rate registers and everything now works fine. 

  • Hi Christian.

    Is your working solution using the SCIA (DB9 connector on the plc kit) or the usb SCIB? I tried the usb SCIB and changed all the SciaRegs to ScibRegs (and other matches), and I changed the SCIHBAUD to 0x0001 and SCILBAUD to 0x001D for a 22MHz , but did not get any luck with the usb SCIB, I didn't get any received char. 

    Thank you and look forward your reply.

    Frank

  • Hi Shuai,

    Unfortunately I never got it to work with SCIB. If you encounter a solution, please let me know. Are you using the TMS320C2000 PLC kit? 

  • Hi Christain,

    Thank you for your quick reply,

    Yes I am using the TMS320C2000 PLC kit with a f28069 controlCard and  the docking station.

    Are you using the DB9 port labeled as SCIA on the side of the PLC box? What kind of connection do you use for connecting to your PC? USB or the 9-pin connector on your machine? I'm currently using a female DB9 to USB adapter to connect the kit with my laptop (which does not have the 9-pin connector), and I cannot get any luck for rx/tx. Can you provide some hints about some details that are easy to forget. And I have the baud rate:

    #define CPU_RATE   11.111L   // for a 90MHz CPU clock speed (SYSCLKOUT)

    #define DSP28_DIVSEL   2 // Enable /2 for SYSCLKOUT

    #define PLL2_PLLSRC 0x2 // PLL2 Input X1

    #define PLL2_SYSCLK2DIV2DIS   0 // PLL2 Output /2

    #define PLL2_PLLMULT     6 // (CLKSOURCE*6) /2 = SYSCLKOUT2

    SciaRegs.SCIHBAUD =0x0001; 
    SciaRegs.SCILBAUD =0x001d;//90MHz

    Not sure if my problem is in the DB9 to USB connector or the f28069 scia_echoback program.

    Thank you in advance for any help.

    Frank

  • Hey Christian,

    I did get the SCIB working, my problem was that after looking into the schematic of the docking station, I realized that the pin to the USB port of the docking station are GPIO 15 and GPIO 14 instead of the default GPIO 11 and GPIO 9. You may try to change this GPIO for your SCIB and see if that works.

    Hope this helps

    Frank

  • Thats great info, thank you. Glad you got it working, always an awesome feeling!

    Unfortunately my AFE got blown about a month ago, and I haven't received a replacement yet so my development on this kit has stopped. I also struggled with data transfer on the PLC side, so I will shoot you a PM if you care to discuss this a bit :)