Hello Alice,
I am using KDS along with PE and it seems UART0 is not getting configured with PE so not sure where to look at.
I am basically just sending data every 50ms over UART0 or UART1 and have used PE to configure the UART0 on PIN 23, Pin24 of the micro (PA2, PA3).
If I send over UART1 then it works fine but if I send over UART0 then nothing comes out of the pin..Not sure if it has to do with UART0 clock or something..I am too new to Kinetis so dont know much.
void TransmitReedSwitchData(void)
{
unsigned char i;
unsigned char retVal;
reedSwData[2] = GetReedSwitchInfo();
for(i = 0; i < 4; i++)
{
SystemBusClearTransmitterReady();
retVal |= SysBusIF_SendChar(reedSwData[i]); //USART1Write(bufferPtr->data[i]);
if(retVal)
{
break;
}
while(!SystemBusIsTransmitterReady());
}
}
the flag below is set in the events.c file (interrupt routines)
void SystemBusSetTransmitterReady(void)
{
SB_DEVICE_SCI1_TX_EMPTY = 1;
}
Events.c file code..
void SysBusIF_OnTxComplete(void)
{
/* Write your code here ... */
SystemBusSetTransmitterReady();
}
All the above code works fine with UART1 but not with UART0 ..