Hi All,
I have coded a timer using mikroC compiler for a PIC microcontroller. The code is working but I want to make some improvements but I ran into some problems.
The code is quite simple: It is a timer where the user presses a button (3 buttons for 3 different time)to set off the countdown.
It counts down to 0 and sets off a buzzer. There is a 16x2 display to show the time left. Now the display display the time in minutes but I want the minutes and hours to be in this format: I just cannot get the code to show in this format. Hope there is someone who know how to fix this.
HH:MM
00:00
//regards,Jay
I have coded a timer using mikroC compiler for a PIC microcontroller. The code is working but I want to make some improvements but I ran into some problems.
The code is quite simple: It is a timer where the user presses a button (3 buttons for 3 different time)to set off the countdown.
It counts down to 0 and sets off a buzzer. There is a 16x2 display to show the time left. Now the display display the time in minutes but I want the minutes and hours to be in this format: I just cannot get the code to show in this format. Hope there is someone who know how to fix this.
HH:MM
00:00
//regards,Jay
Attachments
-
144.3 KB Views: 12
Last edited: