Page 1 of 1

Is Swapping LED Assignment on I/O Board Possible?

Posted: Fri Oct 21, 2022 7:18 pm
by Jimiga

Hi! I'd like to rearrage the LED assignment on my IO board.
Reason? I've installed the DE10 into an A600 case using one the the excellent daughter boards from 8bitsForever.net

The A600's LEDs work well, but for Minimig & C64 especially, the one labelled Floppy on the case is showing Power (constant), and the one labelled DISK shows floppy activity.

I'd like to swap these to correct this, without rewiring the LED connections if possible! Can they be reassigned in the Mister.ini file, or edited in the core file? Like this:

IMG_5055.JPG
IMG_5055.JPG (597.06 KiB) Viewed 1181 times

I found this info
https://www.reddit.com/r/fpgagaming/com ... board_for/
specifially:
https://github.com/MiSTer-devel/C64_MiS ... q=LED_USER

Also found this schematic info... not sure it's helpful though
Thanks!

DeviceP1_____GPIO_PIN____PIN_ASGN
User LED P1-1 GPIO_1[0] PIN_AG28
Disk LED P1-3 GPIO_1[2] PIN_AA15
Power LED P1-5 GPIO_1[4] PIN_Y15

Btn_osd P1-13 GPIO_1[10] PIN_AG25
Btn_user P1-15 GPIO_1[12] PIN_AH24
Btn_reset P1-17 GPIO_1[14] PIN_AG23


Re: Is Swapping LED Assignment on I/O Board Possible?

Posted: Sat Oct 22, 2022 1:04 pm
by Newsdee
You will need to recompile the cores. It seems it is assigned here:

c64:
https://github.com/MiSTer-devel/C64_MiS ... 64.sv#L186

minimig:
https://github.com/MiSTer-devel/Minimig ... ig.sv#L657

So just swap the assignment to where you want

Re: Is Swapping LED Assignment on I/O Board Possible?

Posted: Sat Oct 22, 2022 3:05 pm
by legacypixels
Swapping the pins in the connector at the IO board side of the cable should be super easy and reversible.

Re: Is Swapping LED Assignment on I/O Board Possible?

Posted: Sat Oct 22, 2022 5:18 pm
by thisisamigaspeaking
Are there some cores with all three LEDs in use where they are are correct? I'm surprised some are correct and others are not.

I understand you prefer not to have to do anything physically to the connectors, but if you change your mind you might want to take a look at threads like viewtopic.php?p=57261 and viewtopic.php?p=57245, but do be aware I think there is potentially incorrect or misleading information as I have commented.

Re: Is Swapping LED Assignment on I/O Board Possible?

Posted: Sat Oct 22, 2022 11:04 pm
by Jimiga
Thank you all for the replies - all valid suggestions and solutions!

I did try tinkering with the wires - knowing full well the risk that the 30yr old dry solder joints might come away from the LED's at the other end. The wires are short and stiff. They did, but I was able to confirm simpling swapping some pins around in the housing would work before that happened.

All good though! It's just a good excuse to solder on some longer wires, something I wanted to do anyway, and nothings broken. I took photos before tinkering.

Also I ordered a custom LED board with some nice blue and white LED lights too.

@legacypixels, I've bought various MiSTer parts from you over the last couple of years! Thanks for the great service and the input here .