• HOME
  • PROJECT
  • ABOUT
  • CONTACT
  • ASSIGNMENT

    Embedded programming

    An embedded system is a computer system with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. Embedded systems control many devices in common use today.

    Embedded programming is a specific type of programming that supports the creation of consumer facing or business facing devices that don't operate on traditional operating systems the way that full-scale laptop computers and mobile devices do.

    What have learn in Datasheet

    The ATtiny25/45/85 provides the following features: 2/4/8K bytes of In-System Programmable Flash, 128/256/512 bytes EEPROM, 128/256/256 bytes SRAM, 6 general purpose I/O lines, 32 general purpose working registers, one 8-bit Timer/Counter with compare modes, one 8-bit high speed Timer/Counter, Universal Serial Interface, Internal and External Interrupts, a 4-channel, 10-bit ADC, a programmable Watchdog Timer with internal Oscillator, and three software selectable power saving modes.

    Here you can download Datasheet Download pdf files here

    Pin configuration

    BUILT-IN's

    //Types:

  • int
  • char
  • long
  • float
  • word
  • //Pre-defined constants:

  • INPUT
  • OUTPUT
  • HIGH
  • LOW
  • CHANGE
  • //Timing:

  • delay(msecs)
  • delayMicroseconds(msecs)
  • millis()
  • micros()
  • CHANGE
  • //Pins:

  • pinMode(pin, dir)
  • digitalRead(intpin)
  • digitalWrite(pin, val)
  • analogRead(pin)
  • analogWrite(pin, dutycount)
  • //Bit/Byte test/set:

  • bit(bitposition)
  • //Serial:

  • begin(baud)
  • available()
  • //SPI: or //Wire (I2C):

  • begin()
  • end();
  • setDataMode(mode);
  • setClockDivider(divider);
  • Circuit Board

    I try to design a circuit board by using eagle software that circuit include Attiny45 ,AVR ,LED and resistor.THat circuit it used for blinking LED after one second.

    Programming

    I try to program my circuit board by using different method Arduino ide and AVRDUDE. Both method i use i program blink led in one second.

    Arduino ide

    The open-source Arduino Software (IDE) makes it easy to write code and upload it to the board. It runs on Windows, Mac OS X, and Linux.

    Before using Arduino ide you must known this things.Arduino ide it have 2 part which void setup and void loop.

    On void setup is where we can input and output device.

    On void loop is where we can some code which continous. On this part i try to make code which is turn ON LED after one second turn OFF after one second come again turn ON.

    This is the code i try to write in order to make blink LED. First i try to declare the pin 4.this pin is where i will connect the LED.

    int outpin=4;
    void setup() {
      pinMode(4, OUTPUT);
    void loop() {
      digitalWrite(4, HIGH);   // turn the LED ON
      delay(1000);             // wait for a second
      digitalWrite(4, LOW);    // turn the LED OFF
      delay(1000);             // wait for a second
    }
    						

    Avrdude

    AVRDUDE is software for programming Atmel AVR Microcontrollers.Avrdude is a command line program, so you'll have to type in all the commands (later you'll find out how to shortcut this with a Makefile).

    On AVRDUDE it look like the same as i programm on arduino ide.it take one second to be ON and other to be OFF in every time.

    Testing

    Here you can download all file on this week Download the files here

    About Us

    My name is NSABIMANA Ziadi, I am Rwandan people Read More.

    Our Info

    • E-mail:nsabimana.ziadi@gmail.com | ziadi@fablab.rw
    • Address: Telecom House, 6th floor, 8 KG 7 Ave, Kigali
    • Telephone:+250781044202

    Follow Us

    • Twitter
    • Facebook
    • Google Plus
    • Whatsapp
    • instagram

    © Copyright 2018 | Ziadi | All Rights Reserved. Designed by NSABIMANA Ziadi