if this is too much to ask, just........
if this is too much to ask, just........please show me how to read/write to the non volatile part of the pic 16f628a memory.
how to rear a button from a port
how to output a high/low to a port
how to use the timer
all of this to the pic16f628a
please, please.
thanks in advance for any an all your help, and for taking time of your busy schedule to read my questions and requests
it's working....it's working
After a couple of days of working NON stop (and no sleep) I finally finished my project, IT's working, It's working.......thanks a lot for the help, it was fun to learn.
the core of the project was to activate a count down timer when ONE or TWO push buttons are pressed, each one should have it's own independent time (the amount of time can be change by the user using the same TWO push buttons right after power on and after the user quit pressing for adjusment or if (s)he doesn't press them at all, then the new time is stored in the eeprom memory), further more every time the button(s) is(are) pressed it will increment the time left and this could happend at any time and many times, the time left for each button has to be displayed in four 7-segments display LEDs with MM:SS format if only one button is pressed of one of the two has run out of time, and in M1:M2 if the two have time left. also a count of every push has to be stored in EEPROM memory to be displayed at will by the user, at the power up of the circuit (either the user adjust the time per push, or want to know the amount of pushes has been so far), and finally while there is time left a relay stays ON to activate an external device (ONE PER EACH OF THE TWO USERS)
ONE THING, since this was my very first pic programming I did NOT use any interrupts for the clock, instead I wrote the program and when I had all finished and working the clock was NOTa real clock ticking every second but instead way to much faster, so my solution was to timed ONE minute of real time against the minutes displayed, and based on that I "IF'ed the program to not enter the decrement seconds seccion until a number of program cicles were reach. and to my surprise and GOOD luck a got a very close aproximation of the time (one second short every five MINUTES of real time, wich for my aplication it's an acceptable error).
and even the project is finished and working, I was wondering if you could give me an code example of how to use interrups to measure time.
regards
and thanks for the help