SX ID - How to READ it once set?
Hi.
First I would like to say thanks to all those who have worked on the SXB. I am weeks ahead on a project simply because I was able to pick up and accomplish so much in Basic! I was expecting to have to dive right into assembly language to meet my needs. So far that has not been the case. So thank you all!![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
I am looking for direction on how to READ the eight bytes of data that can be stored in the ID section of the SX EEPROM.
The Help file for SXB gives the following information:
Great! So I know how to set it. How do I Read it back? Is there a way to do that from within a program?
[noparse][[/noparse]= Sparks-R-Fun =]
First I would like to say thanks to all those who have worked on the SXB. I am weeks ahead on a project simply because I was able to pick up and accomplish so much in Basic! I was expecting to have to dive right into assembly language to meet my needs. So far that has not been the case. So thank you all!
![smile.gif](http://forums.parallax.com/images/smilies/smile.gif)
I am looking for direction on how to READ the eight bytes of data that can be stored in the ID section of the SX EEPROM.
The Help file for SXB gives the following information:
The SXB Help file said...
The ID (identification) directive is used to write up to eight bytes of text into the ID word of the SX chip. This is used to record a version number or other unique identification for the code. This ID word can be read out of the SX chip at any time, regardless of the code protect setting. The line below will write GPXv2.1 into the ID word:
ID 'GPXv2.1'
Great! So I know how to set it. How do I Read it back? Is there a way to do that from within a program?
[noparse][[/noparse]= Sparks-R-Fun =]
Comments
Just use a DATA line if you want to make an ID that the SX can read.
The ID is used when you protect your code, the ID is never protected. So you can connect the SX to the SX-Key and see what version of program you put into it.
You read the ID from the SX-Key IDE. Choose Run->Device then press the "Read" button. The ID will be shown in the "ID" box located just above the "Program" button.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
There are only two guaranteed ways to become weathy.
Spend less than you make.
Make more than you spend.
·