Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [assembly]

Refer to the assembly (or assembler) language.

0
votes
1answer
53 views

Arduino button-controlled LED with AVR Assembly

I am trying to make a simple button-controlled LED, but I cannot seem to get any input from the button that would change the state of the LED. In other words, the program keeps branching to lighton, ...
0
votes
0answers
63 views

Arduino Due: Low Level Programming - The Fundamentals

I've recently bought an Arduino Due to experiment with ARM processors. I am going to be doing embedded systems in university soon and I want to get first hand experience with programming an ARM CPU at ...
2
votes
1answer
42 views

Trying to run Timer1 in ATmega2560 with assembly

I have a slight problem with Timer1 in arduino (ATmega2560) while coding it in assembly. I try to run the Timer1 in CTC mode - I configure everything well in my opinion, but the TCNT1 just doesn't ...
2
votes
1answer
62 views

Assembly for loop repeating 2 times when it's only suppose to do it once

I'm programming an Arduino Nano so I belive that this question should be qualified for this SE. I am trying to dim up an LED using a for loop in AVR assembly. My problem is that the cycle is ...
0
votes
0answers
18 views

Use Arduino to send signals to controller for motor acceleration

I'm thinking about possibility to assemble mini pc, Arduino and this controller with this motor. I'm trying to understand if it possible that mini pc collect data from external source of user and ...
1
vote
2answers
68 views

Arduino IDE not compile .S program to board

After answering my previous question correctly I'm getting all sorts of errors when trying to compile the following program: I'm completely new to both assembly and the arduino IDE so I apologise in ...
0
votes
1answer
530 views

How to use arduino IDE to compile .s files

Hi I'm new to arduino and im using it to learn assembly for my computer hardware 101 class, I read online that I can make the IDE accept .s files and compile them to the board but I dont know how to ...
0
votes
0answers
122 views

Does ATmega1280 support vector instructions (SIMD)?

I looked in the instruction set manual and couldn't find anything related. Does that not exist? Is there any arduino that supports that?
0
votes
1answer
59 views

using references to SFRs in gcc inline assembler

I want to write a driver that can use either timer0 or timer2, based on a choice made at compile time. So I want all references to timer registers to be abstracted, e.g. OCRA for OCR0A/OCR2A, etc. I ...
8
votes
8answers
5k views

Different ways (and the fastest) to compute sines (and cosines) in Arduino

I am using an Arduino Uno board to compute the angles of my system (robotic arm). The angles are actually 10 bit values (0 to 1023) from the ADC, using the full range of the ADC. I am only going to be ...
1
vote
2answers
565 views

How get assembler/preprocessed code for library

I am using https://github.com/sudar/Arduino-Makefile project with https://github.com/ladislas/Bare-Arduino-Project to compile my Arduino projects from Linux command line. I put as much as possible ...
3
votes
1answer
257 views

Using Arduino with Assembly on MacOS

I'm trying to use an Arduino UNO board with Assembly on MacOS, but I couldn't find any documentation about it. How can I compile and upload Assembly files to the Arduino with MacOS?
1
vote
1answer
688 views

Controlling buzzer with assembly

I want to make a piezo buffer beeping with assembly code, but i haven't managed to yet. I have an Arduino UNO board (ATMega328p) and using avra and avrdude to build and load. The buzzer just stay ...
0
votes
1answer
1k views

How to configure 2nd Quadrature Decoder IO pins in Arduino IDE

I am working to read two quadrature encoders using a single Arduino DUE, as part of my summer vacations project. According to the following link http://atmel.force.com/support/servlet/fileField?id=...
1
vote
6answers
495 views

Building an AtMega328p from Transistors

I'm a little new to circuitry, and the Arduino in itself! From what I know, I think that it might be possible to actually build one (the processor itself, of course) from transistors. This isn't a ...
1
vote
1answer
361 views

Force compiler to execute instructions sequentially?

Is there a way to force the Arduino compiler to compile individual commands sequentially? Looking at the disassembly, lines of the assembly code for different C/Arduino commands are mixed. I was ...
0
votes
1answer
1k views

Arduino PWM fading led in assembly

I'm writing Arduino UNO (=ATMega328P-PU) programs in assembly to save memory, so I use avra.exe (same as atmel studio's avrasm32) to compile and avrdude to upload, and simple programs like blinking ...
1
vote
1answer
297 views

Working on a reaction test for the Arduino Uno using an led and an lcd shield

The situation involves some Asm inline practice and a basic circuit. The program turns an LED on after a somewhat random period of time then waits until the button is pressed to report back how many ...
1
vote
2answers
6k views

Make LED blink using AVR assembly

I have an ATmega328P Arduino and am trying to make the LED blink using assembly without any additional includes. The goal is to have it blink for 1 second on, then 1 second off, however, it blinks ...
2
votes
2answers
2k views

How to update multiple outputs simultaneously

I need to update simultaneously all the outputs of a specific port. I am familiar with using micro-processors assembly language. After initializing a port (Data Direction Register), I can write to ...
1
vote
2answers
181 views

Programing in Assembly for the Digispark

I've been given a digispark and am looking to write straight assembly code for it. Anyone know how to get started with this? I've been successful in getting the Arduino IDE set-up but would really ...
1
vote
3answers
298 views

How fast is an Arduino?

Can an Arduino Uno calculate the time that an assembly instruction will take in nanoseconds, not microseconds? I don't want to use a PC, because the calculation will be more accurate using an Arduino, ...
2
votes
1answer
306 views

Interleave Assembly and Source for avr-objdump

Trying to get avr-objdump to generate a listing that interleaves the assembly with the source code. I've tried a bunch of debugging arguments in different configurations but I can't seem to get it. ...
1
vote
2answers
356 views

How is AVR Assembly in Eclipse or at Linux command line done?

I'm trying to learn AVR development in C and Assembly for the Arduino Uno (Atmel 328p microprocessor) in Linux. I've found many good guides on how to install and setup the AVR plugin for Eclipse, ...
1
vote
1answer
294 views

Upload Assembly to AVR on a breadboard using Arduino as ISP

I try to learn assembly and use an arduino uno R3 to act as a programmer. i have build a standalone circuit with an atmega328p, can upload usual sketches (written in c) and have also sucessfully ...
3
votes
1answer
2k views

Storing in a global variable using inline assembly

What I'm trying to do is pretty basic: I have a global variable and I'm trying to store some value in it (specifically, the SP_H and SP_L values). The variable is an array of structs and I'm trying ...
1
vote
1answer
1k views

Arduino uno AVR assembly with LEDs

I am currently in an introductory assembly language class. My assignment is to use a sparkfun joystick shield kit to do something with an arduino uno. I figure turning on LEDs is the easiest. We must ...
2
votes
1answer
3k views

How to create delays in AVR assembly language

Hi i'm new to AVR assembly language so i was trying to get delay function to create 1 ms , 100us, and 1us delays to do that i need to figure out what to replace nop's with below here (mainboard ...