Hi,
Yes it's certainly possible in principle. BTW: It's better to post small code sections in-line (between
[code ] [/code] tags); it saves having to download and clutter up my Hard Drive with programs that I'll never need again (and most members won't bother to look).
What you have written looks OK, except that the goto1 / main1: is unnecessary; instead you'd probably want a "Pause" until you are ready to Read/Download the Data (or use two separate programs to Write and Read). PAUSE 60000 will give a minute's wait, which could be extended by using several, e.g. inside a FOR .. NEXT loop. But it's probably better to wait for a User Button-Press, or a {DISCONNECT} and a SERRXD from (then SERTXD loop to) the PE Terminal.
However, most of the PICaxes have only 256 bytes of (Data) EEPROM, that's only 128 Words, or less than one Word per second for 2.5 minutes (so the PAUSE 50 would need to be about
PAUSE 1250. Firstly, I wouldn't use Words (of which 6 bits are "wasted" if using READADC10), just use READADC and you can store almost two values per second. The 08M2 only has around 100 bytes of spare RAM so hardly worth bothering with (although you might use 64 of them to store the "extra" 2 bits from the READADC10), and you'd need to keep the PICaxe powered up until Read (by a PEEK or @bptr). Other M2s have up to 500 bytes of spare RAM and the X2s up to over 1000 (including Scratchpad).
But you probably "need" much more memory. The simple (and quite economical) solution is to use an external serial EEPROM such as a
24LC16 or (better) a
24LC256, etc.. Only another 8-pin chip and the 2-wire I2C bus is easy to wire up and use in a program.
Cheers, Alan.