Getting started with AVR and Linux command line tools
Vložit
- čas přidán 1. 11. 2020
- In this video I describe how to compile and upload a small piece of code onto an ATmega32U4 using the avr-gcc toolchain and only command line tools under Linux.
I use an Ubuntu installation in the Linux subsystem on a Windows 10 computer.
Tools needed:
$ sudo apt-get install binutils gcc-avr avr-libc uisp avrdude flex byacc bison - Věda a technologie
thank you for that video! i needed this for a long time. it's so hard to find the simplest examples sometimes
Very nice video Uwe! Straightforward and well explained. Many thanks thumbs up and subscribed.
thank you for that video, is good for my
Thank You!
thank you
danke!
Hii could you please provide a tutorial on how to change the cursor pointer to the one you use in this video ?
luckily I don't have to: czcams.com/video/kwSqtNvT7to/video.htmlsi=pu2uKx6T8CqcjTRU&t=487
"All three operating systems"
I wonder if this program would do the same (kind of task schedule oriented):
#include
#include
int main()
{
DDRE = 0b01000000;
int i = 0;
while(1) // an iteration per millisecond
{
switch (i)
{
case 0: PORTE = 0b01000000; break; // task at time slot 0
case 100: PORTE = 0; break; // task at time slot 100
}
i = (1 + 1) % 1000;
}
Your program is built around a state-machine and in principle it will blink the LED in a similar way. But there is nothing in your code which takes care of the exact timing. At a clock frequency of 8 MHz as in our case, one iteration inside your while-loop will be much faster than 1 ms. Including the overhead of the 16-bit compare/add/modulo operations, I would estimate something like 20-25 instruction cycles per turn, this would mean 8 MHz/25=320000 loops per second or 3 µs per cycle, 300 times faster than your assumption. We could test this in one of our lab sessions.
Also my goal with this short video - possibly not only for the audience in our course - was to keep the code as simple as possible. The switch-case-statements are something I personally like but consider an somewhat advanced knowledge.
A purist programmer would perhaps point out that a switch-case-statement never should miss, every possibility should be covered - if nothing else by a default-clause...
@@uwezimmermann5427 amazing grip on subject. SIR
I love his cursor so BAD!
you'll have to take your own hand though - mine is not for sale 😎
in case you have not seen the other recent comment about the cursor: here is the (Windows) tool czcams.com/video/kwSqtNvT7to/video.html