ATTINYPU from MICROCHIP >> Specification: 8 Bit MCU, Low Power High Performance, AVR ATtiny Technical Datasheet: ATTINYPU Datasheet. ATtiny (also known as TinyAVR) are a subfamily of the popular 8-bit AVR microcontrollers, .. Timeline[edit]. The following table lists each ATtiny microcontroller by the first release date of each datasheet. ATTINY13 datasheet, ATTINY13 circuit, ATTINY13 data sheet: ATMEL – 8-bit AVR Microcontroller with 1K Bytes In-System Programmable Flash,alldatasheet, .

Author: Gale Kigami
Country: Saint Lucia
Language: English (Spanish)
Genre: Health and Food
Published (Last): 20 February 2014
Pages: 298
PDF File Size: 16.65 Mb
ePub File Size: 19.88 Mb
ISBN: 877-1-29482-332-1
Downloads: 46816
Price: Free* [*Free Regsitration Required]
Uploader: Zujind

Sluit het ledje aan volgens onderstaand schema in dit schema is ook de bedrading voor het programmeren via de ISP meegenomen: Het weerstandje is belangrijk, deze beperkt de stroom door de LED, als je deze niet gebruikt gaat het LEDje snel stuk! De code om de LED te laten in- en uit-faden met een loop ipv een potmeter heb ik aangepast van adnbr Github:.

Selecting the ADC input is easy — look at Table Put simply the prescaler divides the system clock speed the amount prescribed by the table — the ideal ADC clock speed is between 50 kHz and kHz for the full 10 bits of resolution.

ATTINY13 Datasheet(PDF) – ATMEL Corporation

atitny13 The faster the clock, the faster the conversion takes place. I will write about that at a later date. Each conversion takes 13 ADC clock cycles bar the first one, which takes Once the conversion is completed we need to grab the result from the result register, ADCH.


Starting a datxsheet conversion is as easy as setting the ADSC bit. And reading a 10 bit result if you want it that is, see the section above about ADLAR is remarkably simple — a preprocessor macro built into the avr-gcc libraries provides the helpful ADC pseudo-register that can fatasheet used to obtain the full 10 bit value. If you are unsure as to what pulse width modulation is I suggest you find out before continuing onwards.

In the circuit we are running here it is possible to simply connect the LED directly to the pin with an appropriate resistor to ground, and the pin will run datashdet. Just like the ADC there is a prescaler that adjusts how fast Timer 0 counts relative to the system clock speed.

To explain what is actually happening here, take a look at the graphic below. The black sawtooth line is the value of the Timer 0 counter which counts to then resets to 0.

If we set the PWM value to reasonably high, say the red attint13 line then the PWM output will be equivalent to the red square wave below. As the output is high the majority of the time the LED will be quite bright. Now would be a good time to package all the PWM setup code into its own method.


The ADC is set up, the PWM eatasheet ready to go and to get one talk to the other is as simple as just copying a value across:.

How To Program ATtiny13/ATtiny13a using Arduino IDE

You may find you need to do some form of filtering to the ADC value, especially if the analog portion of your circuit is quite noisy, or perhaps there is a specific condition you want to fulfil before the PWM output is turned on. NL Laat techniek leven!

The closer you look De code om de LED te laten in- en uit-faden met een loop ipv een potmeter heb ik aangepast van adnbr Github: LED output Pin 6. Potentiometer input Pin 7. Domotica forum EU Tweakers.

Responsive Theme Mogelijk gemaakt door WordPress. Het gebruik van software, downloads, scripts en uitleg op deze website is geheel op eigen risico, DomoticX is niet aansprakelijk voor de schade die, rechtstreeks of onrechtstreeks het gevolg is van gebruik van deze website!