Question: Write following code fragment in C 1) Write a function that will emulate the reading of data via the SPI standard. The basic function will
Write following code fragment in C

1) Write a function that will emulate the reading of data via the SPI standard. The basic function will be something like the following pseudo-code int SW_Spi( void) Set Clock low Set CS (Chip Select) low Loop for 16 times (k-15 to 0) Set Clock high Read input and place in bit k Set Clock low Set CS (Chip Select) high 2) Use the function written in part 1 to read the temperature from a thermocouple, and display it on the 3) Add a clock to the display. As always a clock that can't be set is worthless. Thus you will need to be able set the clock, using the encoder and button. 1) Write a function that will emulate the reading of data via the SPI standard. The basic function will be something like the following pseudo-code int SW_Spi( void) Set Clock low Set CS (Chip Select) low Loop for 16 times (k-15 to 0) Set Clock high Read input and place in bit k Set Clock low Set CS (Chip Select) high 2) Use the function written in part 1 to read the temperature from a thermocouple, and display it on the 3) Add a clock to the display. As always a clock that can't be set is worthless. Thus you will need to be able set the clock, using the encoder and button
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
