1 / 14

聲控鬧鐘專題製作報告 (8051)

聲控鬧鐘專題製作報告 (8051). 報告者:朱耿育 紀翔舜 組員:詹以群 張永傑 指導老師:梁新潁. 8051 定址模式. 直接定址 間接定址 暫存器定址 立即定址 索引定址. 8051 定址模式. 直接定址 所謂直接定址便是指令中直接寫入要運算的資料

viola
Download Presentation

聲控鬧鐘專題製作報告 (8051)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 聲控鬧鐘專題製作報告(8051) 報告者:朱耿育紀翔舜 組員:詹以群 張永傑 指導老師:梁新潁

  2. 8051定址模式 • 直接定址 • 間接定址 • 暫存器定址 • 立即定址 • 索引定址

  3. 8051定址模式 • 直接定址 所謂直接定址便是指令中直接寫入要運算的資料 (運算元)的位址如:MOV A, 38H -->將記憶體位址 38H的內容移入累積器

  4. 8051定址模式 • 間接定址 所謂間接定址指的是不直接在指令中指定運算元的 位址,而是利用暫存器存入運算元的位址,此暫存 器便是運算元位址的指標。如: MOV A,@R0 -->以暫存 器R0的內容作為記憶體位址, 然後將此一位址的內容移入累積器

  5. 8051定址模式 • 暫存器定址 8051內部有四個暫存器庫,每個暫存器庫有八個暫 存器,編號為R0~R7。假如在指令中運算元指定為 R0~R7就稱為暫存器定址。如: MOV A,R0 --> 將 暫存器R0的內容移入累積器

  6. 8051定址模式 • 立即定址 運算元的資料放在指令中的定址方式稱為立即定址, 但在資料之前必須有前置符號 # 如: MOV A,#10 --> 將10存入累積器中

  7. 8051定址模式 • 索引定址 所謂索引定址是將基底暫存器的內容,再加上索引 暫存器的內容所得的值作為運算元所在位址。 如:基底暫存器DPTR的內容是2000H而索引 暫存器A的內容06H下列指令可將位址為2006H的 程式記憶體之內容移入累積器中。 MOVC A,@A+DPRT

  8. 8051指令集 •  算術運算指令 •  邏輯運算指令 • 資料轉移指令 •  布林變數操作指令 • 程式分支指令

  9. 算術運算指令

  10. 邏輯運算指令

  11. 資料轉移指令

  12. 布林變數操作指令

  13. 程式分支指令

  14. The end

More Related