With my page www.costycnc.it/avr1 you can write and compile your own code in asm assembly language. If you learn few avr assembly instructions you can also learn atmega328 architecture that is most common known microcontroller in history!
For example in this video
with few lines of asm I cand turn led on or off.
The code:
.org 0x60
init:
sbi 4, 5
sbi 5, 5
rjmp init
line.org 0x60... mean that leave 0x60 locations empty... so... the code wil be write at 0x60 location
sbi 4, 5... mean that put the 5 bit of register 4 high ( the register 4 is direction of PORTB)
sbi 5, 5... mean that put the 5 bit of register 5 high (the register 5 is output pin PORTB)
When put bit 5 high or low mean that portb5 will be put high or low same as video
After write the code compile and upload to arduino same as video!!!
Enjoy an welcome in fascinating world of microcontrollers!
If you want know about me... www.costycnc.it










Comments