8051 Questions
1
My problem is that I don't know how to handle the addition when it gets out of the 8-Bit range.
My program runs with small Hex numbers like #02h + #05h but not with higher numbers like #0A9H + #0B5...
2
Solved
how to enable external interrupt of 8051?
1
Solved
Almost all the simple 8051 programs I have seen so far ends with the code
LOOP: SJMP LOOP.
From my understanding I think the above instruction creates an infinite loop by calling the same instruc...
2
I'm hoping to optimise an implementation of SHA-1 for an 8-bit MCU (8051-based). The input data is only 8-bytes, so I wonder if something could be done to improve this macro:
#define S(x,n) ((x &l...
Myel asked 3/11, 2015 at 6:9
1
Solved
In pic microcontroller TRIS register determines whether port would act as input or output and PORT register would determine the content, what should be written (in case of output) or read (in case ...
Entail asked 15/12, 2014 at 7:19
2
If I ever want to create a finite state machine in 8051 assembly, I'll need an efficient equivalent of C switch() expression.
[for this question, let us disregard the fall-through behavior, both r...
11
Solved
I've inherited a 10K-line program written in 8051 assembly language that requires some changes. Unfortunately it's written in the finest traditions of spaghetti code. The program--written as a sing...
Limitative asked 11/6, 2009 at 20:48
5
Solved
I am new at embedded system programming. I am working on a device that uses an 8051 chipset. I have noticed in the sample programs that when defining variables, sometimes they use the keyword xdata...
Collar asked 11/1, 2010 at 18:23
11
Could someone please tell me if it's possible to burn an 8051 microcontroller with a C++ program?
I've tried searching about it online but can't seem to find out for sure if it's possible or not.
...
Protestant asked 22/5, 2009 at 19:39
1
I am trying to use Xcode as an editor for microcontroller code. I want to use the Build, Run buttons. How can i use those to trigger a script that compiles the program ? I already have a script tha...
6
Solved
I've done some researching on bit addressable microcontrollers. The only one that came across in my path is the Intel MCS-51(wiki page) which is still used very commonly today... I was wondering if...
4
Solved
I see "printf" instruction in sample codes of c language for microcontroller particularly in 8051. Since microcontrollers has no fixed output display what is the use of the "printf" instruction?
Reincarnation asked 11/1, 2011 at 4:6
2
Solved
I'm writing a program for a 8051 microcontroller. In the first part of the program I do some calculations and based on the result, I either light the LED or not (using CLR P1.7, where P1.7 is the p...
Favata asked 9/6, 2010 at 15:53
6
Solved
7
Solved
If I have a int32 type integer in the 8-bit processor's memory, say, 8051, how could I identify the endianess of that integer? Is it compiler specific? I think this is important when sending multyb...
3
I'm supposed to write a program that will send some values to registers, then wait one second, then change the values. The thing is, I'm unable to find the instruction that will halt operations for...
Antebi asked 10/3, 2010 at 18:48
2
Solved
For learning purpose i intend to start building a 8051 microcontroller emulator. I am comfortable programming in C/C++/C#. This is no class project etc but a learning initiative from my side.
I di...
4
Solved
I am making an 8051 microcontroller communicate wirelessly with a computer. The microcontroller will send a string to its serial port (DB9) and the computer will receive this string and manipulate ...
Flummox asked 1/8, 2009 at 10:58
9
Solved
I'm working on a project on an 8051 where every byte counts. As such, I am using some global variables where I normally wouldn't. The normal method of passing pointers into a function adds too much...
Ramsdell asked 13/4, 2009 at 21:59
7
Solved
I need to optimize code to get room for some new code. I do not have the space for all the changes. I can not use code bank switching (80c31 with 64k).
Benzoate asked 2/12, 2008 at 21:35
1
© 2022 - 2024 — McMap. All rights reserved.