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.
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//Types:
//Pre-defined constants:
//Timing:
//Pins:
//Bit/Byte test/set:
//Serial:
//SPI: or //Wire (I2C):
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.
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.
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 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.
Here you can download all file on this week Download the files here