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.

Example_2806xSci_FFDLB_int Data issue on terminal

Other Parts Discussed in Thread: CONTROLSUITE, MAX232

Hello,

I am using "scia_loopback_interrupts" example for some experiment purpose.

C:\ti\controlSUITE\device_support\f2806x\v136\F2806x_examples_ccsv5\scia_loopback_interrupts

Whereas, program works fine in software, i.e. memory data values are correct and no error is generated.

BUT, I find some issue with data which is seen on serial port as such. This program sends data 1-->255 in a continuous loop but when I connect a hyper terminal to read/print this data. Some wired output is printed which has no pattern as such.

Same patter is observed if I just disable loopback mode on this program and just transmit data 1-->255.

Can anyone suggest, Why I am not able to see on terminal exactly what is send via program?

-Varun

  • Hi Varun,

    BUT, I find some issue with data which is seen on serial port as such. This program sends data 1-->255 in a continuous loop but when I connect a hyper terminal to read/print this data. Some wired output is printed which has no pattern as such.

    I hope you've a level shifter circuitry ie converting TTL to RS232 IC like MAX232 etc...

    Regards,

    Gautam

  • Hi Gautam,

    I use controlstickxxx69. and echoback programs works perfectly well with same hardware. So, I doubt any hardware setup issue.

    Do you see any problem here in hardware setup?

  • I use controlstickxxx69. and echoback programs works perfectly well with same hardware. So, I doubt any hardware setup issue.

    Thanks for the above info, Varun. Now, please correct the baud rate. Both the examples are meant for different application. As, echoback example is meant to communicate with hyperterminal, you're able to observe correct data. Whereas in loop_back interrupt, the baud rate is different. So, try copying the same baud rate values from echoback to this code.

    SciaRegs.SCIHBAUD    =0x0001;  // 9600 baud @LSPCLK = 22.5MHz (90 MHz SYSCLK).
        SciaRegs.SCILBAUD    =0x0024;

    Regards,

    Gautam

  • Thanks, it works!

    Btw, I had changed baudrate to 0001, and 0003 as per my calculations (from echoback example) but something wrong in my calculations.

  • That's great, Varun!

    Goodluck & Regards,

    Gautam