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.

How to use two serial communication ports (SCIa and SCIb) without interference or delay?

Hi All,

My system needs two independent serial communication ports SCI-A and SCI-B running at the same time.  I have them SCI-A or SCI-B each working perfectly if only ONE of them runs alone by itself.  However, once they run at the same time, SCI-B-TX got delay and scrambled due to a wait for SCI-A-TX.  Please see the attached diagram if you can see it.  I understand both SCI-A and SCI-B are in the same PIE Group 9, and SCI-A has higher priority within the Group 9.  But is there a interrupt configuration that I can set to have SCI-B-TX running continuously (after the interrupt being released) without delay or interference from SCI-A-TX?  Or how can both SCI-A-TX and SCI-B-TX run simultanously?

Thank you so much in advance!

YeuShyr

 

  • Hello,

    First I would recommend to use the FIFO buffers.  This minimizes CPU overhead and reduces the number of interrupts and the chance of leaving an interrupt pending while another is serviced.  In addition, you could use a different interrupt level for one of the SCI modules so that the initial interrupts do not occur in the same time frame.

    Kris

  • Hi all,

    I trying to find out more about serial port communication.

    MSP430G2553 with ADXL345 accelerometer and L3G4200D Gyro to do some data collection.

    Any suggestions? Please help. Many many thanks. :)

    Best regards,

    HQ