Reading

Homework

Please type all homework and homework assigned this lesson is due at the beginning of class next lesson.

Integrity: Your honor is extremely important. This academic security policy is designed to help you succeed in meeting academic requirements while practicing the honorable behavior our country rightfully demands of its military. Do not compromise your integrity by violating academic security or by taking unfair advantage of your classmates.

  1. How many bytes are the following
    1. uint8_t
    2. int8_t
    3. int32_t
    4. uint16_t
  2. What C header file do I have to include in my code to use boolean values?
  3. Write the C code to disable the watchdog timer (you can do it in one line).
  4. Why do I use the key word volatile on a variable like: volatile uint8_t bob;?
  5. Why is #define bob 10 not a good thing to do? Hint: it is better to do: const uint8_t bob = 10;, but why?
  6. If I wanted to set the 3rd bit of int8_t a, how do I do that in C?
  7. If I wanted to clear the 2nd bit of int8_t b, how do I do that in C?

Resources