Tool/software:
Hello there,
I am trying to transmit an array of data using SCI_writeCharArray() in a tx ISR and my understanding is this function writes the entire array at once and send it out but if you look at the attached screenshot line# 319 executed while SCI_writeCharArray() is still writing. I want the enable pin to go low after I finished the transmission of data not before or in between the transmission.
I know there are APIs which puts one char at a time on the shift register (e.g. SCI_writeCharBlockingFIFO()) but that will trigger the ISR for each byte, what I want is send data in one shot and then make the enable pin go low.
I also try the something like this:
while(SCI_getTxFIFOStatus(SCIB_BASE))
{
SCI_writeCharArray(SCIB_BASE, g_send_data, g_count);
}
but didn't work.
Note: In the attached screenshot we are coming to ISR only once which is good but line#319 executing before or with line#317 is not good.


