storing RAM data in the EEPROM
dartec
Posts: 6
I am trying to store on EEPROM data that my Bluetooth unit attached to a Basic Stamp has received over the radio link and kept on RAM. Of course I want the program to do it automatically without human intervention.
Does anyone know how to do that?
Thanks a lot,
Angel
Does anyone know how to do that?
Thanks a lot,
Angel
Comments
...// INITIALIZATION
SERIN 0,84, [STR bBuffer\17]
SEROUT 1, 84, [CR]
SERIN 0,84, [WAIT(">")]
DEBUG CR, STR bBuffer\17, CR // Here I display the BT address before connecting
SEROUT 1, 84, ["con "]
SEROUT 1, 84, [STR bBuffer\17] // Here I connect (after the routine connectionWait) which I can confirm it works since the devices light up
SEROUT 1, 84, [CR]
DEBUG CR, "writing eeprom", CR
FOR i = 0 TO 17
WRITE i, bBuffer(i) // Here I try to write onto EEPROM
NEXT
GOSUB connectionWait
DEBUG "Connection established.", CR
RETURN
connectionWait:
IF (IN5 = 0) THEN connectionWait
RETURN
You have to write another program to READ the data and display it. The data will remain in the EEPROM unless it's changed by another program or overlaid by the data from a DATA statement.
Well, that explains things. In other words, the data has been written onto EEPROM with the WRITE statement, but the Edtor's map does not show it. OK, thanks a lot for the information. Angel