出版信息
•版 次:1
•頁 數:
•字 數:
•印刷時間:2017年12月01日
•開 本:16開
•紙 張:膠版紙
•包 裝:平裝-膠訂
•是否套裝:否
•國際標準書號ISBN:9787121329173
•所屬分類:圖書>計算機/網路>程式設計>其他
內容簡介
本書以89C51單片機為典型機,詳細介紹了MCS-51系列單片機的構成、工作原理、指令系統、彙編語言程式設計、中斷技術、定時/計數器、串列口通信等內容,並結合套用實際,系統地介紹了MCS-51系列單片機的擴展技術,其中包括存儲器擴展、I/O口擴展、顯示器與鍵盤接口、A/D及D/A接口技術等。
目錄
目 錄
第1 章緒論 ··········································· (1)
1.1 單片機技術的發展背景·················· (1)
1.2 單片機的組成······························ (2)
1.3 單片機的特點及套用····················· (3)
1.3.1 單片機的特點···················· (3)
1.3.2 單片機的套用···················· (4)
1.4 單片機的發展歷史························ (4)
1.5 單片機分類································· (5)
1.5.1 按單片機功能分類·············· (5)
1.5.2 MCS-51 系列單片機············ (6)
1.6 單片機發展趨勢··························· (7)
本章小結 ·········································(10)
習題 1 ·············································(10)
第 2 章單片機的結構及原理·····················(11)
2.1 80C51 單片機的基本結構··············(11)
2.1.1 80C51 單片機的組成··········(11)
2.1.2 80C51 單片機的存儲器·······(13)
2.2 並行I/O 口································(18)
2.2.1 P0 口······························(19)
2.2.2 P1 口······························(20)
2.2.3 P2 口······························(20)
2.2.4 P3 口······························(21)
2.3 時鐘電路與復位電路····················(21)
2.3.1 時鐘電路與時序················(21)
2.3.2 復位電路·························(23)
2.4 單片機的工作方式·······················(25)
2.4.1 復位方式·························(25)
2.4.2 程式執行方式···················(25)
2.4.3 節電工作方式···················(25)
2.4.4 編程和校驗方式················(26)
2.5 單片機的工作過程·······················(27)
2.6 AT89 系列單片機簡介··················(27)
本章小結 ·········································(29)
習題 2 ·············································(29)
第 3 章單片機的指令系統························(30)
3.1 指令系統簡介·····························(30)
3.2 定址方式···································(31)
3.3 數據傳送類指令··························(35)
3.3.1 內部RAM 傳送指令···········(36)
3.3.2 外部RAM 傳送指令···········(37)
3.3.3 數據交換類指令················(38)
3.3.4 查表指令·························(38)
3.3.5 堆疊操作指令···················(39)
3.4 算術運算類指令·························(40)
3.4.1 加法指令·························(40)
3.4.2 減法指令·························(43)
3.4.3 乘法指令·························(43)
3.4.4 除法指令·························(44)
3.5 邏輯運算類指令·························(44)
3.5.1 基本邏輯操作···················(44)
3.5.2 其他邏輯操作···················(46)
3.6 控制轉移類指令·························(47)
3.6.1 無條件轉移指令················(47)
3.6.2 條件轉移指令···················(50)
3.6.3 調用及返回指令················(51)
3.6.4 空操作指令······················(52)
3.7 位操作類指令····························(53)
3.7.1 位傳送指令······················(53)
3.7.2 位修改指令······················(53)
3.7.3 位邏輯操作指令················(53)
3.7.4 位判斷轉移類指令·············(54)
本章小結 ·········································(55)
習題 3·············································(55)
第 4 章 80C51 彙編語言程式設計··············(57)
4.1 概述········································(57)
4.1.1 程式設計語言···················(57)
4.1.2 彙編語言偽指令················(57)
4.1.3 程式彙編方法···················(60)
4.2 順序程式設計····························(62)
4.3 分支程式設計····························(64)
4.3.1 一般分支結構程式·············(65)
4.3.2 散轉程式設計···················(68)
4.4 循環程式設計····························(70)
4.4.1 循環程式結構···················(70)
4.4.2 循環程式實例···················(71)
4.5 查表程式設計····························(76)
·VI·
4.6 子程式設計與堆疊技術················(77)
4.6.1 子程式實例······················(78)
4.6.2 堆疊結構·························(81)
4.6.3 子程式結構······················(82)
4.6.4 代碼轉換程式···················(83)
4.6.5 算術運運算元程式················(85)
4.6.6 查找、排序程式················(89)
本章小結 ·········································(92)
習題 4 ·············································(92)
第 5 章中斷系統····································(97)
5.1 中斷系統概述····························(97)
5.1.1 中斷的概念······················(97)
5.1.2 中斷的特點······················(97)
5.1.3 中斷系統的功能················(98)
5.2 中斷源與中斷暫存器···················(99)
5.2.1 中斷源····························(99)
5.2.2 中斷暫存器···················· (100)
5.3 中斷處理過程·························· (102)
5.3.1 中斷回響······················· (102)
5.3.2 中斷處理······················· (103)
5.3.3 中斷返回······················· (104)
5.3.4 中斷回響時間················· (104)
5.4 中斷觸發方式·························· (104)
5.5 中斷源的擴展·························· (105)
5.5.1 定時器擴展中斷源··········· (105)
5.5.2 中斷查詢擴展················· (106)
5.6 中斷請求的撤除······················· (107)
5.6.1 撤除定時器中斷·············· (107)
5.6.2 撤除串列口中斷·············· (107)
5.6.3 撤除外部中斷················· (107)
5.7 中斷初始化····························· (108)
5.8 套用舉例···················