Page 1 of 1
two question for a beginner
Posted: Tue Feb 21, 2012 4:22 am
by daneelolivaw
Hi guys,
I have two question:
1st - to use external eeprom I have to set T0=1, correct?
2nd - how to declare were in the extrernal memory find a program? For example il S0,1,2 are 001, at wich location in the memory I have to write? And for S0,1,2=010?
thx in advice.
Best regards
Re: two question for a beginner
Posted: Tue Feb 21, 2012 10:04 am
by frank
daneelolivaw wrote:Hi guys,
I have two question:
1st - to use external eeprom I have to set T0=1, correct?
Correct.
daneelolivaw wrote:
2nd - how to declare were in the extrernal memory find a program? For example il S0,1,2 are 001, at wich location in the memory I have to write? And for S0,1,2=010?
Best regards
You don't need to worry about that, just use SpinAsm to create an Intel HEX file you can load into your programmer.
But the technical answer is that the programs start at address 0 of the EEPROM, are all 512 bytes long (unused instructions are filled with a NOP), and are all just loaded in the EEPROM one after another. So program 0 starts at address 0, program 1 starts at address 512, etc.
Posted: Tue Feb 21, 2012 3:05 pm
by daneelolivaw
ok, understood.
so in this window:
I can choose the programs for S1,2,3 combination, and automatically the software generates an .hex file for the external eeprom.
Thanks for tecnical info about organization memory.
Bye
Posted: Tue Feb 21, 2012 4:24 pm
by frank
Correct, select up to 8 programs, make sure the "Intel Hex" check box is checked and it will write the file when you click "Build".