Timer

Test 13. Timer

Real Time Clock emulation on the LCD Source code:

Interfacing PIC Microcontrollers to Peripherial Devices-0343Interfacing PIC Microcontrollers to Peripherial Devices-0344Interfacing PIC Microcontrollers to Peripherial Devices-0345Interfacing PIC Microcontrollers to Peripherial Devices-0346Interfacing PIC Microcontrollers to Peripherial Devices-0347Interfacing PIC Microcontrollers to Peripherial Devices-0348Interfacing PIC Microcontrollers to Peripherial Devices-0349Interfacing PIC Microcontrollers to Peripherial Devices-0350Interfacing PIC Microcontrollers to Peripherial Devices-0351Interfacing PIC Microcontrollers to Peripherial Devices-0352

Program description

When microcotroller powers on, it starts counting the time and shows the time on the LCD display in the format HH:MM. Colon between hours and minutes is flickering with the frequency of 1 Hz. After 60 s number of minutes increases with

1. When the number of minutes reaches 10, it is cleared and tne number of tens of minutes is increased. When it reaches 6 (when it is 60 minutes), the number of hours increases and number of minutes is cleared and so on. Detailed explanation is in comment lines.

The application measures time correctly.

Interfacing PIC Microcontrollers to Peripherial Devices-0353

Leave a comment

Your email address will not be published. Required fields are marked *