What I am trying to achieve is to send data through SPI from ATmega328P to dev kit MCP23X17 to turn LEDs on. Notice, the ATmega328P is mounted on an external board.
The problem is that when I compile the code in ATmega328P, nothing happens. I have later found out that the reason is because the development board MCP23X17 runs the code default from microcontroller PIC16F818 that is mounted on dev kit.
I think the solution is to disable the microcontroller PIC16F818 on the development board in order to run the code from ATmega328P. I do not know how to do this, any ideas?
Document regarding MCP23X17.
In the picture, there is 4 components.
- AVRISPMKii which is an ISP debugger, I use this to send the code from PC to the microcontroller.
- Arduino UNO, I use this as 5V power supply.
- Board, consist of ATmega328P and LED.
- Development board MCP23X17.