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.

Some shares & Fifo SCI Receive Interrupt in TMS320F28035 trouble

Other Parts Discussed in Thread: TMS320F28035

 

Hi,

I share some code snippet, as attached

3441.F035_Flash_2dFFT_06.zip

The entire code is a FIFO-4, interrupts, loopback SCI transeiver and verified to be correct on F28035.

 

What shares is as follows:

1. A MATLAB code to evaluate SCI parameter settings (LSPCLK, BRR) for better throughput (run-time-bard-rate)

 theoretically (when runs on contineous mode. But F2803x SCI only support idle-line & addr-bit modes). Therefore, this one is not much helpful.

(one of the benefits which tells you the maximum bytes to transfer continuously might not cause errors)

2. A ring-buffer code snippet suitable for F2803x SCI, which benefits to not to lose keys.

3. Non-blocking send/receive manner of UART.

 

And I have a big problem when using FIFO+interrupt receiver. Please refer to

http://e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/t/107708.aspx

 "Fifo SCI Receive Interrupt in TMS320F28035"

 

I have thoroughly no idea why the receive-interrupt does not generate???????????????

In the attached file, loopback is enabled, the send/receive work fine.

but, when loopback is disabled, following the keys are sent from hyperterminal, the F28035's SCI receiver has no responses (no receipt interrupts)

but the send/interrupt still works fine.

Would anyone give me hands that how to configure the receiver interrupt correct?

Thanks a lot.

 

Ken.

 

 

 

  • HI,

    At this moment, my name is on the "TOP Contributors", Wooh~~It's great to me^^ (though, I'm not much familiar with C2000 :P).

    Therefore, in addition, I share again that I think it much useful - An F2803x SCI Host program testing.

    A windows program which was written with Borland CB, source code included.

    This project is as follows:

    because it has bin files, it is encrypted.

    password: 123

     

    0576.F035_Flash_2dFFT_07.rar

     

    which  it does & you can:

    1. Use F2803x SCI painlessly & directly with FIFO-4, duplex, interrupted transeiver. - how to use "send / receive", which is easy to realize from the code.

    I believe that, use it directly, you'd have no SCI problems anymore hereafter.

    2. Host program, let you flexibly examinate how much throughput / speed of capabilities that the UART inside your project can bear / perform maximally.

    This host program does: send data to F2803x, F2803x receives, F2803x sends the same data back, host receives and compares, all the data of both are queued is

    the biggest characteristic of this project here.

    3. No more need to say that, I believe it would benefit you a lot by any means when you use SCI!!!

     

    Ken.