Skip to main content

New answers tagged

1 vote

Registers in 8051 microcontroller

The 8051 was designed the particular way it was to support multi-threaded programming ... in a day and age before "threads" were in most peoples' vocabulary. The 8051 references didn't ...
NinjaDarth's user avatar
0 votes

How can ADD be a 1 byte instruction?

It's easier on the CPU designer, the ones tasked with explaining the 8051/8052, the learner, and the authors of support tools like compilers, assemblers, simulators and reverse-assemblers to make the ...
NinjaDarth's user avatar
0 votes

Number of iterations in nested loop (8051)

Write: MOV R5, #4 ;; a H2: MOV R6, #10 ;; b H1: DJNZ R6, H1 ;; c DJNZ R5, H2 ;; d The effect is similar to ...
NinjaDarth's user avatar
1 vote

How can I achieve a third interrupt priority level on 8052?

There is no solution that does not also respect the following constraints. First, no matter how you set up the prioritization scheme, the only way for an interrupt to be able to directly pre-empt an ...
NinjaDarth's user avatar
0 votes

wake up 8052 using external interupt : problems

First, the "PD" bit (PCON.1) is for the "Power Down" mode, in versions of the 8051 that have PD, and the only way you get out of the "Power Down" mode is - as you said - ...
NinjaDarth's user avatar
0 votes

8051 interrupt within interrupt high vs low priority

Your first characterization is a special case of your second characterization where the routine for the low-priority interrupt that happens "at the same time" is interrupted by the routine ...
NinjaDarth's user avatar
0 votes

Why is this 8051 ASM code not working?

I can't see what it is you're trying to do. In particular, the actions on "r1", "r2" and "r6" make no sense and you're using "a" superfluously. In the second, ...
NinjaDarth's user avatar

Top 50 recent answers are included