I am building a flight computer for a uav I have built. Its using a atmega32 atm and I am trying to have one db9 serial port which I will use for both my parallel port programming of the avr and serial rs232 communication.
pin
2 Rx
3 Tx
5 Gnd
6 MOSI
7 MISO
8 SCK
9 RESET
I need pins 2,3,5 for the rs232 and I need someway to turn disconnect pins 6 through 9 because they hold my chip in reset and provide some power which prevents me from turning off the chip. I was thinking of just using a switch that I would turn on to connect 6-9 when I needed to flash the chip, but I couldn’t think of an easy way to do that without using a switch for each pin and I don’t really want to flip 4 switches to flash. So I was just wondering if anyone had any ideas for a simpler solution.
Thanks,
Shane