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

learn more… | top users | synonyms (1)

0
votes
1answer
41 views

using an AduC841 microcontroller. memory read shows pointer not object pointed to

I am using an AduC841 microcontroller programed using assembly language(8051). when using MOVX commands to read/write from internal XRAM to DAC,my oscilloscope shows the value of the DTPR rather than ...
3
votes
1answer
166 views

How does the BRGE instruction work in assembly? Why is this code not functioning properly?

.cseg ldi r16, 0x01 ldi r17, 0x01 add r16,r17 cpi r16,0xFF brge greater jmp less greater:inc r1 jmp done less: jmp done done: jmp done I'm writing ...
0
votes
1answer
40 views

How to calculate how much data a Core 2 duo E8 can write to the RAM per second?

I'd like to know how exactly I could calculate how much data the Core 2 duo E8 can write to the RAM per second, given that it is not overclocked and the RAM is 333MHz-DDR3?
1
vote
1answer
38 views

ATmega328P assembler inline text and assembelr ALIGN

I have a program in assembler like this: ...
-1
votes
1answer
63 views

ATMEGA32 LED BLINKER Assembly code problem

I tried the following code for a simple led blinking problem on ATMega32. ...
0
votes
1answer
43 views

How to store modify and resend 4 bytes of data from an assembly coded dspic to that in a c compiler based pic18f

I'm using Xc8 compiler and pic18f.Im communicating with a dspic30f ;coded in assembly and receiving a 4 byte variable via i2c. Task: I have to receive the 4 byte packet store,modify it and send ...
12
votes
4answers
355 views

AVR SEI instruction

The AVR SEI instruction (http://www.atmel.com/webdoc/avrassembler/avrassembler.wb_SEI.html) waits for the next instruction to finish before enabling interrupts. If I use another instruction to set ...
0
votes
0answers
39 views

Machine cycles required for conditonal call instruction in 8085

The number of machine cycles required for execution of CALL IF CARRY, CC is 2 or 5 based on condition is false or true respectively. If condition is true it is 1 instruction fetch cycle and 2 memory ...
-2
votes
1answer
109 views

error with VHDL CODE FOR FFT

I have a VHDL code for implementing FFT using butterfly. Its 4 input and 8 output. There are 2 VHDL files one for fft package and the other for the architechture, inside the fft pachage the butterfly ...
1
vote
1answer
43 views

Programming ARM Option Bytes using Assembly Directives

So, having a look at the datasheet for a specific ARM controller, we find the address space to be mapped out as follows: There are number of ways to accomplish this, one of which is through an ...
0
votes
2answers
44 views

What happens if a branch prediction overwrites a value?

We are just learning about branch prediction so I might not totally understand how they work, but as I understand it, the branches are set to predict either taken or not taken. The pipeline will start ...
9
votes
2answers
538 views

Silkscreen versus assembly layer

Is there any example, preferably by photos, how does assembly layer on PCB differ from the silkscreen? I understand, that silkscreen reference designators should be left visible after the parts are ...
0
votes
1answer
75 views

FRDM-KL25z assembly delay loop causes reset

I'm currently working on a project using the FRDM-KL25Z development board and programming using Keil MDK-lite (5.14a). What we're supposed to do is create a simple traffic light using three ...
-2
votes
1answer
91 views

Calculator with MSP430 in Assembly Language

I am programming a calculator in assembly language with the MSP430g2553. I have a 4x4 membrane keypad and an 2x16 LCD. I already can display numbers in the LCD with the keypad. The issue is that the ...
6
votes
1answer
73 views

Soldering a male-female bus connector

'Stackable bus connectors' are common nowadays on Arduino and other boards where a single connector has both the male pins (for the board below) and female sockets (for the board above) In DIY ...
0
votes
1answer
62 views

NHD-0216HZ-FSW-FBW-33V3C Black Boxes in Line LCD Display

I installed a NHD-0216HZ-FSW-FBW-33V3C with an MSP430g2553. I tried to initialize it for 4-bit mode in assembly language but black boxes still shown and initialization is not completed I think. My ...
1
vote
1answer
47 views

MSP430 Delay Subroutine

I am writing a delay subroutine in assembly language for the MSP430. I want to know how to calculate the number that have to put in Register R10 in order to achieve a 20ms delay. Thanks ...
0
votes
1answer
48 views

Where can I find some basic information about ICT? [closed]

I'm trying to find some information about the basics of ICT (In Circuit Testing) but having trouble finding anything useful. From the few things I managed to find, I gather that an ICT tester is a ...
0
votes
0answers
46 views

How do I make a 250 second delay on a PIC16F84A? [closed]

How to write a 250s delay using assembly for my PIC16F84A?
0
votes
1answer
64 views

Packaging a small electronics project

(first question on this board - n00b alert) I'm on a second iteration of a small autonomous project which logs changes in magnetism. It consists of just: Espruino board Lipo battery HMC5883L ...
0
votes
1answer
70 views

What is difference between Wait state & Bus idle machine cycle in Case of 8085 Microprocessor?

I have Understood that Wait State provides extra time for slow devices by making ready signal low. Bus idle is a machine without performing any Read/Write Signal, I am able to figure out some ...
0
votes
2answers
109 views

Division Assembly in MSP430

I have been trying to implement an assembly routine in MSP430 for division. I already got the code for the division from the Horner Division Algorithm. The problem is that I only got the integer part. ...
0
votes
3answers
91 views

Assembly Jump Question (PC Offsets) - MSP430

So im still trying to understand basic computer architecture, and have been writing a little bit of assembly for the MSP430 (basic LED/Switches stuff). I've been browsing the instruction set, and ...
1
vote
0answers
39 views

Fill unused sector in flash with random value

I asked this question on the KEIL forum http://www.keil.com/forum/60463/ but got no response so trying my luck here. I have a LPC2292 system and i use a linker file to flash the FLASH / ROM on the ...
2
votes
1answer
136 views

ARM startup file attributes vs GCC command line arguments

The startup files for STM32 Cortex-M MCU's, for most GCC toolchains, often bundle the Atollic TrueStudio startup assembly files with HAL libraries, like for example in my case, STM32CubeF4. I'm ...
1
vote
1answer
96 views

AVR asm wait loop explain

Can someone please explain me this code (it is from wait loop calculator), I cannot clearly understand calculation. ; Delay 1 600 000 cycles ; 100ms at 16 MHz ...
2
votes
1answer
70 views

PIC ISR - check every interrupt source or just one?

I'm curious if there are any particular wins for using a call instead of a goto when checking each interrupt source in an ISR. My current code would do something like this: ...
0
votes
2answers
40 views

How to count cycles used by a routine?

I'd like to measure the number of cycles a routine uses on a 8051. I'm guessing that I could toggle a pin on and off and measure the period with a scope and multiply it by the number of cycles the ...
1
vote
0answers
32 views

MSP430: Configuring multiple inputs to the same ISR

MSP430F2274 I have four buttons that all need to be tied to the same interrupt service routine. They are tied to P1.0 - P1.3. The first button is configured and working great with this initialization ...
0
votes
0answers
35 views

Variables in multifile project (assembler), pic18f4550

I'm using MPLAB X and a PIC18F4550. If I have two files main.asm with a loop and a delayX.asm that generates a delay based on the value in some register. One way to do it is to copy the value into ...
0
votes
2answers
43 views

Most efficient way to switch order in which data is read in assembly

I have an assembly assignment that requires me to be able to store a number and via a lookup table output the number on a 7 seg display in both forward and reverse order depending on the state of an ...
1
vote
1answer
389 views

Simple AVR LED blink in assembly - why does this code not work?

I've been trying to blink an LED with AVR assembly. I'm using an ATMega168 chip and avr-gcc toolchain. Here's my code: ...
0
votes
1answer
66 views

USB data cable that doubles up as a USB storage device

Is it possible to create an USB to micro USB (or lightning) cable that has storage built into it? So if it's plugged into a computer with no phone, the computer recognizes it as a regular USB ...
1
vote
1answer
81 views

MPLABX syntax cheker errors in ASM mixed with C

I'm using XC8 for a project in MPALBX using a PIC18F26K80 and I'm getting lots of Unable to resolve Identifier errors in the editor: The code works compiles an ...
1
vote
0answers
52 views

8051 Assembly - reading 16 bit timer value and comparing to a constant

I need to read a 16 bit timer value on the fly , compare it to a constant and reset it every time its value equals a constant value and thus avoiding it from going to ISR. Can anyone help me with ...
2
votes
2answers
116 views

Initialize ARM registers to specific value via Inline assembly

I have a need to initialize the ARM registers of my ARM7TDMI development board to a specific values using inline assembly. For example currently I do something like the following : ...
0
votes
1answer
84 views

Interrupt doesn't seem to reenable on PIC16F887

I'm building a timer using the PIC16F887, some push buttons, and seven-segment displays. I'm writing the code in assembly, and everything works great except the start/stop button which is handled as ...
0
votes
1answer
85 views

How do ALU flags communicate with the rest of the computer?

How are ALU flags connected to various parts of a computer? I've just finished building an 8 bit computer in Logisim that can add subtract and compare... and am wondering how I can make it multiply ...
5
votes
2answers
196 views

AVR: How optimize cycle-counted ISR to portable code, using inline asm

I'm trying to optimize my RX and TX interrupts to meet maximum execution time of 25 cycles while interrupts are disabled. So far, I have found that code is optimized enough, but pushing and popping ...
1
vote
1answer
279 views

Is there a way to Divide two 8 bit number in PIC 18fXXX assembly language not C?

I Can easily do the division in C of PIC micro controller. But is there a way to divide two number stored in two 8 bit registers. For example look at this code. I have to do it in PIC assembly for 8 ...
4
votes
5answers
1k views

Injecting UUIDs into ROM during production

I'm brand new to electronics and was wondering if someone could explain to me how individual MCU/MPU-powered electronics units can be assigned unique identities on the factory line. For instance, ...
2
votes
1answer
95 views

Fiducial marks on board vs panel

Do I need fiducial marks on both my board and my panel for automated assembly? And how many fiducial marks do I need per board for a round 80 mm diameter board?
0
votes
1answer
107 views

WFI instruction slowing down SYStick interrupt

I've configured my Infineon relax kit for max frequency(120 MHz). I've set my SYSTick for a periodic interrupt of 10 ms. For power saving, I use a WFI assembler instruction whenever my processor is ...
3
votes
1answer
251 views

How to program the ADC10 on an MSP430G2553?

I am currently writing my first serious application with an MSP430 controller (specifically, an MSP430G2553) and I am a bit confused by the documentation as to how I'm supposed to set up the ADC10. I ...
0
votes
1answer
48 views

Bit Addressing in 8051

Can i only use the MOV command (for bit addressable registers like PSW,ACC as well as ports ) with the carry bit? Is the command : MOV PSW.4,ACC.4 work with the assembler? if not why? How can i ...
-4
votes
1answer
79 views

From bitwise instructions to c code intuitively

I need to be able to recognize what an assembly code is doing. I can picture the basic instructions in C code in my head. But bitwise instructions such as ...
0
votes
1answer
84 views

_asm TBLRDPOSTINC _endasm,

I am using a PIC18f25K80 and an XC8 compiler. I have included the files from the MDD library. However, after compiling I get the following in the "FSIO.c" file: ...
0
votes
1answer
37 views

“DB” data directive explaination [closed]

What exactly is initialization of code memory IN 8051? Does the db directive command DB "SAM'' burn data into ROM location? WHAT DOES INITIALIZING WITH A BYTE VALUE MEAN ? I am all confused? I ...
0
votes
0answers
73 views

What is Interruptible-restartable instructions in ARM Cortex M0+?

I am currently reading ARM Cortex M0+ User Guide on ARM website shown below http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0662b/CHDBIBGJ.html In User Manual, following paragraph is ...
1
vote
2answers
156 views

Wrong frequency with Timer1 on Atmega328p in CTC Mode

I want to make a LED blink at a frequency of 0.5 Hz. So, I use an Atmega328p, clocked at 16 MHz, and the Timer1 in CTC mode, which triggers an interrupt every milisecond. Yet, my program, in Atmel ...