storing the result of a timed delay

davidwf

Senior Member
I am actually trying to make a programmable windscreen wiper delay like a lot of cars now have....

I need to start a timer from an external input trigger (I can do that bit), run it for a period of time and count this period, then stop it from an external trigger (I can probably do that bit as well), then read and store the resulting number somewhere in the PIC for later comparison against another timed delay....values will be between approx 1 and 60 seconds.

Can anyone give me some pointers as to how to read & store the results please...

Thanks
 

BeanieBots

Moderator
The best place to start is to read up on:-
PEEK
POKE
READ
WRITE.

Peek/poke store/retrieve data from RAM. Similar to having another variable.
The data is lost when the PICAXE is switched off.
Read/write store/retrieve data in EEPROM.
The data is kept even after power off. IT will only be lost when a new program is downloaded.
Both methods can be used with byte or word variables.
 
Top