Are you sure you changed the temp variable to a BYTE?
By changing the temp var back to a WORD, and no other changes to my previous code.
I get the same results you do ... only writes to the first 3 bytes.
![]()
Are you sure you changed the temp variable to a BYTE?
By changing the temp var back to a WORD, and no other changes to my previous code.
I get the same results you do ... only writes to the first 3 bytes.
![]()
DT
So Darrell,
My ultimate goal is to get 256 word variables into the EEPROM chip from a comma delimited text file in decimal. My plan was to put them into on-chip EPROM first in 128 word chunks then read them out in a loop and write them to the external EEPROM chip. This is pretty tedious though. So I'm wondering if you have any thoughts on a way to simplify the process?
Once I have the chip programmed, I can then read it out to create a file for burning them in production. Wish I could just get the data directly into my PROM burner...
BTW This is a temperature look-up table for a thermostat type device. The values are ADC readings for the degrees F from 0 to 255.
Guy
"Do or do not, there is no try" Yoda
Temperature lookup table?
Can't that be done in Math?
Which PIC are you using?
You may be able to use something like this to store the values in the PIC before writing to EEPROM.
http://www.picbasic.co.uk/forum/show...php?t=3891#LAB
DT
It's a 10K thermistor curve that can't be defined in integer math. Been there tried that.
I'm fine with the lookup table in EEPROM, it's getting it in there is the hassle.
I'm using a 16F88 for low cost and the ADCs.
That EXT thing is weird. Not sure how to apply it. My plan at present is to load the 256 bytes in the PIC with 128 words, then write that to the external EEPROM and repeat. Just have to pay attention to the addresses and data file index. I can manage that but was looking for a simpler way out.
Guy
"Do or do not, there is no try" Yoda
One day, you will learn not to say things like that.
Can I see your data table?
If I can't "Curve Fit" it, I'll show you how to put the table in Code Memory.That EXT thing is weird. Not sure how to apply it.
Then you can either use the table from there, or take the data and write it to EEPROM.
If I can fit the curve, you won't need a table.
DT
Darrel,
Your offer sounds too good to be true. Therefore it must be!![]()
We're getting into my proprietary info at this point. How can we continue the dialog outside the Forum? This is for a product that I'm developing for my own company so I can pay for your time - if you're willing.
Guy
"Do or do not, there is no try" Yoda
Bookmarks