Questions tagged [assembly]
Refer to the assembly (or assembler) language.
47 questions
-1
votes
2
answers
108
views
Removing the L from F_CPU in assembly
I am developing a mixed c++ /asm project.
In the asm I am using F_CPU to do some busy waiting as follows. However, by default, the F_CPU is defined with a trailing L (for long). The asm is not able to ...
3
votes
1
answer
677
views
Arduino Uno R3 assembly code to push a button and turn on a LED
I've been trying this for days without success...
I need to turn on a LED on portb when a button in portd is pushed. Cabling works, I've tested it with Arduino IDE and it works like a charm.
This is ...
0
votes
2
answers
393
views
Arduino IDE. How do I use labels in a macro?
It's the Arduino Uno. I've spent hours reading on the internet but found nothing yet. If you use a label in the macro, the 2nd time it's called you get a duplicate label error.
0
votes
1
answer
136
views
Does the bootloader use some SRAM?
I want to use all SRAM of an Arduino by writing the code in assembly. But does the bootloader use some SRAM while the program is running, and if the answer is yes would changing that data lead to ...
0
votes
1
answer
680
views
Is it possible to use assembly with arduino?
I want to learn assembly, but would like to learn by doing, is it possible to learn and make something useful with arduino hardware? I dont know where or how to start something like this.
1
vote
1
answer
1k
views
Blinking a led using assembly language at different frequencies using two push buttons
I want to blink a led using assembly language and arduino
I want the circuit to have a normal state of 5 hz blinking frequency
Then use two push buttons to increase or decrease the blinking frequency
...
0
votes
1
answer
143
views
Parallel I/O - maybe use Machine code function call
I'm a newbie to arduino but been programming lots.
I have a project where I would like to output 4 bits to adjacent pins and read 4 bits from another (4) adjacent pins. (Imagine a matrix keyboard ...
2
votes
1
answer
409
views
Loading code to a mega 2560
As part of my application, I need to be able to update the code on my mega 2560 in the field with a download from the internet.
I have found this code in the AT Mega 2560 data sheet
;-the routine ...
0
votes
1
answer
328
views
LED Blink in assembly with timer1 output compare interrupt not working
I was trying to have some fun with avr-assembly on my arduino and I tried the following codes to blink my LED
first I tried the ISR approach and when It didn't work I tried the CTC mode one,
both ...
1
vote
1
answer
894
views
How to add two assembly arrays in arduino
Hey guys what I'm trying to do is to sum two arrays and return a new array; for example if given
uint8_t a[] = {2, 4, 6};
uint8_t b[] = {1, 2, 3};
I should get { 3, 6, 9} What I'm trying to do is ...
1
vote
0
answers
2k
views
How to use LCD display HD44780 with arduino without using any library
My professor wants me to implement a display to an old project prototype we had laying around on the lab.
But he wants me NOT to use LiquidCrystal.h library or any other to achieve that.
I read ...
0
votes
1
answer
91
views
ESP8266 CCLOCK Odd behavior
I'm trying to write some extremely fast code for the ESP8266, so I'm trying to figure out how to time things. I've discovered CCLOCK, a register that reflects the number of clock cycles since startup....
1
vote
2
answers
831
views
Am not able to call C++ function pointers from inline assembly
Due to some curiosity, I was trying to use some assembly with my Arduino MEGA 2560.
I am not able to invoke a function from a c++ function pointer array.
When I uncomment the call function, func_a ...
1
vote
2
answers
121
views
Weird assembly output
I was taking a look at the disassembly for a loop of mine that seemed to be taking too long and I found these assembly instructions that I don't understand. Why does it load 0 into r25 and then do two ...
0
votes
0
answers
285
views
how do i convert to assembly code (AVR assembly) from arduino
i have code in the Arduino ide for a temperature sensor that shows the temperature on three 7 segment displays, it shows the temperature to one decimal point. using an arduino uno. I am struggling to ...