Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. Questions about ATtiny85

Questions about ATtiny85

Scheduled Pinned Locked Moved Hardware & Devices
hardwarequestionpythonhtmlcss
3 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Maki Young
    wrote on last edited by
    #1

    Hi all, If I’m in the wrong sub go ahead and tell me right away, and I’ll move my post elsewhere. Recently I’ve been thinking about doing some low level programming. I’m a programmer by trade and I am used to high level languages like C, Python and Rust. However I would like to try getting closer to the hardware. I did some shopping around and discovered the attiny85(

    http://www.componentschip.com/details/Atmel/ATTINY85.html

    . I’d like to do something similar to this this blog, but before I go ahead and purchase anything I have some questions. As for what I’m going to do with the attiny85, I plan to create simple games with push buttons and led lights on a solder less breadboard. I’d like to program the attiny in straight assembly, with an ISP programmer. Is this possible, or do I have to use the Arduino IDE/Arduino programming language? Are there any resources for this type of thing? On the Atmel website it lists the attiny85 as having a 512 byte EEPROM and a 4kb main memory. When I program the attiny85 am I programming the EEPROM directly or is there some type of boot loader/firmware already there that will load programs off the memory? Is it possible to write my own boot loaders? Do I need an external crystal, or will the internal crystal be fine for what I intend to do? If I do need an external crystal, how do I go about wiring that up? How would I go about powering the attiny? Thanks for taking the time to read my post. I’m a total noob when it comes to hardware and circuitry. Also, any software that is recommended needs to be Linux compatible. Any answers would be appreciated.

    L J 2 Replies Last reply
    0
    • M Maki Young

      Hi all, If I’m in the wrong sub go ahead and tell me right away, and I’ll move my post elsewhere. Recently I’ve been thinking about doing some low level programming. I’m a programmer by trade and I am used to high level languages like C, Python and Rust. However I would like to try getting closer to the hardware. I did some shopping around and discovered the attiny85(

      http://www.componentschip.com/details/Atmel/ATTINY85.html

      . I’d like to do something similar to this this blog, but before I go ahead and purchase anything I have some questions. As for what I’m going to do with the attiny85, I plan to create simple games with push buttons and led lights on a solder less breadboard. I’d like to program the attiny in straight assembly, with an ISP programmer. Is this possible, or do I have to use the Arduino IDE/Arduino programming language? Are there any resources for this type of thing? On the Atmel website it lists the attiny85 as having a 512 byte EEPROM and a 4kb main memory. When I program the attiny85 am I programming the EEPROM directly or is there some type of boot loader/firmware already there that will load programs off the memory? Is it possible to write my own boot loaders? Do I need an external crystal, or will the internal crystal be fine for what I intend to do? If I do need an external crystal, how do I go about wiring that up? How would I go about powering the attiny? Thanks for taking the time to read my post. I’m a total noob when it comes to hardware and circuitry. Also, any software that is recommended needs to be Linux compatible. Any answers would be appreciated.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      For starters, I would pick something less obscure to work with; like the 8051, for example: [Latest 8051 Microcontroller Projects List | NevonProjects](http://nevonprojects.com/8051-project/)

      "(I) am amazed to see myself here rather than there ... now rather than then". ― Blaise Pascal

      1 Reply Last reply
      0
      • M Maki Young

        Hi all, If I’m in the wrong sub go ahead and tell me right away, and I’ll move my post elsewhere. Recently I’ve been thinking about doing some low level programming. I’m a programmer by trade and I am used to high level languages like C, Python and Rust. However I would like to try getting closer to the hardware. I did some shopping around and discovered the attiny85(

        http://www.componentschip.com/details/Atmel/ATTINY85.html

        . I’d like to do something similar to this this blog, but before I go ahead and purchase anything I have some questions. As for what I’m going to do with the attiny85, I plan to create simple games with push buttons and led lights on a solder less breadboard. I’d like to program the attiny in straight assembly, with an ISP programmer. Is this possible, or do I have to use the Arduino IDE/Arduino programming language? Are there any resources for this type of thing? On the Atmel website it lists the attiny85 as having a 512 byte EEPROM and a 4kb main memory. When I program the attiny85 am I programming the EEPROM directly or is there some type of boot loader/firmware already there that will load programs off the memory? Is it possible to write my own boot loaders? Do I need an external crystal, or will the internal crystal be fine for what I intend to do? If I do need an external crystal, how do I go about wiring that up? How would I go about powering the attiny? Thanks for taking the time to read my post. I’m a total noob when it comes to hardware and circuitry. Also, any software that is recommended needs to be Linux compatible. Any answers would be appreciated.

        J Offline
        J Offline
        Jochen Arndt
        wrote on last edited by
        #3

        I have not used that so far but will try to answer.

        Quote:

        I’d like to program the attiny in straight assembly, with an ISP programmer. Is this possible, or do I have to use the Arduino IDE/Arduino programming language? Are there any resources for this type of thing?

        I don't know if the Arduino IDE supports assembly language for the ATtiny85. But you can use Atmel Studio 7 | Microchip Technology Inc.[^] (the Atmel IDE).

        Maki Young wrote:

        On the Atmel website it lists the attiny85 as having a 512 byte EEPROM and a 4kb main memory. When I program the attiny85 am I programming the EEPROM directly or is there some type of boot loader/firmware already there that will load programs off the memory? Is it possible to write my own boot loaders?

        According to the data sheet the EEPROM can be written by a programmer. But the code resides in the main (flash) memory. The EEPROM is for storing data like serial numbers, calibration data, and configuration data. When using assembly language there is no boot loader. You have to write all the code and program it to the the flash memory. You may however write some kind of boot loader yourself. Such boot loaders are common to check for specific conditions on IO pins upon power on and enter a special mode (e.g. for code updates: The loader accepts commands on an interface and might program received data to flash and/or EEPROM). Then the normal code can be updated (which is executed when not in the special mode) but updating the boot loader itself would still require a programmer.

        Maki Young wrote:

        Do I need an external crystal, or will the internal crystal be fine for what I intend to do? If I do need an external crystal, how do I go about wiring that up?

        Just use the internal oscillator. An external crystal is only usefull with special requirements like frequencies not supported by the internal oscillator or a high stability clock.

        Maki Young wrote:

        How would I go about powering the attiny?

        By applying a voltage to the power pins (VCC and GND; 2.7 to 5.5 V / >= 1.8 V for the V type).

        Maki Young wrote:

        Also, an

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups