As part of a community project at circuit-board.de I've written a PIC-program controlling the palette switch using the NES-controller (P1 or P2) or the reset button. The code can be either used in a NES with high-active reset to the CIC pin 7 or in a FC(AV) with low-active reset to the CPU pin 3. It is auto-detected, so there is no need for choosing the appropriate code.
During my tests I had a faulty PIC, which outputted +5V to the 123-pads of the NESRGB-board and destroyed the Altera MaxII
. So I decided to add some kind of a buffer in between. Simple logic level shifter were not able to put down the pads to GND. So I finally decided to use a 74HC125 running at +3.3V. Now it works fine 
Are they any suggestions to make it better?
I was thinking about using three SN74CBTD3306 from TI instead of the 74HC125 but haven't try it yet. Is that an option? I decided now to use a 74LVX125 - a perfect translator between +5V input and +3.3V output
The code remain the same ^^
However, here is the first version of a board...
![[IMG]](https://web.archive.org/web/2im_/https://dl.dropboxusercontent.com/u/18680455/SNES-Projects/NESRGB_IGR/NESRGB-IGR-PCB.jpeg)
The functions of the PIC are as follows at the moment:
If there is somebody wants to test the PICs please write me. I have 7 of each version at the moment
As a side note: The community project is about replacing the whole I/O-unit of a front loader NES (silver box) with new components and a MultiAV: Link (site in German, but with a lot of pics)
During my tests I had a faulty PIC, which outputted +5V to the 123-pads of the NESRGB-board and destroyed the Altera MaxII
. So I decided to add some kind of a buffer in between. Simple logic level shifter were not able to put down the pads to GND. So I finally decided to use a 74HC125 running at +3.3V. Now it works fine 
Are they any suggestions to make it better?
I was thinking about using three SN74CBTD3306 from TI instead of the 74HC125 but haven't try it yet. Is that an option? I decided now to use a 74LVX125 - a perfect translator between +5V input and +3.3V output
The code remain the same ^^However, here is the first version of a board...
![[IMG]](https://web.archive.org/web/2im_/https://dl.dropboxusercontent.com/u/18680455/SNES-Projects/NESRGB_IGR/NESRGB-IGR-PCB.jpeg)
- Left hand side: NES or FC supporting a two color LED with a AddOn on the buttom switching output level between +5V for RGB on and 0V for RGB off (might be used at the MultiAV pin 10)
- Right hand side: Designed for the FCAV where the PIC directly output the level for MultiAV pin 10 but only support a single color LED.
The functions of the PIC are as follows at the moment:
- Controller: Start+Select+ ...
- ... A+B pressed for <2s: short reset
- ... A+B pressed for >2s: long reset (going back to main menu if a power pak is used)
- ... D-Pad right: Forward switching through the palette and RGB off (RGB off only available if set by jumper)
- ... D-Pad left: Backward switching through palette - Reset:
- short push <~750ms: reset
- second punsh while PIC resets the NES/FC: reset as long long as button is held
- keeping pressed: forward switching through the palette and RGB off with delay of ~750ms for each palette
If there is somebody wants to test the PICs please write me. I have 7 of each version at the moment

As a side note: The community project is about replacing the whole I/O-unit of a front loader NES (silver box) with new components and a MultiAV: Link (site in German, but with a lot of pics)
![[IMG]](https://web.archive.org/web/2im_/http://i125.photobucket.com/albums/p55/restqp/Console%20mods/NES-RGB_IGR-PCB_zpsafc47be0.jpg)
![[IMG]](https://web.archive.org/web/2im_/http://i.imgur.com/SIx9Uizl.png)
![[IMG]](https://web.archive.org/web/2im_/http://i125.photobucket.com/albums/p55/restqp/Console%20mods/WP_20141212_001_zpsc4592d7f.jpg)
![[IMG]](https://web.archive.org/web/2im_/https://dl.dropboxusercontent.com/u/18680455/SNES-Projects/NESRGB_IGR/Helferplatine_Final.jpg)