Statusbyte im Flash speichern

Gast #4893479
Lesenswert?
• ▲
▼
Hallo Forum,
ich habe mal die Frage, der ATtiny10 hat ja leider kein Eeprom.
Ich müsste aber doch ein Statusbyte mit der letzten Einstellung 
speichern.
Könnte man das im Flash machen?
Das müsste dann beim nächsten Einschalten wieder lesbar sein.
Den ATtiny wählte ich, wegen des kleinen SOT23 Gehäuses.
Gast #4893487
Lesenswert?
• ▲
▼
Ich habe zwar keine Ahnung vom AVR aber wenn zB die letzte Page im Flash 
noch frei ist dann kannst du dort Daten speichern, allerdings sind die 
Schreibzyklen niedriger ca 10 000 und beim EEPROM 1 000 000 glaub ich.
Gast #4893501
Lesenswert?
• ▲
▼
Habe es eben selber auch gefunden:
16.2. Overview
The Non-Volatile Memory (NVM) Controller manages all access to the 
Non-Volatile Memories. The NVM
Controller controls all NVM timing and access privileges, and holds the 
status of the NVM.
During normal execution the CPU will execute code from the code section 
of the Flash memory (program
memory). When entering sleep and no programming operations are active, 
the Flash memory is disabled
to minimize power consumption.
All NVM are mapped to the data memory. Application software can read the 
NVM from the mapped
locations of data memory using load instruction with indirect 
addressing.
The NVM has only one read port and, therefore, the next instruction and 
the data can not be read
simultaneously. When the application reads data from NVM locations 
mapped to the data space, the data
is read first before the next instruction is fetched. The CPU execution 
is here delayed by one system
clock cycle.
Internal programming operations to NVM have been disabled and the NVM 
therefore appears to the
application software as read-only. Internal write or erase operations of 
the NVM will not be successful.
The method used by the external programmer for writing the Non-Volatile 
Memories is referred to as
external programming. External programming can be done both in-system or 
in mass production. The
external programmer can read and program the NVM via the Tiny 
Programming Interface (TPI).
In the external programming mode all NVM can be read and programmed, 
except the signature and the
calibration sections which are read-only.
NVM can be programmed at 5V, only.

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.