hi everybody,
I coded a I2C tranciever so far (mega16 on DSK500, slave on TWI, master in software)
I want to change some settings which are saved in the internal EEPROM from a PC.
And I want to get some data which are in the SRAM.
My problem is now:
At first I wanted to connect the mega16 to a PC -> USART???@mega16 to serial COM Port@PC (handling EEPROM programming with commands over USART in software)
But I will need the SPI to do the initial programming of mega16 on my later board/PCB.
After all my board has to be as small as possible and with nearly no parts exept the mega16.
So I would like to use just one Port(SPI)
Questions:
What hardware is needed to connect from serial COMPort@PC to the SPI?
(I saw the schematics of PonyProg, some resitors etc. could placed in cable connector?)
Is it possible to use the SPI nearly in the same way like the USART?
(leave the USART away and do programming and data transmitting over SPI?)
What hardware is needed to connect from serial COMPort@PC to USART?
(Driver....)
Are there any other simple ways to programm a mega before or when it is placed to
a board.
Just some hints where I can find some answers, would be very usefull.
Thank you very much
Denny