Menu

Attiny85 Compiler report 4096 words but Microchip Datasheet 8K Bytes witch one is right

JB
2024-12-29
2024-12-29
  • JB

    JB - 2024-12-29

    Hello,
    when compiling (2024.12.15 (Windows 64 bit) : Build 1447) a tiny85 the
    Program Memory: 1366/4096 words (33.35%) : words
    RAM: 125/512 bytes (24.41%) : bytes

    the attiny85 datasheet mention Program Memory as in 8K Bytes
    • Non-volatile Program and Data Memories
    – 2/4/8K Bytes of In-System Programmable Program Memory Flash
    and the 128/256/512 Bytes Internal SRAM

    Thanks

     
  • Anobium

    Anobium - 2024-12-29

    The datasheet is bytes and the compiler is bytes. So, these numbers are the same just different units.

    Many years ago I pointed this out to Hugh and his answer was very logical. Something was different back then about how Microchip reported memory sizes and Words were chosen for GCBASIC.

    But, I am missing something?

     
  • JB

    JB - 2024-12-29

    Thanks Evan,
    so from the compiler I have 67% space left.
    Program Memory: 1366/4096 words (33.35%) : words

     
    • Anobium

      Anobium - 2024-12-29

      Yes, other tools may be different as they do totalise slightly differently.

       

Log in to post a comment.