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.
Alles wie normal. Nur die Pins Mosi/Miso sind plötzlich auf die Rx/Tx-Pins gewandert, warum auch immer...
Hä??? schnall ich nicht. Auf dem Datenblatt sind doch die MOSI und MISO Pins drauf!
Hi >Hä??? >schnall ich nicht. Auf dem Datenblatt sind doch die MOSI und MISO Pins >drauf! Datenblatt: SPI Serial Programming Pin Mapping MfG Spess
> 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)
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.
> 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.
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.
Hi
>1. SPI Serial Programming Pin Mapping gibts nicht
Bei mir auf S.300
MfG Spess
Fazit: Ich schließe Die MOSI- Miso Leitungen an PE0 und PE1 an und lasse PEN in ruhe
Hi
>Ach noch was wieso S. 300?? gibt bei mir bloß 26
Dann nimm das richtige Datenblatt. Nicht die Zusammenfassung.
MfG Spess
> 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....
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
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.