No video

AVR ATtiny85 Programming: PWM Fast Mode

  Рет қаралды 44,208

AllAboutEE

AllAboutEE

Күн бұрын

In this tutorial learn to generate a PWM with the frequency and duty cycle you need.

Пікірлер: 21
@erikvincent5846
@erikvincent5846 8 жыл бұрын
This is an excellent tutorial. You not only show us how it's done, but basically a bit of how to read a datasheet as well, which is honestly my weak spot right now. Thankfully to tutorials like this, I am learning.
@AllAboutEE
@AllAboutEE 8 жыл бұрын
+Erik Vincent Thanks and yes, knowing how to read the datasheet is pretty important. Once you learn that you can pickup any microcontroller and get started right away as well as learn any other feature on your own.
@CasualInventor
@CasualInventor 5 жыл бұрын
Nice quick guide to getting Fast PWM set up on the '85. One slightly annoying caveat with non-inverting PWM on this chip is that you cannot get true 0.00000% duty cycle - you always get a 1 clock-cycle wide high pulse. This may be a problem, because a microsecond high pulse is actually visible when using a high brightness LED on the output. The solution is to use INVERTING PWM instead and alter your duty cycle values so that 0x00 means 99.9999% duty cycle and 0xff means true 0.00000% duty cycle. As Dave Jones might say, "It's a trap for young players!" :)
@6345788
@6345788 3 жыл бұрын
Excellent tutorial! These timers are so useful. But, I have to learn the programming and you have really helped me understand using the graph paper and working through the formulae for the frequency. Thanks!
@Nivlekius
@Nivlekius 9 жыл бұрын
Thank you, thank you, thank you. I am fairly new to AVRs and I have code for PWMs for larger chips but not for attinys. I was looking all over for something. You explained it perfectly. Thank you!
@peckfamily6662
@peckfamily6662 7 жыл бұрын
Nivlekius I
@swvincent
@swvincent 8 жыл бұрын
I'm working out how to set PWM frequency on the AtTiny85 and this was very helpful, thank you.
@losmanus730
@losmanus730 2 жыл бұрын
Hello, thanks for the great video. I do not understand that. I need 1000Hz and a duty cycle of 27. How do I do that? Can you help me?
@caioqwerty1
@caioqwerty1 4 жыл бұрын
Saved me, thank you very much!
@holymoly2353
@holymoly2353 6 жыл бұрын
Excellent - thank you! Just what I needed...
@prettyhard0150
@prettyhard0150 Жыл бұрын
Im trying to create a variable frequency. how i can do that to the attiny?
@demetriusdemarcusbartholom8063
@demetriusdemarcusbartholom8063 Жыл бұрын
ECE 312, UofA.
@louisleone9794
@louisleone9794 2 жыл бұрын
Is this possible for vaping/ electrik cigar
@Nivlekius
@Nivlekius 9 жыл бұрын
One question. How do I change the frequency? I realize it's probably via the prescaler but is there a more precise way?
@Nivlekius
@Nivlekius 9 жыл бұрын
+Nivlekius I used 256 prescaler to get to 39KHz and I was going for 38.. that's close enough I think my purposes but more precision is better. Is there a way I can do it without the prescaler?
@louisferreira9055
@louisferreira9055 4 жыл бұрын
Hey, are you still actively working with the AT85? I could really use your help on a project I'm working on since you seem to know a lot about these chips.
@S-Tach
@S-Tach 4 жыл бұрын
nice work .....can i have this code please
@shivamnrutya
@shivamnrutya 8 жыл бұрын
how accurate Attiny85 in generation of sine wave ? if we need 200hz how accurate it generate ?
@gilbertgonzalez7890
@gilbertgonzalez7890 9 жыл бұрын
What happened to the COM0A0 ?
@erikvincent5846
@erikvincent5846 8 жыл бұрын
+Gilbert Gonzalez , because he is only doing non-inverting for his A channel. If he was doing inverting on his A channel, then he would setting the COM0A0 bit to 1 as well (1
@gilbertgonzalez7890
@gilbertgonzalez7890 8 жыл бұрын
Erik Vincent Thank you for taking the time to explain it :) I really appreciate it!
AVR ATtiny85 Programming: EEPROM Reading and Writing
9:43
AllAboutEE
Рет қаралды 46 М.
Understanding Pulse Width Modulation
13:45
Rohde Schwarz
Рет қаралды 17 М.
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 22 МЛН
Please Help Barry Choose His Real Son
00:23
Garri Creative
Рет қаралды 22 МЛН
wow so cute 🥰
00:20
dednahype
Рет қаралды 22 МЛН
Gli occhiali da sole non mi hanno coperto! 😎
00:13
Senza Limiti
Рет қаралды 17 МЛН
megaAVR Microcontrollers: Fast PWM Generation
21:39
Jonathan Currie
Рет қаралды 12 М.
Duty cycle, frequency and pulse width--an explanation
8:53
Justin Miller
Рет қаралды 462 М.
477 Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Рет қаралды 204 М.
Fast versus phase-correct PWM
5:05
Uwe Zimmermann
Рет қаралды 4,3 М.
Top Fifteen Mistakes People Make When Designing Prototype PCBs
12:26
Cosplay Light and Sound
Рет қаралды 146 М.
ШИМ на Attiny 13, AVR, CodeVisionAvr
8:17
Канал CAS
Рет қаралды 25 М.
#13 Automated Battery Tester with an Attiny85 and an OLED (Tutorial)
9:55
🩷🩵VS👿
00:38
ISSEI / いっせい
Рет қаралды 22 МЛН