Question: Question 2: Software vs. Hardware implemented UART (20pts) a.) Software: Assume there is no UART hardware device. Complete functions initopertB and serial sendichar my txt)


Question 2: Software vs. Hardware implemented UART (20pts) a.) Software: Assume there is no UART hardware device. Complete functions initopertB and serial sendichar my txt) to implement the UART protocol in software. [10pts] Given: Assume you have available a function called wait uslfloat Waitime) that waits for WaitTine microseconds before continuing Configure pin 3 of Port B as ?? GPIO output [5pts] // Send mytxt out of Port B pin 3 encoded in the UART frame and // speed specification given in Question 1. Since there is no /1 UART device, your code must use the GPIO Data Register of vaid serial.send(char m^txt) Question 2: Software vs. Hardware implemented UART (20pts) a.) Software: Assume there is no UART hardware device. Complete functions initopertB and serial sendichar my txt) to implement the UART protocol in software. [10pts] Given: Assume you have available a function called wait uslfloat Waitime) that waits for WaitTine microseconds before continuing Configure pin 3 of Port B as ?? GPIO output [5pts] // Send mytxt out of Port B pin 3 encoded in the UART frame and // speed specification given in Question 1. Since there is no /1 UART device, your code must use the GPIO Data Register of vaid serial.send(char m^txt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
