avr-gcc + ATtiny87/ATtiny167

Persönliche Seite #7483879
Lesenswert?

Im Handbuch [1] von ATtiny87 / ATtiny167 steht:

1.1 Comparison between Atmel ATtiny87 and ATtiny167 Atmel ATtiny87 and ATtiny167 are hardware and software compatible. They differ only in memory sizes as shown in Table 1-1.

Table 1-1 Device Flash ... Interrupt Vector size ATtiny167 16Kbytes ... 2-instruction-words/vector ATtiny87 8Kbytes ... 2-instruction-words/vector

Ist das ein Bug im Datenblatt?

avr-gcc hat ATtiny87 in Multilib-Set avr25 (up to 8KiB of program memory) und ATtiny167 in avr35 (16KiB up to 64 KiB of program memory), und entsprechend hat Startup-Code für ATtiny87 1-Word Einträge in der Vectab und 2-Word Einträge für ATtiny167.

Die Devices sind ja schon recht gut abgehangen und über 10 Jahre alt, und ich denke nen Bug in avr-gcc wäre längst aufgefallen...

Kann jemand mit ATtiny87 Hardware bestätigen, dass Vectab-Einträge tatsächlich nur 1 Word groß sind?

[1] https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-7728-Automotive-Microcontrollers-ATtiny87-ATtiny167_Datasheet.pdf#page=3

#7484190
Lesenswert?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren