The 8051 Microcontroller and Embedded Systems Source Code -- 2nd Edition



Chapter 2
Example 2-2 Example 2-3
Example 2-4 Example 2-5
Example 2-6 Example 2-7
Example 2-8 Example 2-9
Example 2-10 Program 2-1


Chapter 3
Example 3-1 Example 3-3
Example 3-4 Example 3-5
Example 3-8 Example 3-12
Example 3-15 Example 3-16
Example 3-17 Example 3-20
Example 3-21 Example 3-22
Figure 3-1  


Chapter 4
Example 4-1 Example 4-2a
Example 4-2b Example 4-3
Example 4-4 Example 4-5
Example 4-6 Example 4-7


Chapter 5
Example 5-1a Example 5-1b
Example 5-2 Example 5-3a
Example 5-3b Example 5-3c
Example 5-4 Example 5-5
Example 5-6 Example 5-7a
Example 5-7b Example 5-8
Example 5-10 Example 5-13
Example 5-14 Example 5-15
Example 5-16 Example 5-17
Example 5-18 Example 5-19
Example 5-20 Example 5-21
Example 5-22 Example 5-23
Example 5-24 Example 5-25
Example 5-26 Example 5-27


Chapter 6
Binary-to-ASCII Conversion Program Checksum Program
Example 6-1 Example 6-2
Example 6-3 Example 6-4
Example 6-5 Example 6-6
Example 6-7 Example 6-8
Example 6-13 Example 6-14
Example 6-15 Example 6-16
Example 6-17 Example 6-18
Example 6-19 Example 6-21
Example 6-22 Example 6-23
Example 6-24 Example 6-25
Example 6-26 Example 6-27
Example 6-28 Example 6-29
Example 6-30 Example 6-31
Example 6-32 Example 6-33a
Example 6-33b Example 6-34
Example 6-35  


Chapter 7
Example 7-1 Example 7-2
Example 7-3 Example 7-4
Example 7-5 Example 7-6
Example 7-7 Example 7-8
Example 7-9 Example 7-10
Example 7-11 Example 7-12
Example 7-13 Example 7-14
Example 7-15 Example 7-16
Example 7-17 Example 7-18
Example 7-19 Example 7-20
Example 7-21 Example 7-22
Example 7-23 Example 7-24
Example 7-25 Example 7-27
Example 7-28 Example 7-29
Example 7-30 Example 7-31
Example 7-32 Example 7-33a
Example 7-33b Example 7-33c
Example 7-34 Example 7-35
Example 7-36 Example 7-37


Chapter 8
Trainer Test Program Trainer Test Program in C


Chapter 9
Example 9-4 Example 9-6
Example 9-7 Example 9-8
Example 9-9 Example 9-10
Example 9-11 Example 9-12
Example 9-13 Example 9-14
Example 9-15 Example 9-17
Example 9-18 Example 9-19
Example 9-20 Example 9-21a
Example 9-21b Example 9-22
Example 9-23 Example 9-24
Example 9-25 Example 9-26
Example 9-27 Example 9-28
Example 9-29  


Chapter 10
Example 10-2 Example 10-3
Example 10-5 Example 10-6
Example 10-9 Example 10-10
Example 10-11 Example 10-12
Example 10-13 Example 10-14
Example 10-15 Example 10-16
Example 10-17 Example 10-18
Example 10-19 Example 10-20
Example 10-21  


Chapter 11
Example 11-2 Example 11-3
Example 11-4 Example 11-5
Example 11-6 Example 11-8
Example 11-9 Example 11-10
Example 11-14 Example 11-15
Example 11-16 Example 11-17


Chapter 12
Example 12-1 Example 12-2
Example 12-4 Program 12-1
Program 12-2 Program 12-3
Program 12-4  


Chapter 13
Figure 13-15 Figure 13-15 in C
MAX1112 program MAX1112 program in C
Programming ADC0804 Programming ADC0804 in C
Programming ADC0808/0809 Programming ADC0808/0809 in C
Programming ADC0848 Programming ADC0848 in C
Programming DAC Programming DAC in C
Program 13-1 Program 13-2
Reading out digital data Reading out digital data in C


Chapter 14
Program 14-9 Program 14-10
Program 14-12 Program 14-15
Program 14-16 Program 14-17
Program 14-18 Program 14-19
Program 14-20 Program 14-21
Program 14-22  


Chapter 15
Example 15-2 Example 15-3
Example 15-4 Example 15-6
Example 15-7 Example 15-8
Figure 15-9 Figure 15-11
Program 15-1 Program 15-2


Chapter 16
Displaying date Displaying date in C
Displaying time Displaying time in C
Send HELLO to screen 8 sec past the minute using alarm IRQ
Sending HELLO to screen twice per second
Setting SQW Setting the date
Setting the time Setting time and date in C
Figure 16-2  


Chapter 17
Example 17-1 Example 17-3
Example 17-4 Example 17-5
Example 17-6 Example 17-7
Example 17-8 Example 17-9
Example 17-10 Figure 17-2
Stepper motor control with 8051 in C




The 8051 Microcontroller and Embedded Systems Source Code -- 1st Edition



Chapter 2
Program 2-1


Chapter 3
Example 3-10


Chapter 5
Example 5-5 Example 5-6
Example 5-7 Example 5-8


Chapter 6
Example 6-2 Example 6-3
Example 6-4 Example 6-6
Example 6-7 Example 6-8


Chapter 7
Example 7-14


Chapter 8
Example 8-11


Chapter 9
Example 9-4 Example 9-7
Example 9-8 Example 9-9
Example 9-10 Example 9-11
Example 9-12 Example 9-13
Example 9-14 Example 9-15
Example 9-17 Example 9-18
Example 9-19  


Chapter 10
Example 10-2 Example 10-3
Example 10-4 Example 10-5
Example 10-6  


Chapter 11
Example 11-2 Example 11-3
Example 11-4 Example 11-5
Example 11-6 Example 11-8
Example 11-9 Example 11-10


Chapter 12
Example 12-1
LCD code with busy flag check
LCD code with time delay check


Chapter 13
Program 13-1


Chapter 15
Program 51-1 Program 15-2