Front cover image for The 8051 microcontroller and embedded systems

The 8051 microcontroller and embedded systems

Preface Introduction The Classical Period: Nineteenth Century SociologyAuguste Comte (1798-1857) on Women in Positivist SocietyHarriett Martineau (1802-1876) on American WomenBebel, August (1840-1913) on Women and SocialismEmile Durkheim (1858-1917) on the Division of Labor and Interests in MarriageHerbert Spencer (1820-1903) on the Rights and Status of WomenLester Frank Ward (1841-1913) on the Condition of WomenAnna Julia Cooper (1858-1964) on the Voices of WomenThorstein Veblen (1857-1929) on Dress as Pecuniary Culture The Progressive Era: Early Twentieth Century SociologyGeorg Simmel (1858-
eBook, English, 2014
2nd ed., Pearson new International ed View all formats and editions
Pearson, Harlow, United Kingdom, 2014
1 online resource (640 pages)
9781292038957, 1292038950
1002640552
CHAPTER 0: INTRODUCTION TO COMPUTING 1 Section 0.1: Numbering and coding systems 2 Section 0.2: Digital primer 9 Section 0.3: Inside the computer 13 CHAPTER 1: THE 8051 MICROCONTROLLERS 23 Section 1.1: Microcontrollers and embedded processors 24 Section 1.2: Overview of the 8051 family 28 CHAPTER 2: 8051 ASSEMBLY LANGUAGE PROGRAMMING 37 Section 2.1: Inside the 8051 38 Section 2.2: Introduction to 8051 Assembly programming 41 Section 2.3: Assembling and running an 8051 program 44 Section 2.4: The program counter and ROM space in the 8051 46 Section 2.5: 8051 data types and directives 49 Section 2.6: 8051 flag bits and the PSW register 52 Section 2.7: 8051 register banks and stack 55 CHAPTER 3: JUMP, LOOP, AND CALL INSTRUCTIONS 69 Section 3.1: Loop and jump instructions 70 Section 3.2: Call instructions 75 Section 3.3: Time delay for various 8051 chips 80 CHAPTER 4: I/OPORT PROGRAMMING 93 Section 4.1: 8051 I/O programming 94 Section 4.2: I/O bit manipulation programming 100 CHAPTER 5: 8051 ADDRESSING MODES 109 Section 5.1: Immediate and register addressing modes 110 Section 5.2: Accessing memory using various addressing modes 112 Section 5.3: Bit addresses for I/O and RAM 122 Section 5.4: Extra 128-byte on-chip RAM in 8052 131 CHAPTER 6: ARITHMETIC & LOGIC INSTRUCTIONS AND PROGRAMS 139 Section 6.1: Arithmetic instructions 140 Section 6.2: Signed number concepts and arithmetic operations 150 Section 6.3: Logic and compare instructions 155 Section 6.4: Rotate instruction and data serialization 161 Section 6.5: BCD, ASCII, and other application programs 167 CHAPTER 7: 8051 PROGRAMMING IN C 181 Section 7.1: Data types and time delay in 8051 C 182 Section 7.2: I/O programming in 8051 C 188 Section 7.3: Logic operations in 8051 C 194 Section 7.4: Data conversion programs in 8051 C 199 Section 7.5: Accessing code ROM space in 8051 C 204 Section 7.6: Data serialization using 8051 C 209 CHAPTER 8: 8051 HARDWARE CONNECTION AND INTEL HEX FILE 217 Section 8.1: Pin description of the 8051 218 Section 8.2: Design and test of DS89C4x0 trainer 224 Section 8.3: Explaining the Intel hex file 232 CHAPTER 9: 8051 TIMER PROGRAMMING IN ASSEMBLY AND C 239 Section 9.1: Programming 8051 timers 240 Section 9.2: Counter programming 255 Section 9.3: Programming timers 0 and 1 in 8051 C 260 CHAPTER 10: 8051 SERIAL PORT PROGRAMMING IN ASSEMBLY AND C 277 Section 10.1: Basics of serial communication 278 Section 10.2: 8051 connection to RS232 285 Section 10.3: 8051 serial port programming in Assembly 287 Section 10.4: Programming the second serial port 300 Section 10.5: Serial port programming in C 306 CHAPTER 11: INTERRUPTS PROGRAMMING IN ASSEMBLY AND C 317 Section 11.1: 8051 interrupts 318 Section 11.2: Programming timer interrupts 322 Section 11.3: Programming external hardware interrupts 326 Section 11.4: Programming the serial communication interrupt 333 Section 11.5: Interrupt priority in the 8051/52 337 Section 11.6: Interrupt programming in C 340 CHAPTER 12: LCD AND KEYBOARD INTERFACING 351 Section 12.1: LCD interfacing 352 Section 12.2: Keyboard interfacing 363 CHAPTER 13: ADC, DAC, AND SENSOR INTERFACING 373 Section 13.1: Parallel and serial ADC 374 Section 13.2: DAC interfacing 398 Section 13.3: Sensor interfacing and signal conditioning 403 CHAPTER 14: 8051 INTERFACING TO EXTERNAL MEMORY 411 Section 14.1: Semiconductor memory 412 Section 14.2: