Hi, Robert,
I suppose that you have a host processor, the host processor can send instruction to MKL27 via UART interface. If it is the case, you do not need to call the GETCHAR() function, you can set the UART of MKL27 in interrupt mode, once the host send an instruction to MKL27, the UART of MKL27 will receive the instruction and trigger an interrupt to MKL27 core so that user can deal with the instruction in UART ISR. You can use polling mode to check if the UART has received a char, the efficency of MKL27 is low in the mode.
In conclusion, I suggest you use UART interrupt mode, in the ISR of UART, you can write code to deal with the instruction from host.
Hope it can help you
BR
XiangJun Rong