Danh mục

Sách Học Vi Xử Lý Cực Hay Cho Người Bắt Đầu Học

Số trang: 617      Loại file: pdf      Dung lượng: 3.35 MB      Lượt xem: 12      Lượt tải: 0    
tailieu_vip

Hỗ trợ phí lưu trữ khi tải xuống: 1,000 VND Tải xuống file đầy đủ (617 trang) 0
Xem trước 10 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

NỘI DUNG Giới thiệu cho máy tính vi điều khiển 8051 hội Hướng dẫn Ngôn ngữ Chi nhánh lập trình I / O Port Lập trình 8051 Giải quyết chế độ số học logic Hướng dẫn Chương Trình 8051 Lập trình C 8051 kết nối phần cứng và File Hex 8051 Timer / Lập trình truy cập trong hội và lập trình C 8051 Serial Port Ngắt hội và C lập trình trong hội và Giao diện C 8051 Bộ nhớ ngoài 8051 Real World Giao diện I: LCD, ADC và cảm biến màn hình LCD và bàn phím interfacing...
Nội dung trích xuất từ tài liệu:
Sách Học Vi Xử Lý Cực Hay Cho Người Bắt Đầu Học The 8051 Microcontroller and Embedded Systems Using Assembly and C Second Edition Muhammad Ali Mazidi Janice Gillispie Mazidi Rolin D. McKinlayCONTENTS Introduction to Computing The 8051 Microcontrollers 8051 Assembly Language Programming Branch Instructions I/O Port Programming 8051 Addressing Modes Arithmetic & Logic Instructions And Programs 8051 Programming in C 8051 Hardware Connection and Hex File 8051 Timer/Counter Programming in Assembly and C 8051 Serial Port Programming in Assembly and C Interrupts Programming in Assembly and C 8051 Interfacing to External Memory 8051 Real World Interfacing I: LCD,ADC AND SENSORS LCD and Keyboard Interfacing 8051 Interfacing with 8255 INTRODUCTION TO COMPUTING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平Home Automation, Networking, and Entertainment LabDept. of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN Numbering and coding systemsOUTLINES Digital primer Inside the computer Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 2 Human beings use base 10 (decimal)NUMBERING arithmeticAND CODING There are 10 distinct symbols, 0, 1, 2, …, SYSTEMS 9 Computers use base 2 (binary) system Decimal andBinary Number There are only 0 and 1 Systems These two binary digits are commonly referred to as bits Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 3 Divide the decimal number by 2NUMBERING repeatedlyAND CODING Keep track of the remainders SYSTEMS Continue this process until the quotient Converting becomes zerofrom Decimal Write the remainders in reverse order to Binary to obtain the binary number Ex. Convert 2510 to binary Quotient Remainder 25/2 = 12 1 LSB (least significant bit) 12/2 = 6 0 6/2 = 3 0 3/2 = 1 1 1/2 = 0 1 MSB (most significant bit) Therefore 2510 = 110012 Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 4 Know the weight of each bit in a binary numberNUMBERINGAND CODING Add them together to get its decimal SYSTEMS equivalent Converting Ex. Convert 110012 to decimalfrom Binary to Weight: 24 23 22 21 20 Decimal Digits: 1 1 0 0 1 Sum: 16 + 8+ 0+ 0+ 1 = 2510 Use the concept of weight to convert a decimal number to a binary directly Ex. Convert 3910 to binary 32 + 0 + 0 + 4 + 2 + 1 = 39 Therefore, 3910 = 1001112 Department of Computer Science and Information Engineering HANEL National Cheng Kung University, TAIWAN 5 Base 16, theNUMBERING hexadecimal system, Decimal Binary HexAND CODING is used as a 0 0000 0 SYSTEMS 1 0001 1 convenient 2 0010 2 representation ofHexadecimal 3 0011 3 4 0100 4 System binary numbers 5 0101 5 ex. 6 0110 6 7 0111 7 It is much easier to 8 1000 8 represent a string of 0s 9 1001 9 and 1s such as 10 1010 A 100010010110 as its 11 1 ...

Tài liệu được xem nhiều: