electronicnoob
Junior Member level 1
![Junior Member level 1](/styles/images/ranks/clevel1.gif)
Hi, I am doing a project where I am using a PIC16f887 microcontroller and a DS3231 RTC module. I am designing an etching tank that allows the user to enter their desired etching duration. I have got the code to program the RTC, but I have some problems with the countdown part.
I uploaded my code in a separate .txt file
The Clock() function is used to display the time properly. For Testing, I made it a comment.
I am using a CheckCurrentTime() function to get the current time. Assuming that the RunTime[] (minutes) is entered into an array, how do I add the Time from the StartTime[] to the EndTime[] since it is a static char array. Do I have to convert it to an integer or is there any suggestions.
Thank you very much in advance.
I uploaded my code in a separate .txt file
The Clock() function is used to display the time properly. For Testing, I made it a comment.
I am using a CheckCurrentTime() function to get the current time. Assuming that the RunTime[] (minutes) is entered into an array, how do I add the Time from the StartTime[] to the EndTime[] since it is a static char array. Do I have to convert it to an integer or is there any suggestions.
Thank you very much in advance.