AnsweredAssumed Answered

Question on using UART

Question asked by Peter Doyle on Dec 9, 2015
Latest reply on Dec 9, 2015 by Jorge_Gonzalez

Hi everyone,

 

I'm new to Kinetis uCs and I have a few questions in relation to UART on the FRDM_K64 board.

I've been able to make use of the 3 demo apps provided and they are very useful but I'm feeling a bit confused.

The 3 different UART types provided are:

Blocking - doesn't return until receive/transmit is complete.

Non-Blocking - returns immediately.

Polling - checks to see if data is available.

 

but couldn't it be the case that a device could be set up as polling and blocking or polling and non-blocking?

 

I've only dealt with UART in PICs where the RX UART was interrupt driven, where a flag is set that can be read in the while loop to check if new UART data is available.

Are the demo apps also interrupt driven (apart from the polled example obviously) or do I need to implement this separately?

 

Thanks,

 

P

Outcomes