Question: Program in C The Serial Communcations status register RDRF bit becomes high once the receiver gets a complete character. Write a function TERMIO_GetChar that will
Program in C
The Serial Communcations status register RDRF bit becomes high once the receiver gets a complete character. Write a function TERMIO_GetChar that will return a char value and does the following: a. Reads the SCI status register value into a temporary int type variable and while RDRF bit is low, wait in a spin-lock for data to appear, so RDRF becomes high. b. Return the value in SCIDRL The Serial Communcations status register RDRF bit becomes high once the receiver gets a complete character. Write a function TERMIO_GetChar that will return a char value and does the following: a. Reads the SCI status register value into a temporary int type variable and while RDRF bit is low, wait in a spin-lock for data to appear, so RDRF becomes high. b. Return the value in SCIDRL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
