You are on page 1of 2

Errata Sheet for Title: The 8051 Microcontroller based Embedded Systems

The following corrections are applicable only to the copies of first print of the book. These corrections are incorporated in the subsequent reprints of the book.

Page Error Correction 174 Fig.11.1 Pin 1 to 8: labeled as P0.0 to P0.7 Consider pin 1 to 8 as P1.0 to P1.7
188 Example 12.5 , statement in third line missing Insert instruction “SFR P3=0xB0” just
12 Fig.1.11 (Lower middle part)
below statement
“#define InPUT_SWITCH P2;”
218 Fig. 13.4 (Lower right part)
Do not consider word “off”
20 Fig. 2.1 (Upper part)

219 Figure 13.6 (Middle part and right part)


Consider encircled part as
26, 28 Fig 2.3 and 2.4(Lower right part) “Port 0.X”
Bit address after ‘0F’ is printed as ‘18’ Consider highlighted value as “10”
32 Answer of objective question 24 is given as (c) Correct answer is “(b)” 220 Fig.13.8 (Lower right part)
48 Fig.3.7 (Left middle part) Do not consider letter “1”
MOV B,A // save result
ADD A,R3 // A= A+R3
222 Example 13.4 (fourth line of C program)
MOV 50H,A // save result
th P2=0xFF; P1=0xFF;
56 Table 4.2 (8 Row, last column):
227 Objective question 3, symbols തതതതതത
WR is missing Consider symbols തതതതതത തതതതത at
WR and RD
MOV A, #3DQ MOV A, #3DH
after word “function as”. Objective que. 4, respective places.
-Last Row, Last column:
symbol തതതത
RD is missing after “function as”
MOV A, #F4 MOV A, #0F4H
228 Answers for objective questions 11 and 12 are 11. (a) 12.(a)
80 2nd last line: .. 6AH(0101 0116)…EA 56H (0101 0110b) …. D6
missing
81 b (i) and c: Last lines: …. -150 -170
229 Review question 12.
82 First line: …111100 0111B =C7H 1100 0011 =C3H
ORL 80,#01H ORL 80H,#01H
Think box 5.3: ..1011(12) 1011 (11)
244 Fig. 14.10 (Right part)
83 Example 5.21 (Last part)
Consider encircled part as “THX”
B3 B3
+ 6 + 6 (“6” is below “B”)
97 Review question 5 279 2nd last line: …. TMOD… Consider highlighted part as “TH1”
ADD A, #20H ADD A, #28H
120 Example 7.7 (iii) third line of program 297 Example 16.3: 11th line of program.
// loop counter R3=10 // loop counter R3=00 TH0=0xCE; Consider highlighted part as “TH1”
125 First line:MOV A,#50H MOV A,#30H (results in subroutine are 298 CLR TF0 //… Delete this instruction
given for first number -30H only) 300 TF0 =0; Delete this statement
126 MOV 10H,#50H (4th line of program) MOV 10H,#50H results in subroutine are
302 Example 16.8: 13th line of program.
MOV A. #85H (6th line of program) MOV 10H, #85H for first number-30H
IE=0x86; // enable timer 0 and timer 1 IE=0x82; // enable timer 0 interrupt
135 Equation: x4+2x3+x2+1 x4+2x3+x2+x interrupts
154 Example 9.21 (Figure) 318 Objective que. 3(c) …… INT1 Consider highlighted part as “INT0”
334 Equation: 5VF 5 – VF
358 Figure 19.1 pins 12 to 18 are marked as “D7” Consider pin 12 as D6, pin 13 as D5,… pin 449 5th line of topic 21.11.7: DS12877 Consider highlighted part as “DS12887”
18 as D0
363,364 In a function: ‘unsigned char result;’ missing, replace ‘i’ with ‘j’ and ‘dealy’ with ‘delay’ 450 Objective question 9: (d) both (a) and (c) (d) both (a) and (b)
369 Instruction “RET” is missing at the end of subroutine “wait” (Example 19.9) 472 Figure 22.26 (Left middle part)
386 Figure 19.16 (Left part)
Consider encircled part as “+5V”

502 Answer of objective question 5 is given as (b) Correct answer is “(c)”


504 4th line of “signed addition” …MOV R0,32H Consider highlighted part as “#32H”
387 4th line of program: LCALL COMPARE LCALL COMPARISON 508 CPL bit instruction:
394 Objective question 4, 2nd line:… (bit=0) തതത)
(bit=bit
(c) 1/(2N-1) (d) 2N-1 (c) 1/(2N-1) (d) 2N-1 4th line:.. // C=0 // C=Cഥ
394 Answer of objective question 8. (c) and 14. 8. (a) 14.(c) 5th line: …// bit=0 തതത
// bit=bit
(a),(c) 10th line: CPL P1.0 // P1.0=0 CPL P1.1 // P1.1=1
408 // full-step sequence (1st line) // wave drive sequence 512 JBC instruction, Example 2nd line:
// full-step sequence, array… (19th line) // half-step sequence JBC ACC.2,AHEAD JBC ACC.0,AHEAD
411 A=1 and B=0,.. A=0 and B=1 Exchange these two statements 514 JZ rel Instruction ii)…. JNZ AHEAD JZ AHEAD
415 Exahange SETB with CLR and vice versa (Ex 20.11), Exchange 0 with 1 and vice versa 516 17th line: …// (R1)= (30H)=20H // (R1)=(50H)=(30H)=20H
(Ex.20.12) 520 RETI instruction,Example:
421 Third line of program “CLR 3.7”, instruction Consider highlighted part as P3.7 and insert RE1st Proof_Bharti ComposersTI.. RETI
“SJMP REPEAT” is missing below above “SJMP REPEAT” in fourth line 522 9th line: … // C=0 C=1
Instruction 524 XRL instruction: last two lines of example:
432 Third last line “…7FFFFH” Consider highlighted part as “7FFFH” MOV A,#0FH MOV A,#0FFH
441 th
Example 21.14: 9 line of program. … // (10H)=72H EX-OR 0FH=8CH … // (10H)=72H EX-OR FFH=8DH
MOVX @R0,A MOV @R0,A 540 Last line of topmost box:
() : Contents OK () : Contents of
442 Fig. 21.17 (top part): DS12877 Consider highlighted part as “DS12887” Page179(Fig11.8), 316(Fig.16.13), 329 (Fig.17.8),
335(Fig.18.2), 344(Fig18.10), 351(Fig18.12), Value of capacitors connected to “XTAL1”
443 Fig. 21.18 (top right part), third last line: Consider highlighted part as “DS12887” 368(Fig.19.7), 375(Fig19.8), 379(Fig19.11), and “XTAL2” pins should be considered
DS12877 386(Fig.19.16), 390(Fig.19.18), 417(Fig.20.17), as“30pF”
448 Fig. 21.19(top right part), 4th line of solution of Consider highlighted part as “DS12887” 443(Fig21.18), 467 (Fig.22.12), 474(Fig.22.17),
Example 21.19: DS12877 478(Fig.22.19)
Figure title of Fig.21.19: SD12887 Value of capacitors connected to “XTAL1” and
“XTAL2” pins are printed as “30µF”

Note: Some other formatting mistakes and a few minor corrections in the comments of the programs are not given here. They are all corrected in next reprints of the book. Readers are requested to point out other
errors and send them to me at: manishpatel_79@yahoo.com. -Manish K Patel

You might also like