My explanation of my code was not very clear in my original post. In the code I want to set what i call Load pin hi at start of sending data and when the data has completed set the pin low. The code does this perfectly as needed but only the first time though. I believe my problem is i don't know how clear the interrupt when leaving the interrupt routine. In the API i don't really see an option for clearing the interrupt. What am i missing in my understanding of this interrupt process.
There is a SCB_ClearTxInterruptSource() API which you need to call in your handler. Otherwise the same interrupt will fire over and over.
Bob thank you for helping me with this. I am unclear as to what I put into the expression part of this API.
In my case it is UART_ClearTxInterruptSource(???) What is expected in the expression?
I will try an d look at data sheet and see if i can educate my self.
Ok .... after reading AN90799 and Interrupt 1.7 I was able get better understanding of what was needed to fix my issue. Since I am using a Fixed Function Interrupt Source with an external interrupt, I need to deal with clearing the interrupt differently. I also looked up an application of how a fixed function Timer CE195385 handled the same application as mine. That being a fixed function source with an external Interrupt attached.
So a Bob directed me I need to use the following API call and MASK in my Interrupt handler routine to fix my issue.
Load_Write(0); // deactivate load pin when data