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.

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.