Programmierung von ATmega128

Gast #1662563
Lesenswert?
• ▲
▼
Ich glaub ich bin Blöd.

1. SPI Serial Programming Pin Mapping gibts nicht

2. IM Daten blatt steht:
"PEN is a programming enable pin for the SPI Serial Programming mode. By 
holding this
pin low during a Power-on Reset, the device will enter the SPI Serial 
Programming
mode. PEN has no function during normal operation"

Also muss ich ihn doch auf low ziehen.
Gast #1662580
Lesenswert?
• ▲
▼
Teil 1:

Even though the SPI Programming interface re-uses the SPI I/O module, 
there is one important
difference: The MOSI/MISO pins that are mapped to PB2 and PB3 in the SPI 
I/O module are not
used in the Programming interface. Instead, PE0 and PE1 are used for 
data in SPI Programming
mode as shown in Table 127.

Teil 2:
As an alternative to using the RESET signal, PEN can be held low during 
Power-on
Reset while SCK is set to “0”. In this case, only the PEN value at 
Power-on Reset is
important. If the programmer cannot guarantee that SCK is held low 
during power-up, the
PEN method cannot be used. The device must be powered down in order to 
commence
normal operation when using this method.

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.