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 for loopback or none loopback

Other Parts Discussed in Thread: CONTROLSUITE

hi:

I use controlsuite's  device_support -->f2802x--> V230-->f2802x_examples_drivers-->sci_ehcoback   /   scia_loopback   / scia_loopback interrupt .      three  example grograms .

But there is problem appearment , (by the way ,I use f28020 mcu ).  that is :

First , I download scia_loopback interrupt to my board , run,  verything is ok!  .  

Second : when i dis-loopback set ( SCI_enableLoopBack(mySci);) , then connect TX and RX terminal outer ,  I mean , I short that two pin directly . rusult is sciaRxFifoIsr()   can not recieve signal from RX pin

Third: I turn back to reload sci_ehcoback program , and short TX with RX out pin . then run, verything is ok!

My purpose is using interrupt receive the signal from RX pin  rather than  inter  loopback .

I compared these two programs , but can not find what make problem .

what will to do further ? does someone give me an advice?

 

best regard

hunk fu!

  • Yanzhen,

    If you have the correct pins connected, it should work as it did with internal loopback. you will need to check your connections.

    Also, make sure you write 0 to LOOPBACKEN in the initialization code instead of the normal 1. If you just comment out the write, then it may not work and may not be initialized or configured properly.

    sal