11. Arduino for Production! AVR Atmega32 - Revising the LED program to make the LED blink

preview_player
Показать описание
Purchase my new book: Arm Microcontroller Programming and Circuit Building Volume 1

Official Page with More Information:

This is the seventh in a video series aimed to give a tutorial on the popular Atmel AVR Atmega32 microcontroller. In this video The first program is revised to make the LED blink. Bitwise operations are also introduced and briefly explained.

Equipment that I use to make videos:

-~-~~-~~~-~~-~-
Please watch: "51. How to Add Interrupts for the ADC - ARM Microcontroller Part 2 - ARM STM32 Microcontroller"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Actually we all have a problem, this is such an informational video, that we almost forget to thumbs up and like it. or share it. :D

AryaTanmayGupta
Автор

Excellent, Excellent explanation of bitwise operations. So straightforward, and not confusing. good hard work.

joro
Автор

patrick you are the saviour of my semester

freshkid
Автор

@PRIMANOPTE You're welcome and thanks for the kind words.

PatrickHoodDaniel
Автор

Thanks for explaning this complicated stuff in a esay way, Big thanks from me sitting in Denmark watching ;-)

michaeldragic
Автор

very good because they are really step by step. Just a noteon 3:54 you say "zero or zero" is a 0, however the ORing, is A OR B is true, it's true, else false, so you would say zero AND zero, which gets confusing, so it's just "if this OR this is 1, it's 1"

wcndave
Автор

Thank you, Ive never programed a avr before and these tutorials have gotten me up and running.

BByteProductions
Автор

Great explanation on using the Bitwise Operators found it very useful.

Although the timing was off on my setup.

I had to specify F_CPU = and also set my fuses values to LFUSE = 0xe1 and HFUSE = 0x99 in my makefile to blink the LED at the correct speed.

nebe
Автор

Sure, I would recommend watching Arduino tutorials rather than strict AVR microcontroller videos. These tutorials are aimed at learning the fundamentals of programming AVR chips directly.

PatrickHoodDaniel
Автор

Sure, you can do that. You would need to connect the button from the pin to 5V instead, and set the PORT bit to low, however, you will not have the benefit of the internal pull up resistor in the controller, In this configuration, you will need to add a pull down resistor, since the button will be floating if the button is pressed.

PatrickHoodDaniel
Автор

@TheMegalucian I plan on doing many videos on this subject, so I may provide tutorials based on AVRStudio in the future. The avr-gcc environment has compatibility in all major OS's, so I wanted to provide the IDE and compiler that would be most useful.

PatrickHoodDaniel
Автор

This is wonderful really informative and worked first time. I bought a camera development kit off Ebay which uses the Atmega32A with the ov7670 and this works great with that. I am using a usbasp programmer to program it. Mine flashes faster with the same delay in the program that you are using most likely because it is running off a 16Mhz crystal.

ShaunDobbie
Автор

excellent beginner tutorial, wish I found this video when I was starting AVR. thanks for sharing!!!

averagemale
Автор

Yes, but I generally leave the XOR situations to the toggle applications and the AND NOT situations where I need to turn the bit off. It's the safe way. If I use the toggle/XOR to flip the bit where I intend to turn it off and I don't know the current state of that bit, I could get into trouble. There is no problem using the toggle in this situation, but it may be outside of sound programming principles to do so.

PatrickHoodDaniel
Автор

Hi Patrick I watched a few videos in your series and decided I wanted a micro controller but when I looked into it I found it hard to acquire the hardware you are using. So instead I bought a TI MSP430 Launchpad as the programmer was included. What I found was there documentation was poor and I would like to congratulate you as the way you teach the "or", "not" and "and" operations makes it easy to adapt to other micro-controllers and their way of calling and changing bits. Thank-you Greatly.

JeromeGorlick
Автор

Your MCU videos are awesome, so clear and easy to understand. Keep it up!

EEdude
Автор

Because it's digital. The controller can only give you two results, 0 or 5v (0 or 1 respectively). You may be looking for an analog voltage. You can create a DAC (digital to analog controller), or create a PWM, but you will not be able to go above 5v unless you use other components like transistor, MOSFET, or similar component.

PatrickHoodDaniel
Автор

@veryclevermind Thanks. I enjoy making the videos.

PatrickHoodDaniel
Автор

thank you so much you people are awesome made my life simple.if u guy were standing in front of me i would definetly hug u guys gently... superb job

uzairismail
Автор

Tough to learn, thank you for making this available

iwtommo
welcome to shbcf.ru