Hi to all
I’m using and application (part wrote down in C and part in Assembler) and in particular it has the “classic” MAIN.C, MAIN.H (for managing with pots and buttons ecc ecc) and I have also a file called Preset.asm that work in this way: It write some values in the eeprom of the PIC when I flashed it with the .sys file and in the “Main.c” there a shortcut for those values: so when I press one din it read the values in the eeprom and some Control Change will assume those values (pots related to those CC will not work)… it work like a normal “preset” bank.
The “preset.asm” is like this:
list p=18f452
radix dec
org 0xf00000 ; eeprom base address
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x50, 0x30, 0x20, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x40, 0x40, 0x30, 0x20
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0x70, 0x40
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x50
db 0x00, 0x30, 0x20, 0x70, 0x60, 0x40, 0x50, 0x20
db 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x50, 0x40
db 0x50, 0x40, 0x40, 0x00, 0x00, 0x00, 0x40, 0x40
END
this is my questions.
The only way to change the value of the preset is to make a new .sys file and put it into the core… is there a way to compile a new .sys file without include on it the Main.c , Main.h ecc ecc ,but only the preset.asm so doesn’t matter if the main.c is different… after the flashing of the PIC nothing will change in Main.c ecc ecc, the only thing the will change is the preset.asm file… any idea?
In your opinion there’s a way to change the values of the eeprom without re-flashing the pic? E.G. make a “dedicated” din that if you press it together with another din, the system will “read” some pots value and report it to the eeprom…some kind of “user preset” that I can change without sending a new .sys file.
Thank you for your help!
Anakin