View previous topic :: View next topic |
Author |
Message |
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Tue May 08, 2007 2:38 am Post subject: Writing Singles type variables to EEPROM |
|
|
Can someone explain to me how conversions are performed by Bascom when writing a Single type value to EEPROM.
For example the decimal value 0.1 is stored in EEPROM as: CDCCCC3D
I can't figure out what the conversion is.
I'd like to write a VB program to read an EEPROM file, convert and display the decimal values.
I've searched the forums, but not had any luck finding an answer.
Any help would be greatly appreciated!
Best,
Max |
|
Back to top |
|
|
ex4
Joined: 13 Jan 2006 Posts: 1062 Location: indonesia
|
Posted: Tue May 08, 2007 12:52 pm Post subject: |
|
|
doing it is rather easy , first i'd like to ask :
do u use i2c eeprom or internal eeprom??
basically write or read any kind of variable in bascom is doing it byte by byte, not as the whole var. use overlay structure on single or any other var that contain more than 1 byte |
|
Back to top |
|
|
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Tue May 08, 2007 1:42 pm Post subject: |
|
|
Hi ex4,
I'm using internal EEPROM.
Quote: | use overlay structure on single or any other var that contain more than 1 byte |
Would you mind explaining what you mean here by overlay structure? I'm not familiar with this.
Thanks,
Max |
|
Back to top |
|
|
ex4
Joined: 13 Jan 2006 Posts: 1062 Location: indonesia
|
Posted: Tue May 08, 2007 1:55 pm Post subject: |
|
|
btw, do u want to write/read eeprom using avr or do the write and read using vb with pc as the host??? |
|
Back to top |
|
|
MadMax
Joined: 24 May 2005 Posts: 53 Location: Kingston, Ontario, Canada
|
Posted: Tue May 08, 2007 2:05 pm Post subject: |
|
|
I'm going to download the EEPROM from the Atmega128 using the AVRISP. Then just post process the .hex file using VB. |
|
Back to top |
|
|
oe9vfj
Joined: 17 Jun 2004 Posts: 269 Location: Austria, Hard
|
|
Back to top |
|
|
|