Question: please help to solve these two problems. Thank you. For each of the following questions, produce valid C code in order to modify the desired


please help to solve these two problems. Thank you.
For each of the following questions, produce valid C code in order to modify the desired variable's bits while not modifying the other bits. Remember that the least significant bit in a byte is BITO and the most significant bit in a byte BITZ Q3 SFR Use 4 Points There are 3 inputs (P1.2, P1.5, P1.7) to the microcontroller and 3 outputs (P1.1, P1.6, P2.7). Write the Port_Init() function to fully configure all of the pins needed while not modifying others. void Port_Init(void){ Enter your answer here } Save Answer Q4 sbits 1 Point Create an "sbit" (Simulation version) for a digital light sensor (LS) attached to Pin 2 of Port 3. Enter your answer here Save Answer For each of the following questions, produce valid C code in order to modify the desired variable's bits while not modifying the other bits. Remember that the least significant bit in a byte is BITO and the most significant bit in a byte BITZ Q3 SFR Use 4 Points There are 3 inputs (P1.2, P1.5, P1.7) to the microcontroller and 3 outputs (P1.1, P1.6, P2.7). Write the Port_Init() function to fully configure all of the pins needed while not modifying others. void Port_Init(void){ Enter your answer here } Save Answer Q4 sbits 1 Point Create an "sbit" (Simulation version) for a digital light sensor (LS) attached to Pin 2 of Port 3. Enter your answer here Save
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
