Salve

mir ist grade bei Atmel die Application Note AVR068: STK500 Communication Protocol in die Hände gefallen.

Das Ding beschreibt wie der Titel schon sagt, das Kommunikationsprotokoll vom AVRISP bzw STK500.

In der AN ist mit folgendes Kommando aufgefallen, welches der PC an den Flashadapter senden kann:

CMD_SPI_MULTI
This is a generic command that can be used to execute any of the ISP commands. The command writes a number of bytes to the SPI bus, and returns a number of bytes.

Würde das nicht bedeuten, ich könnte wenn ich meinen AVRISP auf der Schaltung stecken hab, mittels des angeschlossenen Computers mit der Software im AVR über den SPI-Bus kommunizieren?
Also den AVRISP als "SPI-RS232-Interface" missbrauchen.

Ich müsste für mein Projekt am PC eine Software haben mit der man diverse Werte im Programm im AVR einstellen kann. Ich müsste das nicht häufig einstellen, nur aus Wartungsgründen ab und an mal. Und da ich die USART-Pins am AVR anderweitig belege und keine Lust habe auf Software-USART, wäre die Verwendung des SPI am eh schon vorhandenen ISP-Stecker eine optimale Methode.

Würde das gehen? Was meint ihr?


MfG Steinigtmich