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.

TMS320F2808 on Docking Station Interrupt SCI-A Receive

Other Parts Discussed in Thread: TMS320F2808

Hi,

I have a TMS320F2808 controlCARD on a docking station and I'm trying to use the interrupts of the SCI-A receive module.

Im using the REALterm to configurate the port  and send the data.  I have CCS V5 and matlab 2013a and 2015a

I made a simple program with simulink to probe this and goes something like:

"Initialize the SCI-A interrupt" // CPU interrupt :9, PIE interrupt: 1

"Initialize the SCI-A receive module" // The data received must be a Uint8 that I send with the REALterm

"If the data is an A return a HELLO WORLD with the SCI-A transmit module"  

But when I send the "A" with the REALterm I don't have any answer of the card.

I made another program that just send me the "HELLO WORLD"  without the interrupt and the receive module and I have responce from the card.

I dont know if I misconfigurating the interrupt module or the receive module or  it's other thing but does anyone have any idea of what could I'm doing wrong?

Any assistance appreciated.

  • Hi Jonatan,

    How are you connecting up the Docking Station to your computer? 

    There are two main methods for your hardware:
    - wiring/connecting a RS232 cable up to J3 and utilizing the transceiver on the controlCARD
    - using the FTDI chip to convert USB to SCI

    In both cases there may be minor changes to enable the F2808's RX path.


    Thank you,
    Brett

  • Hi Jonatan,

    Here is a page that explains the possible hardware connections:

    Here is another page that shows the SCI receive block in Simulink, you need to enable "receive FIFO interrupt" and set how many bytes to receive before triggering the interrupt (FIFO interrupt level, keep it 1 to start with).

    Then use the HW interrupt block to react on the interrupt, put you serial receive block inside the function-call subsystem triggered by the HW interrupt block with a sample time of -1.

    The following demo show the technique for eCAN, just do the same for SCI:

    I hope it helps,

    Cheers,

    Antonin.

  • I was using the FTDI chip to convert USB to SCI, but now I know that I have to disconnect the Rx line that comes from the MAX32

    This mean that I have to remove the R18 from de Ccard rigth?

    I really appreciate your help.

  • Hi Antonin.
    That information will help me a lot.
    Then can I use a USB-RS232 cable to use de J3 port?
    To use the GPIO28 (SCI RX-A) and GPIO29(SCI TX-A) pins I have to use the same Serial over USB configuration?
    Yeah, my program its something like that, I already have the SCI-Receive module in a subsystem triggered by the HW interrupt block
  • Hi Jonatan,
    I agree with you.  Once you remove R18 on the controlCARD (and put a jumper on J9 of the Docking Station), the FTDI's UART/SCI pathway should work.

    Good luck,
    Brett

  • Yes, that is correct, on the F2808 ControlCARD you have to remove R18 to receive serial data from the FTDI chip and not from the MAX32.
  • FYI, we have been successfully testing the baudrate of the serial over USB connection up to 1.5Mbps on the docking stations and other hardware using the FT2232D version of the FTDI chip, which is very decent. Anything above this value will fail on your host computer.
    For the new ISO ControlCARDS and the Launchpads where you have the FT2232H version of the FTDI chip, we have been successfully testing the connection with serial baudrates up to 6Mbps.
    I hope it helps,
    Antonin.
  • Thank you, a lot. Now... it's working!!!