data and storage

retepsnikrep

Senior Member
A few simple questions.

1) The table/readtable command uses 0-255 bytes of program eprom, is that the same area as used by the read/write commands which also addresses an area of eprom?

It appears to be two seperate areas? I understand the table command to use 255 bytes of your 4096 available program bytes.

Not sure about the read/write commands :confused: is that an entirely separate area of eprom which is not affected by downloading a new program to the chip? So can store long term data in effect?

2) Can the spare variable areas for the 28X1 parts be used with impunity with Poke/Peek etc. Within the defined addresses of course ;)

Addresses $50 to $7E are general purpose registers that can be used freely.
Addresses $C0 to $EF can also be used by PICAXE-28X1, 40X1

If I am already using all the available variables w0-w13, peeking/poking this area will not interfere with them? Is this area RAM? Presumably it can stand repeated peek/poke?

Thanks Peter
 

westaust55

Moderator
Suggest that you have a look at the variable map that I published back in this thread. Don't worry about the header too much as it was updated to cover much for the other PICAXE's as well.
http://www.picaxeforum.co.uk/showthread.php?t=9525&highlight=Variable+map

RAM (SFR), Scratchpad, Data EEPROM, and Table Memory are all separate.
Data EEPROM is additional to program space on largre PICAXE's but it is shared on the smaller PICAXE's.

In terms of peeking and poking, have a look at this thread:
http://www.picaxeforum.co.uk/showthread.php?t=9789&highlight=SFR*

Suggest that you do a search yourself of Special function registers in this forum.
Try SRF* as the search
 
Last edited:
Top