組合語言與微處理機講義

歡迎使用但請尊重智慧財產 , 不要有商業行為

教學大綱

                    8051相關資源網站                                                                 8051模擬軟體

                           8051 教學網(二一社總部)       大鳥的實驗室               Pinnacle 52      X8051  link51  

                           超韌派                                       比爾電子技術

                           8051 Development Tools            單晶片資源網


課程內容                                                                            叁考資料   (補充教材)                                         作業

1 Introduction to Microcontroller Grouping ch01

單晶片微電腦簡介

8051單晶片-指令介紹 

範例  0001.asm 0002.asm

         0003.asm

1、寫一程式計算R1 = 6  R2 = 8  R3 = 9

               A = R1 * 7 + R2/4 – R3

叁考程式1001.asm

2 Hardware summary/Architecture  ch02 單晶片程式指令

範例 0004.asm   00005 

1  單鍵LED左右移,開始全亮,按PB1後開始持續單燈左移,按PB2後開始持續單燈右移,按PB3停止

 叁考程式1002.asm

3 Memory Organization 補充教材03

範例01  02  03

1  要延遲4.5秒程式如何寫?

 叁考程式延遲 1 秒

4 Assembly Language Programming and Development Cycle ch07 8051hex編輯(X8051)

E0901

 1   設計4X4鍵盤按鍵,可輸出二進位數字數字,輸入第二次後,會將第次值與第二次相加,並顯示出。(LED顯示)。

5 Instruction Set/Instruction format ch03  

 *    設計8X8矩陣型LED字幕顯示,先出現「NCYU」字母每個字母出現1秒然後出現「CSIE」每個字母出現2秒後再循環。

叁考範例  L-6-A2   L-6-1

6 Instruction Set  

 1    請撰寫一個程式,計算1+2+3+ .+255,並將每次加法計算結果顯示在LED 上,LED1顯示計算結果的低8 位元,LED2顯示計算結果的高8 位元。

7 Addressing Modes  Assembler directives  

1、請撰寫一個程式:80518×8點矩陣顯示器上,在(0,0)(8,0)8Dots從左到右的跑馬燈效果。

8 Timer Operation (1) ch04 補充教材04  
9 Timer Operation (2)  

1     在8051串列通訊的4個模式中, mode 1mode 3的鮑率(Baud Rate)是由Timer 1的溢位速率決定,因此若要產生9600Baud Rate,則系統振盪頻率應該要如何選擇? Timer 1相關的暫存器TH1TL1值要如何設定? 請寫出計算過程。

10 No Class  (期中考試) 叁考資料  
11 Serial Port (1) ch05 補充教材05

 

12 Serial Port (2)  

11      修改PC8051通訊程式(RPC1),讓PC鍵盤輸入0 8051 8×8點矩陣顯示器上出現0 ,讓PC鍵盤輸入1 8051 8×8點矩陣顯示器上出現1,讓PC鍵盤輸入2 8051 8×8點矩陣顯示器上出現2

N   叁考範例 RPC1  SE1

13 Interrupt  (1)  ch06 補充教材06  
14 Interrupt  (2)    
15 Assembly Language Programming ch07    
16 Program Structure and Design  ch08    
17 Tools and Techniques for Program Development ch09    
18 Design and Interface Examples(1)  ch10    
19 Design and Interface Examples(2)    
20  No Class  (期末考試)    
     

[Homepage主畫面

祝福你(妳)有愉快的一天, 再見