Stack Exchange Network

Stack Exchange network consists of 175 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]

This is a programming language that is at a low level that corresponds with the instruction set of the machine being programmed.

1
vote
1answer
28 views

ATmega2560 I2C (TWI) assembler configuration problems

I am using ATmega2560 for testing an I2C code. I wrote subrutines in assembler for init, start, write, read and stop the I2C setup. The goal is that master writes 11110000 to a slave with address ...
1
vote
1answer
77 views

Assembly language, accessing bytes of memory

I have some memory address 0x00000100 that I want to read from. The lower 4 bits read from this address indicates the states of 4 buttons - So bit 0 shows the state of button 0, bit 1 shows the state ...
0
votes
1answer
42 views

Micro-controller: External Interrupt “ RBIE ”

I'm working on a little project using micro controllers (PIC 16f84A) and got stuck at a point. I have 4 switches and those are the external interrupts now the idea is I don't understand how can I know ...
0
votes
1answer
612 views

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. Have to loop for seconds,mins,hrs

PIC18F2550 and DS1307 i2c RTC MPLAB assembly code. I am using a PIC18f2550 to get time,date,etc from DS1307. I am able to get the seconds,minutes, hours, etc by repeatly CALLing GET_TIME with a ...
3
votes
0answers
168 views

Why accessing the SRAM is slower with AVR XMega load instructions?

The AVR XMega has 16 GPIO registers in I/O space in addition to its internal SRAM. Interestingly the timing of LD instructions differ to these locations: Accessing the (rather large) I/O space is ...
1
vote
0answers
527 views

make an LED blink on rpi2 in assembly

I am trying to make an LED blink on assembly on my raspberry pi 2 model B to debug some startup code. However I don't see anything blink. Could someone tell me what I am forgetting? ...
1
vote
0answers
958 views

PCINT0 interrupt on attiny

I'm started working with AVRs few days ago. Started with assembler and simulating in Proteus. My current goal is to enable Pin Change interrupt on PCINT0, which is PB0 on my attiny13. Right now I'm ...
1
vote
0answers
180 views

Weird bug in MPLAB X IDE

When using the RTCC module in the PIC24F, we need to use the secondary oscillator (by setting bit #2 of OSCCONL register) and disable the write lock on the RTCC registers. Now the write lock can be ...
1
vote
0answers
582 views

Stellaris Launchpad: UART over GPIO PIN in ASM

I want to initialize and use UART on my LM4F120 Stellaris Launchpad in ASM. I found a reference code on how to to this on this ...
0
votes
0answers
42 views

Is my assembly code in MIPS correct?

I've started studying assembly, and I'm trying to solve this problem: For the following C statement, what is the corresponding MIPS assembly code? Assume that the variables f, g, h, i, and j are ...
0
votes
0answers
46 views

Assembler program showing ACK even with the wrong slave address, I2C code problem!

I have this project communicating MPR121 capacitive touch sensing keyboard with 8051 microcontroller, with some references I've implemented some I2C code for serial communication between master and ...
0
votes
0answers
98 views

Branch offset out of range ARM assembly

So I tried compiling this code below but keep getting the 1176E error message of Branch offset out of range 0xFFFFFFE8 out of range permitted values are up to 0x00007E on the 5th code line. I ...
0
votes
0answers
523 views

Servo motor interfacing with 8051 by assembly language

I know the principles of servo motor and programming it, I already done it with FPGA and adjusted the PWM like I wanted. But with 8051 assembly, I can't do the PWM or generate the 20 ms for the motors....
0
votes
0answers
41 views

MPLAB strange code jumps

I am writing assembly code for the 16F84A microcontroller and have run into some issues. I've implemented a 1 second time delay code which repeats itself consecutively for a total of 3 seconds, ...
0
votes
0answers
111 views

I/O initialisation. Curious for the reason PIC16F18877

For the initialisation of an I/O in the pic the datasheet indicates to clear set the TRIS correctly and clear both PORT and LAT bits. I thought I understood why and the program works. When looking at ...