Hi,
I share some code snippet, as attached
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.