10_Lab08_KEYBOARD

# 10_Lab08_KEYBOARD - Microcomputer Systems and Lab Fall 2010...

This preview shows pages 1–2. Sign up to view the full content.

Microcomputer Systems and Lab Fall, 2010 微算機系統與實驗講義 Microcomputer Systems and Lab Fall, 2010 微算機系統與實驗講義 Lab # 7 鍵盤掃描實驗 一、實驗目的： 瞭解鍵盤掃描的方法。請參考講義第七章 7-189 開始。 二、實驗說明： (1) 本實驗用到的單板為 F62 KEYBOARD 4*4 F92 7SEG*4 (2) 鍵盤掃描的原理說明： 鍵盤是將多個按鍵開關排成矩陣形式，如下圖 1 示，習慣上橫的一排稱為一列 (row) ，直的一排稱為一行 (column) ，如圖 1 所示為 4 行ｘ 4 列鍵盤。微電腦要取得鍵盤輸入的資料，主要流程如下： 1. 偵測是否有鍵被按下 2. 讀取按鍵代表意義 在讀取按鍵資料時，主要是利用當按鍵點被按時，相通時產生電位改變，再 利用一個輸入埠來讀取按鍵資料。以下圖 2 為例， P1.0~P1.3 相對應 Key0~Key3 讀取 P1.0~P1.3 4 位元資料，某一位元為 0 ，表示對應的鍵被按下，某一位元為 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern