Storing Info in the SX
I need a way to store setting in the SX28.· I can create Data Statements to create the Default, but I want to be able to configure the setup using the serial connection I have.
I am Sending "!CMD" then I will send a Command number and a setting and I want to store it in the SX28 even if power is removed I want it to stay.
Can someone help...Again.. [noparse]:)[/noparse]
Regards,
Eric
·
I am Sending "!CMD" then I will send a Command number and a setting and I want to store it in the SX28 even if power is removed I want it to stay.
Can someone help...Again.. [noparse]:)[/noparse]
Regards,
Eric
·
Comments
The flash memory on the SX doesn't work like EEPROM. It requires a high voltage to program (that the SX-Key/SX-Blitz provides).
There is no way the SX can change it own flash memory.
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
You don't say how many bytes you want to store, but I have a bunch of 24C00 EEPROMs.
They only hold 16 bytes though. I'll mail you some if you can use them. They are SOT23-5 size.
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
Are you serious? Yeah for this project I'm only gonna need a few bytes.
I'll PM you a mailing Address.
Regards,
Eric
How many do you need ?
You don't need to pay me anything for them, I'll just pop them in an envelope.
I have a whole reel of them.
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
I don't feel right about taking them... How about 5 or 10... They seem like they are going to be handy.
Thanks for this, If I need more how much are you asking?
Eric
I got a reel of several thousand from Ebay for cheap.
I'll send you a bunch, the postage stamp would cost more than 10 pcs [noparse];)[/noparse]
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
Eric
No, but if your program·involves using·DATA/WDATA then that all can be stored in an external memory leaving more EE/Flash available.
Do· you have sample code that works with these and the SX-28?
Regards,
Eric
Have you seen the EEPROM sample code in SX/B on the following post:
http://forums.parallax.com/forums/default.aspx?f=7&m=172860&p=1&ord=a
It may help you get the external EEPROM up and running a bit faster. You should be able to prototype and test with a DIP version of the chip and then go to a surface mount part for your final design.
Best Regards,
Robert
The help file code can be adapted easily -- it looks like the only change is that the 24C00 just uses one address byte versus two in the 24LC16B.
Post Edited (JonnyMac) : 3/12/2007 4:50:25 PM GMT
They are pretty standard. Here is the datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/21178F.pdf
They are 24LC00T/OT devices and I sent you 50 or so today.
For a write you do:
START
SEND $A0
SEND addr ' 0 to 15
SEND data ' 0 to 255
STOP
PAUSE 5 ' Allow time for device to write data
For a read you do:
START
SEND $A0
SEND addr ' 0 to 15
START
SEND $A1
READ bytevar
STOP
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
Coming soon! Propeller based OSD module www.hittconsulting.com
Post Edited (Bean (Hitt Consulting)) : 3/12/2007 4:41:52 PM GMT
Bean... Thanks for everything.
Eric
I'm wondering if I sent you some stamps to cover postage, would you be willing to send me some of those 24LC00T/OT devices?
If so, send me an email to (egp at egp dot net) with your snail mail address, and I'll send you some stamps and my snail mail address.
Just consider it a early birthday present [noparse];)[/noparse]
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"A problem well defined is a problem half solved"
"Just because you're approved, doesn't mean you can afford it."
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
Depending on many factors you MIGHT get away with just enabling the internal pull-ups on the SDA and SCL pins.
I don't recommend depending on it, but with some devices it does work.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Educate your children to self-control, to the habit of holding passion and prejudice and evil tendencies subject to an upright and reasoning will, and you have done much to abolish misery from their future and crimes from society"
Benjamin Franklin
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
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
Coming soon! Propeller based OSD module www.hittconsulting.com
·
I am trying to run this code.
An LED will flash if the Code written to and returned from the EEProm is the same.
I don't have external Pull up resistor connected only the internal.
Should the Code below work? If so I'm going to have to redesign my circuit.
Thanks in Advance,
Eric
·OK I carefully added some External Resistors...They look like Smile but assume it will work.
I still can't read the value of "Sample" as 170
Attached is an O-Scope attached to the SDA and SCL line.
Can anyone offer a solution.
Regards,
ERic
Post Edited (SailerMan) : 3/21/2007 11:48:30 PM GMT
And I think your NAK bit is set incorrectly -- on the final byte read it should be 1, not 0 as in your listing.
And... it is very dangerous to embed "magic numbers" -- including pin numbers -- into your listings; HUGE bug generator. Try this version:
Thanks Jonny