Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 12135

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

5
votes
To do this correctly for multiplying a 4-byte value by two you have to ensure that the low bit of the low byte gets a '0' shifted into it. In the AVR instruction set this can be achieved with the foll …
answered Apr 29 '18 by Michael Karas
4
votes
In the mode that you tried you are just dividing the byte value in each of the three registers by two. To get this to work for multiple bytes like r6:r5:r4 you need to code this in a way that propagat …
answered Apr 29 '18 by Michael Karas
0
votes
For sake of simplicity let us assume that the binary numbers are byte values (8-bits). To perform an AND/OR/XOR between two if these byte numbers means to apply each bit of the eight individually. Th …
answered Feb 9 '15 by Michael Karas
1
vote
Just use the I/O pin toggle as you surmised. Toggling an I/O pin in 8051 code takes a known number of cycles and that can be subtracted from what ever scope measurement that you make. If the duration …
answered Oct 25 '15 by Michael Karas
1
vote
???? ??? ??? ??? Just because you put an "end" statement in your assembly language source code means nothing to the run time 8051 core trying to fetch instructions. …
answered Aug 31 '17 by Michael Karas
3
votes
possible to compose a MOV instruction that can move data to one of the registers by using its corresponding internal RAM address. Some compilers or assembly language tool sets will create intrinsic …
answered Oct 30 '17 by Michael Karas
1
vote
The value of 0.506 Hz when you expected 0.500 Hz is off by a factor of 1.2%. You should check the accuracy of your 1 msec interrupt to see if it is off by 1.2% as well. If that is off it could be y …
answered Jun 11 '15 by Michael Karas
14
votes
Use an inverted brass flat head machine screw. These will solder easily and depending the mechanical strength you want the part can be selected from a range with various head sizes. Some possible c …
answered Oct 15 '12 by Michael Karas
2
votes
You store your numbers internally as binary or BCD and then convert that to ASCII at display time. BCD is easier to convert for display. For computations the binary representation is likely to be mor …
answered Nov 27 '15 by Michael Karas
1
vote
Another ideal solution to this problem is to use one of Microchip's Serial EEPROM parts that come with a unique identifier programmed into them. These devices are small footprint I2C devices that you …
answered Aug 25 '15 by Michael Karas