Serial programing Atmel

hwm-land@xmail.cz hwm-land@xmail.cz
Pátek Červen 17 22:58:44 CEST 2005


Zdravim konferu.

Kdyz si srovnam DS AVRek od atmelu, tak jsou tam 2 zpusoby (dle typu) spusteni "serial programing mode".
Zasadni rozdil je v tom, jak reagovat, kdyz AVR neodpovi tak jak ma (puls na SCK oproti puldu na ~RESET). Navic u "pulsu na ~RESET" neni specifikovano, kolik pokusu je smysluplnych. A tak mam 2 otazky pro zkusene:
-opravdu maji ruzne AVRka rozdilne zpusoby jak je uvest do stavu SPM?
-kolik krat to smysluplne zkouset v pripade opakovani pres ~RESET (je-li oddpoved na prvni otazku kladna) 

Kdyz to pisou v DS, tak to asi bude tak, ale na druhou stranu....proc by to menili:) Tak se radeji zeptam, jestli to nekdo z vas uz delal. Pro ilustraci vynatky z DS.
Hezky weekned,
Marek

Treba ATiny12, ATiny15:
2. Wait for at least 20 ms and enable serial programming by sending the Programming
Enable Serial instruction to the MOSI (PB0) pin.
3. The serial programming instructions will not work if the communication is out of
synchronization. When in sync, the second byte ($53) will echo back when issuing
the third byte of the Programming Enable instruction. Whether the echo is
correct or not, all 4 bytes of the instruction must be transmitted. If the $53 did not
echo back, give SCK a positive pulse and issue a new Programming Enable
instruction. If the $53 is not seen within 32 attempts, there is no functional device
connected.

Treba ATiny26:
2. Wait for at least 20 ms and enable serial programming by sending the Programming
Enable serial instruction to pin MOSI.
3. The serial programming instructions will not work if the communication is out of
synchronization. When in synchronize the second byte ($53), will echo back
when issuing the third byte of the Programming Enable instruction. Whether the
echo is correct or not, all 4 bytes of the instruction must be transmitted. If the $53
did not echo back, give RESET a positive pulse and issue a new Programming
Enable command.

Reklama: Když večer nevíš s kým, tak já poradím.
http://new.openads.cz/adclick.php?bannerid=6&zoneid=4&source=&dest=http%3A%2F%2Fwww.tojsemja.cz 





Další informace o konferenci Hw-list