1 / 32

Chapter II : Keil μ Vision2 整合環境

Chapter II : Keil μ Vision2 整合環境. 晶 片 程 式 設 計 中華技術學院電子系. 1.1 Keil μ 功能介紹. Windows 作業系統下 , MCS_51 IDE 介面軟体 . IDE (Integrated Development Environment) (1) Edit (2) Compiler (3) Link (4) Debug (5) Simulation Programming : C51 Compiler : ANSI C 語言編譯器 , ANSI 標準程式庫

hank
Télécharger la présentation

Chapter II : Keil μ Vision2 整合環境

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. Chapter II : Keilμ Vision2 整合環境 晶 片 程 式 設 計 中華技術學院電子系

  2. 1.1 Keil μ功能介紹 • Windows作業系統下, MCS_51 IDE 介面軟体. IDE (Integrated Development Environment) (1) Edit (2) Compiler (3) Link (4) Debug (5) Simulation • Programming : • C51 Compiler : ANSI C 語言編譯器 , ANSI 標準程式庫 • A51 Macro Assembler : 8051 組合語言組譯器, 提供 LIB51 程式庫管理. • Debugger : 具有強大的除錯工具以及平行模擬系統. 中華技術學院電子系

  3. 1.1 Keil 功能介紹 中華技術學院電子系

  4. 1.2 Keil μ軟体安裝 • http://www.keil.com/demo/eval/c51.htm • ek51v701.exe (2k 試用版) • ISP-XP (XP,2000,NT) • AD2500 (X8051, LINK, LIB) 中華技術學院電子系

  5. 1.3  專案管理 • [Project] :新建專案必須設定 Target 的 Device , 選用晶片的公司與型號. • [View] : 專案視窗 Project Window {File}: 負責管理專案內的所有程式 (Target) -> (Group) -> (File) {Regs}: 提供晶片系統內部的狀態監控, 包括暫      存器, 以及I/0週邊狀態之監控 {Book}: 完整的線上操作說明 程式編輯視窗      輸出視窗   中華技術學院電子系

  6. 1.3 計劃檔[project]建立說明 (STEP 1) 中華技術學院電子系

  7. 1.3 計劃檔[project]建立說明 (STEP 2) 中華技術學院電子系

  8. 1.3 計劃檔[project]建立說明 (STEP 3) 中華技術學院電子系

  9. 1.3 計劃檔[project]建立說明 (STEP 4) 中華技術學院電子系

  10. 1.3 計劃檔[project]建立說明 (STEP 5) 中華技術學院電子系

  11. 1.3 計劃檔[project]建立說明 (STEP 6) 中華技術學院電子系

  12. 1.3 計劃檔[project]建立說明 (STEP 7) 中華技術學院電子系

  13. 1.3 計劃檔[project]建立說明 (STEP 8) 中華技術學院電子系

  14. 1.3 計劃檔[project]建立說明 (STEP 9) 中華技術學院電子系

  15. 1.3 計劃檔[project]建立說明 (STEP 10) 中華技術學院電子系

  16. 1.4. Keil 編輯器[editor]操作說明(STEP 1) 中華技術學院電子系

  17. 1.4. Keil 編輯器[editor]操作說明(STEP 2) 中華技術學院電子系

  18. 1.4. Keil 編輯器[editor]操作說明(STEP 3) 中華技術學院電子系

  19. 1.4. Keil 編輯器[editor]操作說明(STEP 4) 中華技術學院電子系

  20. 1.5 Keil除錯器[debugger]操作說明(STEP 1) 中華技術學院電子系

  21. 1.5 Keil除錯器[debugger]操作說明(STEP 2) 中華技術學院電子系

  22. 1.5 Keil除錯器[debugger]操作說明(STEP 3) 中華技術學院電子系

  23. 1.5 Keil除錯器[debugger]操作說明(STEP 4) 中華技術學院電子系

  24. 1.5 Keil除錯器[debugger]操作說明(STEP 5) 中華技術學院電子系

  25. 1.5 Keil除錯器[debugger]操作說明(STEP 6) 中華技術學院電子系

  26. 1.5 Keil除錯器[debugger]操作說明 中華技術學院電子系

  27. 1.6 ISP 燒錄器(I) • ATME的官方網站已經發布了原先所使用的AT89C51/AT89C52微控器停止生產,取而代之的是含有ISP功能的AT85S51/AT89S52微控器 • ISP(In-System Programming),是指微控器本身不需再透過燒錄器來將程式寫入微控器中的FLASH(或EEPROM),而是利用電腦所提供的通信介面(並列埠或串列埠)直接將程式碼(code)下載到微控器中的FLASH(或EEPROM)。 中華技術學院電子系

  28. 1.6.1 ISP 燒錄器電路圖 中華技術學院電子系

  29. 1.6.2 執行步驟 • 完成電路焊接後,先接上電源,可使用DC 9V 整流變壓器(adaptor),接至J1 處並開啟(on)電源開關S1。 • 利用25pins(公對公)的D型傳輸線,一端接至電腦印表機埠(母座),一端接至附圖1的LPT1(母座)上。 • 3.執行ISP燒錄器批次檔ISP-XP.BAT。 中華技術學院電子系

  30. 1.6.3 操作說明(I) 中華技術學院電子系

  31. 1.6.3 操作說明(II) 中華技術學院電子系

  32. 1.7 Home Work (I) • 利用Keil 整合環境進行編譯, 除錯以及模擬.設計一段程式將資料記憶體30H~7FH內容均設為 AAH. • 設計一段程式將表格內偶數資料將加並且存至50H. • 驗證 Text Book中常用模組, 是否正確? 5. ADD_16BIT, 6. SUB_16BIT, 7. MUL_16BIT, 8. DIV_16BIT, 10. HEX_BCD16

More Related