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)

-7
votes
0answers
60 views

How would you power on an undocumented CPU (Core) [closed]

Hello we are of need of some help possibly assembly instructions or program on how to go about powering on and make active a undocumented core or at least make attempt(s) via assembly language script ...
-5
votes
0answers
82 views

Help with writing code to activate a CPU (Core) on Windows 7/8.1 [closed]

Hello would it be possible to activate Would anyone be able to help with writing code on Windows that can activate and power on a CPU (core) ? I want to know if this can be done directly via ...
-4
votes
3answers
100 views

why don't use microcode? [closed]

Why don't programmers write applications in microcode? Is it because microcode is hard to understand and write or mostly processors ain't microcode compatible? I want the reason
-3
votes
3answers
62 views

How do conditions work in a computer? [closed]

I want to know how a computer knows if a condition is true or false. For example, in assembly the instuctions SUB EAX, EBX JNZ not_equal will check if the ...
0
votes
0answers
32 views

branching beyond 256MB MIPS

I have a PIC32 assembly program in Flash program memory main: 0x9D000000 and I would like to jump to execute 0xA0002000 in program RAM. As this is beyond 256 MB, it cannot be done (the first 4 msb ...
0
votes
2answers
128 views

Moving from assembly to C [closed]

About four years ago i stumbled upon some electronics projects on the internet and ever since i fell in love with it. So I started at basic circuits then moved to analog circuits and spent very little ...
-2
votes
2answers
75 views

Using 7-Segment Display on pic18f

I want to show a decimal number between 0-99 on 7-segment display by using 2 push buttons. These buttons will be used for incrementing and decrementing the number on display. I'm using pic18f assembly ...
0
votes
2answers
63 views

Fill ROM with jump instructions

As I have heard it is a common practice to fill the unused flash memory of a microcontroller with an jump instruction to the reset function. This aids in resetting the MCU in case of the PC is ...
1
vote
1answer
123 views

Proper way to wait N cycles in ARM Cortex-M4

After enabling a clock for a certain port you have to wait 4 cycles for the clock to finish initializing. How can one wait for N cycles the proper way? In my code I used this: ...
0
votes
1answer
53 views

Atmega8 cbi/sbi Timing Issue

I seem to be having a weird issue regarding cbi/sbi instructions on Atmega8-16AU. I have it connected to an external 16Mhz crystal. I am able to verify that it is running at 16Mhz by using ...
0
votes
1answer
28 views

Do I need to use the 'add' function in mips to store into a variable or can I store into a variable with load word?

The following problems deal with translating from C to MIPS. Assume that the variables f,g,h,i, and j are assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address ...
0
votes
2answers
92 views

BGA vs SMD assembly costs

I know that assembly costs for a BGA package can run into about 200-300USD for prototypes. But how important is this cost when planning a production run? Is every BGA package soldered onto the PCB ...
0
votes
1answer
41 views

Values instead of designators on assembly drawing

While creating new Altium component for our company's library I started to wonder: why one would place a designator on an assembly drawing instead of value of a component? Wouldn't it be easier to ...
1
vote
3answers
117 views

How to make a zeros and ones counter?

I'm trying to write a zeros and ones counter in assembly with the AVR ATmega328P. To choose between the ones and zeros, I have a switch in PC5. For the input there are 8 switches connected to PORTB ...
0
votes
0answers
58 views

Keil skip or steps over a statement while doing 8051 assembly language programming

I am writing a simple program to recieve values serially from PC to 8051 microcontroller. So here is the program ...
1
vote
1answer
44 views

Resolving interrupt-on-change mismatch conditions in a PIC16F877

I am using pic16f887 to quickly simulate encoder to later use it in a bigger project. reading signals from A and B encoder using interrupt on change for portb and the program was : ...
0
votes
1answer
45 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
210 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
41 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
58 views

ATmega328P assembler inline text and assembelr ALIGN

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

ATMEGA32 LED BLINKER Assembly code problem

I tried the following code for a simple led blinking problem on ATMega32. ...
0
votes
1answer
57 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
429 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 ...
-2
votes
1answer
126 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
58 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 ...
1
vote
2answers
59 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
593 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
96 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
195 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
96 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
77 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
66 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
51 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
53 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
69 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
286 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
150 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
163 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
59 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
277 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
196 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
92 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
49 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
43 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
2answers
44 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
793 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
71 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
120 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 ...
0
votes
0answers
70 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
202 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 : ...