Forum: Mikrocontroller und Digitale Elektronik Programmierung von ATmega128


von M. Н. (Gast)


Lesenswert?

Hallo Leute. Hab bis jetzt immer mit ATmega 8/16/32 programmiert.
Benötige jetzt aber einen atmega 128. Will ich ihn nun wie einen mega16
proggen (SPI)  muss ich doch den pen pin auf Masse ziehen. Oder????

Danke im voraus.
Gruß M.H.

von H.Joachim S. (crazyhorse)


Lesenswert?

Alles wie normal.
Nur die Pins Mosi/Miso sind plötzlich auf die Rx/Tx-Pins gewandert, 
warum auch immer...

von M. Н. (Gast)


Lesenswert?

Hä???
schnall ich nicht. Auf dem Datenblatt sind doch die MOSI und MISO Pins 
drauf!

von spess53 (Gast)


Lesenswert?

Hi

>Hä???
>schnall ich nicht. Auf dem Datenblatt sind doch die MOSI und MISO Pins
>drauf!

Datenblatt: SPI Serial Programming Pin Mapping

MfG Spess

von bensch (Gast)


Lesenswert?

> Auf dem Datenblatt sind doch die MOSI und MISO Pins drauf!

Tja steht alles im Datenblatt und das mit PEN auch.

(mein Tipp: PEN offen lassen)

von M. Н. (Gast)


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.

von bensch (Gast)


Lesenswert?

> Also muss ich ihn doch auf low ziehen.

Ehrlich gesagt hab ich das DB auch nicht ganz verstanden. Aber wenn man 
das so macht, geht's nicht. Lass PEN in Ruhe (also offen), dann geht 
alles.

von holger (Gast)


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.

von spess53 (Gast)


Lesenswert?

Hi


>1. SPI Serial Programming Pin Mapping gibts nicht

Bei mir auf S.300

MfG Spess

von M. Н. (Gast)


Lesenswert?

Fazit:

Ich schließe Die MOSI- Miso Leitungen an PE0 und PE1 an und lasse PEN in 
ruhe

von M. Н. (Gast)


Lesenswert?

Ach noch was wieso S. 300?? gibt bei mir bloß 26

von spess53 (Gast)


Lesenswert?

Hi

>Ach noch was wieso S. 300?? gibt bei mir bloß 26

Dann nimm das richtige Datenblatt. Nicht die Zusammenfassung.

MfG Spess

von bensch (Gast)


Lesenswert?

> Ich schließe Die MOSI- Miso Leitungen an PE0 und PE1 an und lasse PEN in
ruhe

Ja

> Ach noch was wieso S. 300?? gibt bei mir bloß 26

Das ist die Kurzfassung für Kindergärten....

von M. Н. (Gast)


Lesenswert?

UPPPPS!!

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.