I have some assignment from my lecture to blinking led using arduino uno with asstembly languague. How to blinking led using assembly languague?
void blink( ) {
asm volatile (
"sbi 0x05, 0" "\n\t" // PORT B.0 high (I/O 8)
// delay
"cbi 0x05, 0" "\n\t" // PORT B.0 low
// delay
};
}
This assumes the output pin as been declared an output already.
I've only complied this using avr-gcc - the IDE may require something else.
You will probably need to find the "AVR 8-bit Instruction Set Manual".
This might be helpful to you:
https://forum.arduino.cc/index.php?topic=413151.msg2844634#msg2844634