When trying to set VGA modes using the config utility, it works the first time and then not. For instance, I am successfully setting the color to monochrome amber, but after that, if I try to revert back to color, I cannot, no matter how many times I try. If I manipulate the soft switch $C0N1:00 - the color mode is restored. However, if I power off and on again, amber is still on - it is stored perhaps in the firmware.
Additional info: I use 22V10 PLD with the code below. When I access $CN00 - I see FF FF FF FF ... This activated $C800, where I also see FF FF FF FF FF. This is switched off by accessing $CFFF. I need to reprogram the Pico (with preloader) to be able to restore color mode.
When trying to set VGA modes using the config utility, it works the first time and then not. For instance, I am successfully setting the color to monochrome amber, but after that, if I try to revert back to color, I cannot, no matter how many times I try. If I manipulate the soft switch $C0N1:00 - the color mode is restored. However, if I power off and on again, amber is still on - it is stored perhaps in the firmware.
Additional info: I use 22V10 PLD with the code below. When I access $CN00 - I see FF FF FF FF ... This activated $C800, where I also see FF FF FF FF FF. This is switched off by accessing $CFFF. I need to reprogram the Pico (with preloader) to be able to restore color mode.
PIN [1..11] = [A0..A10]; PIN 13 = !IOSEL; PIN 14 = !DEVSEL; PIN 15 = !SEL; PIN 16 = !RESET; PIN 17 = !IOSTR; PIN [18..21] = [BSEL3..0]; PIN 22 = EXTENBL; PIN 23 = EXTDSBL; EXTOFF = IOSTR & [A10..0]:'b'11111111111 & [BSEL3..0]:'b'101X; EXTDSBL = !(EXTENBL # IOSEL); EXTENBL = !(EXTDSBL # RESET # EXTOFF # [BSEL3..0]:'b'0111); EXTSEL = EXTENBL & IOSTR; SEL = DEVSEL # IOSEL # EXTSEL;