Hardware Reference
In-Depth Information
11.11 Lab Exercises and Assignments
L11.1 Write a program to store 0 to 255 in the fi rst block of the 24LC08B of your demo board
and then stay in an infi nite loop to read out one value from 24LC08B sequentially every half-
second and display the value on eight LEDs of the demo board.
L11.2 Connect the DS1631A to the I 2 C bus of your HCS12 demo board. Write a program to set
up the high- and low-temperature trip points to 40 and 20°C, respectively. Whenever the tem-
perature goes above 40°C, turn on the alarm (speaker). Turn off the alarm when the temperature
drops below 20°C. Display the temperature on the LCD display, and update the display once
every second.
L11.3 Use the DS1307 (if any) on your demo board to set up a time-of-day display using the
LCD. Enter the current time and calendar information using either the DIP switches or the
keyboard. Update the current time-of-day display once a second. In addition, add alarm time to
your program. Whenever the current time matches the alarm, generate the alarm for 1 min us-
ing the buzzer on the demo board.
 
Search WWH ::




Custom Search