Question: 1-4 1. List the bitwise operators available in C and provide a brief description. Jim has declared an integer in his program called motor_speed. Explain
1. List the bitwise operators available in C and provide a brief description. Jim has declared an integer in his program called "motor_speed". Explain what is meant by "&motor_speed". 2. (a) What pin on our microcontroller is used to access bit 2 of Port A? (b) Jim is thinking of connecting an extra LED to pin 99 of our microcontroller. What port resource(s) will he need to light it? 3. 4. Jim wants to "toggle" (i.e., complement or invert) only bits 7 and 3 of Port G. a. Show how to accomplish this using a function from the Peripheral Library b. Show how to do this using the special function register (SFR) LATGINV c. Show how to do this using only LATG andservariables or constants as needed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
