device id's for slave sid using pic16f877

how do you work this? every slave needs and id 1 2 0r 3? how do you set this on the pic16f877?I am having Smash TV burn my pics and we need to dtermine this. I will be using 1 18f452 master,device id 0, and 3 16f877 slaves.

thanks in advance.

In theory you could patch this in the .hex file, but it’s more safety when you just follow the instructions given here http://www.ucapps.de/midibox_sid_csB.html

Means: just change the IDs via MIDI

Best Regards, Thorsten.

is this the section you are refering to? forgive my stupidity… i can do this after the pic has been burned?

thank you !

Preparation

After the firmware has been programmed into the PICs you have to change the default device ID (0) to the correct device IDs for the slaves. The first slave requires ID 1, the second slave ID 2, the third slave ID 3. This step can be done with MIDI-Ox, just connect only one core with your PC and send following SysEx string: F0 00 00 7E 46 [old device-number] 0D 03 00 [new device-number] F7.

Slave 1: F0 00 00 7E 46 00 0D 03 00 01 F7

Slave 2: F0 00 00 7E 46 00 0D 03 00 02 F7

Slave 3: F0 00 00 7E 46 00 0D 03 00 03 F7

Sometimes also the firmware of the master has to be configured, don’t forget to take a look to the main.asm file header if there are relevant options for your needs.

yes/yes

you can change the SID device ID via MIDI as much times as you want. It will be saved in EEPROM and therefore won’t be deleted after power-off.

Best Regards, Thorsten.

ok, thank you !