I have walked through it, both manually and in the simulator, and it
isn't loading any data.
As for formatting data, there is extraneous data in the .eeg file
that *I* didn't place there. Here is the .eep file data:
:1000000000000000000000000000000102020303E5
:100010000405060608090A0B0D0E10121416181A0C
:100020001D1F2224272C3034373B3E42464A4E5275
:10003000565A5E63676C7075797E82878C9095994D
:100040009EA3A7ACB0B4B9BDC1C5C9CDD1D4D8DBCE
:10005000DFE2E5E8EAEDEFF2585AF7F9FAFCFDFEC7
:03006000FFFFFFA0
:00000001FF
and here is the code which is generating it...obviously there are values
in here that *I* didn't place here.
; this table provides the data for the intensity curve needed for
; xxxxxxxxxxxxxxx. the data represent the value sin^3 * 255 for
; each angle from 0 through 90 at .9 degree increments
.eseg
TABLE:
.db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 3, 4, 5, 6, 6
.db 8, 9, 10, 11, 13, 14, 16, 18, 20, 22, 24, 26, 29, 31, 34, 36
.db 39, 44, 48, 52, 55, 59, 62, 66, 70, 74, 78, 82, 86, 90, 94, 99
.db 103, 108, 112, 117, 121, 126, 130, 135, 140, 144, 149, 153
.db 158, 163, 167, 172, 176, 180, 185, 189, 193, 197, 201, 205
.db 209, 212, 216, 219, 223, 226, 229, 232, 234, 237, 239, 242
.db 344, 346, 247, 249, 250, 252, 253, 254, 255, 255, 255
David VanHorn wrote:Show quoted textHide quoted text
>
> >IIUC, the EEPROM data for the simulator in AVR Studio is read from
> > the .eep file, which does exist, and which does contain the data I
> > stored in it in the code (as best I can tell...it also contains some
> > extraneous data which I am presuming is formatting data added by AVR
> > Studio,which would not be written the the physical EEPROM when the chip
> > is programmed).
>
> Walk through the sequence, I've used it tons, and it works.
> A tip: Don't use location 0, and make sure that whenever you're not using
> the EE, the EEARL and EEARH both contain 0. This makes accidental writes
> more or less harmless.
>