Exercises
11.1 It is required to design an event counter system. An event is recognised by the LOW to HIGH transition of an external digital signal. Assuming this signal is connected to port pin RC0 of a PIC microcontroller, write a program to display the number of events occurring.
11.2 Design a microcontroller based digital thermometer using the LM35DZ temperature sensor and display the temperature on the LCD. Use +5 V reference for the A/D converter.
11.3 Repeat exercise (2), but use a +3 V reference voltage for the A/D converter.
11.4 Repeat exercise (2), but display the temperature both in °C and in °F.
11.5 Repeat exercise (2), but use an external push-button switch such that the temperature is normally displayed in °C, but when the switch is pressed the temperature is displayed in °F.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access