Question: Please write in C code as if you were programming a MSP430FR6989 microcontroller. Try to make comments for it as well so I can follow
Please write in C code as if you were programming a MSP430FR6989 microcontroller. Try to make comments for it as well so I can follow the code please. It has multiple parts.

QUESTION 8. (10 points) For the questions below, write the code using the masks that are pre-defined in the header file. (E.g: BITO: 0000 0001, BITI:0000 0010, ... BIT7:1000 0000). Perform the operations below on the 8-bit variable (uint_8t data). Parta) Write code that performs the three operations below. Perform each operation independently of the others. Set bit 5. -2- Clear bit 5. Invert bit 5. Part b) Write code that performs the three operations below. Perform each operation independently of the others. Set bits 6 and 7. Clear bits 6 and 7. Invert bits 6 and 7. Set bit 6 and clear bit 7. Parte) Write an if-condition line for each of the cases below. Perform each operation independently of the others. Check if bit 2 is 1. Check if bit 2 is 0. Check if bits 5,6 are 1,1. Check if bit 5 is O and bit 6 is 1. Check if bits 5, 6 are 0,0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
