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)

-2
votes
0answers
36 views

Independant Contractor Electro-mechanical assembly charges [closed]

I have the need for a higher-level assembly technician that can build brackets, standoffs, and cabinet hardware as well as make and solder wire harnesses to boards and connectors. What is the hourly ...
3
votes
1answer
60 views

PIC interrupt based soft UART timing trouble

I've tried to implement a software UART on a PIC18F452 using TIMER0 interrupts and I can't get the timing working. I'm using MPLAB ASM for compilation and the PICkit2 for programming. ...
-8
votes
0answers
41 views

Assembly language programme Intrupts, INT 21H and INT 10H [closed]

Write a programme (assembly language 8086) that it will read some numbers from the keyboard, if we input a random number then corresponding message should be the output The messages are If the number ...
4
votes
1answer
141 views

Atmel AVR assembly language multiplying by 2

I'm trying to multiply a 32-bit unsigned number by 2 across registers r18, 19, 20 and ...
0
votes
0answers
25 views

Habing trouble booting code on an embedded SoC

I recently bought a freescale i.mx233 based OLinuXino-MICRO board to mess around with and give me some more power than the AVR uC's I've been doing abit with lately. However I'm having trouble getting ...
4
votes
3answers
138 views

Difference between reading PORT and PIN

What is the difference between reading PORTA and PINA? What is the relation between a port and its pins?I'm really confused!!! sample of reading PORT:(reading pin is not useful here) Assembly f=1MHZ ...
-3
votes
1answer
100 views

Is there a non-gas assembler for AVR for Linux? [closed]

I need to do an entire project in mostly-time critical code. Using assembly seems like a good idea. I've seen quite a few example assembly files and such which have an "Intel" feel to them. I know ...
2
votes
2answers
102 views

How can I control 8 LEDs with a timing delay with only one microcontroller (PIC12) written in Assembly?

I can have 5 I/O pins enabled. I'm just confused on how to control them individually.
-7
votes
0answers
43 views

Reference for talking cash register [closed]

I have read your Timer.asm code for the nus module ee3208 however there are some parts of the code that I do not understand such as Enable serial interrupts ...
0
votes
0answers
48 views

Interfacing with ROM chip(C, ASM, & Timing Diagrams)

I am attempting to interface with the following ROM chip via my mc9s12 microcontroller: http://www.alldatasheet.com/datasheet-pdf/pdf/55460/AMD/AM29F040B.html I have several functions written in C, ...
0
votes
1answer
66 views

How does the Store Word(SW) and Load Word(LW) instructions work, MIPS

The SW and LW instructions are defined as: ...
0
votes
1answer
83 views

Seeing how Instructions get Translated (Computer Architecture) [closed]

Little bit of a confusing question, also an x-post (Since it may be more suited here than SO). But anyways Im really looking for learning some low level programming. Thing is, Dev boards like ...
0
votes
1answer
65 views

Converting AVR assembly to machine code - addressing registers?

In AVR Assembly - I want to work out the machine code representation of the following: ANDI r18,$10 I know the opcode for ANDI is ...
0
votes
1answer
62 views

AVR programming and corresponding machine code

This is a question on a hand out, it asks: What is the machine code that corresponds to the AVR Assembly Language Instruction inc r22? Enter your answer as a 16 ...
4
votes
1answer
96 views

AVR assembly: Most fastest way to increment two combined bytes

What could be the fastest way to increment two combined bytes in assembler (assuming I'm working on a 8-bit CPU)? Currently I'm doing this: ...
0
votes
1answer
89 views

Writing a method using MIPS code

I am trying to understand how convert C code to MIPS code and I have having trouble understanding why the stack pointer( $sp ) needs to be manipulated before and after the procedural code.Isn't the ...
2
votes
1answer
80 views

PIC18 - problems getting inline assembler routine to work

(EDIT: Added C18 disassembly code) I need to optimize a function written in C for a PIC18f4585. I am using C18 to compile. The function I am trying to re-write in assembly is: ...
3
votes
1answer
153 views

What PIC processor was this HEX-file meant for?

I have this .hex file: ...
2
votes
2answers
122 views

Arduino linking assembler funtions

I would like to use (link) a function written in assembler in an Arduino project. What I want to do is: write the function in assembler using avr-gcc calling conventions declare the function as ...
2
votes
4answers
246 views

AVR Assembly on Arduino through USB?

Say I wanted to learn AVR ASM, and I had an arduino. Now i know you can program assembly on the arduino, but is there a way to do it through USB. I assume i'd just write normal assembly and do it ...
9
votes
1answer
185 views

What features distinguishes a real-time core from other types of os?

I'm experimenting with a small so-called real-time core that basically can do nothing but counting to the next prime. It uses interrupt-driven I/O. But why is it a real-time core? I read that Linux ...
2
votes
0answers
293 views

Need help with PIC16F887 PWM output

I am trying to get the PWM subsystem on a PIC16F887 working. I've gone over this several times and just cant seem to find my problem. This is part of a larger program, but for simplicity I re-wrote ...
7
votes
2answers
162 views

Need some help understanding PIC memory map

Some background. I use MPLABx with a PicKit2 to program different types of pics. At the moment its the 16F887. I try to stick to the Hi-Tech PICC Lite tool chain but I'm growing increasingly unhappy ...
0
votes
1answer
195 views

Problem Controlling Digital Potentiometer with Micro

I am trying to control a digital potentiometer with a PIC18F14K50 and am having a random problem (potentiometer not remembering correct value) when I power off then back on. The X9313 datasheet states ...
10
votes
5answers
559 views

How do I solder headers so that they always stand straight up?

When soldering headers, usually single and double pins, I flip the board over so the pin rests on the surface and then solder them. They never come out straight. It would be great if someone figured ...
11
votes
5answers
435 views

Conductive object to raise 6mm height off PCB

I am designing a PCB where I expect to have a certain part assembled at the edge of each board (blue in the picture below). However, this part needs to be at connected/soldered at a height of about 6 ...
1
vote
2answers
301 views

How do I call a C function in another module from inline assembler in IAR EWARM?

I don't know if this is recommended or not but I am sure someone will give me a stern warning if not. I have posted a duplicate question in stackoverflow, however this may be just as appropriate here ...
2
votes
1answer
274 views

c18 assembly inside function problem. unidentified label (bit names)

Here is the data_write function I'm looking at. I've been told that this method (from the textbook) is not good and I should be using the C method (that is currently commented out). When the Cbits ...
2
votes
1answer
190 views

DECFSZ won't work on PIC16LF1823

I have a problem while trying to do a Delay on a PIC16LF1823. My program tries to toggle some bits on PORTC for 30ms. I did a simple Delay based on the decrement of a variable; however, each time the ...
4
votes
4answers
405 views

Assembly Language Program Design

This is a homework assignment problem and I tried to solve this all last night but I am still a newbie in Assembly language. Dont give me the full solution, just give me a hint. Design an ARM ...
7
votes
3answers
415 views

Can a hobbyist ARM setup be as simple as this AVR one?

I like how simple an Atmel AVR setup can be for hobbyist assembly language programming. For example: Put a plain ATmega DIP chip {A} on a breadboard Connect 6 pins to a USB programmer {B} connected ...
3
votes
3answers
593 views

PIC12F1822 program counter jumping around during debug and release programming

I am having the most awful trouble getting things up and running with my PIC12F1822. I'm using MPLAB 8.86, an ICD3 and have the chip, in a DIP package set up in a breadboard on my desk. As far as I ...
2
votes
1answer
176 views

Join together two flexible electrical cables

I have 2 electrical cables (audio cables) of same diameter that I want to join, with a connection as discreet as possible. It is common to use some dominos for this kind of task, but these are really ...
5
votes
2answers
213 views

How can I instruct my compiler to use 8 bit bytes instead of 16 bit integers?

I have the following code in my microcontroler program: ...
7
votes
1answer
185 views

While loop optimized away

I have the following code in my microcontroler program: // Wait for ADC conversion to complete while ( ( ADCSRA && _BS( ADSC ) ) == _BS( ADSC ) ) {} ...
1
vote
2answers
206 views

Only beta simulator and beta MPASM assembler for 16F1503

My previous question makes me wonder whether it is even possible to develop with beta simulator and beta MPASM assembler support for 16F1503 (yellow dots): If I can't expect workign end product, ...
2
votes
1answer
384 views

PIC 16F1503 - change the frequency of internal oscillator

My configuration bits are as follows: ...
6
votes
6answers
1k views

What is the reason my PIC16 multitasking RTOS kernel doesn't work?

I am trying to create a semi-pre-emptive (co-operative) RTOS for PIC x16 microcontrollers. In my previous question, I've learnt that accessing hardware stack pointer is not possible in these cores. I ...
3
votes
2answers
811 views

Error when compiling start-up file on STM32

I am attempting to provide custom interrupt handlers for my Cortex M3 (reference manual here). ST kindly provides a standard library, which has various startup files all called "startup_stm32f2xx.s". ...
0
votes
1answer
368 views

Microprocessors production processes - step by step. How microchips are made? [duplicate]

Possible Duplicate: Could You recommend books, that describes in most comprehensive ways topics about microprocessors design and manufacturing? I'd like to know, how the microprocessors are ...
5
votes
5answers
2k views

How can I set the condition code in assembly language?

I want test the variable sign. In other words, I want know answer to the whether a variable is positive or negative. How can I write following if-then-else conditions in assembly language ? ...
3
votes
1answer
708 views

MIPS (PIC32): branch vs. branch likely

It's been a while since I've looked at the recent Microchip processors & I've been trying to learn a little bit about the PIC32 MIPS instruction set. I noticed there are two sets of branch ...
1
vote
2answers
405 views

PIC assembly code simplify

I need to convert the following PIC assembly code (below) to an 8051 assembly. It is an inline assembly code. Actually, I intend to convert it to C. I am not familiar with the PIC MCU so I do not ...
0
votes
1answer
578 views

How is a two-pass assembler designed? [closed]

What is the algorithm for the first pass and the second pass of an assembler? I have been looking for a description or tutorial but haven't found one. If there are tutorials that explain these ...
2
votes
2answers
160 views

How are cpus enumerated/identified/counted by BIOS and other low-level routines?

By what mechanism is a BIOS or a kernel able to "see" (enumerate,identify,whatever term is right) other CPUs in an SMP system? How is the boot CPU able to initialise and then "launch" the second or ...
-1
votes
2answers
1k views

Creating 1 hour delay with 89C51 micro controller

I am writing an Assembly Program function for 89C51 which can create one hour delay. I can't use any other micro controller as only 89c51/52 is available locally. So I am stuck here because even when ...
-2
votes
1answer
199 views

Assembly Packed Bcd

I was trying to make a subroutine called count that will count the number of occurences of the string ‘hello’ in the 64 KB external memory with 8051 microprocessor. What i wanted to make is that ...
1
vote
1answer
316 views

MIPS Main Control Logic

In the Patterson & Hennessy book, This is for these 4 instructions, if I need to implement instructions like andi, addi, ori, j, etc, do I add on to this table? Or do I do something else? ...
4
votes
1answer
760 views

MIPS Assembly Memory Addressing “Pseudo Direct Addressing”

Could anyone explain how does Pseudo Direct Addressing work in MIPS? I don't really get how does using the last 4 bits from the PC (Program Counter) fit into the picture? Suppose I want to goto ...

1 2