1 4.4 指撥開關與單顆七段 當 DIP 為 ON 輸入接腳為 LOW 當 DIP 為 OFF 輸入接腳為 HIGH.

Slides:



Advertisements
Similar presentations
Modulo-N Counters Module M10.4 Section 7.2.
Advertisements

The 8051 Microcontroller and Embedded Systems
Autumn 2012C.-S. Shieh, EC, KUAS, Taiwan1 The 8051 Family Microcontroller Chin-Shiuh Shieh Department of Electronic Engineering.
7-Segment Displays Lecture L6.1 Section 6.3. Turning on an LED.
A Design Example An Exact Calculator. Exact Calculator Manipulating Large Integer Values Operations: – +, -, *, /, %, And, Or, Xor, Not, Power Functions.
Seven Segment Display. What's A 7-Segment Display? A 7-segment display is a package with 7 bar-shaped LEDs arranged to allow the display of many useful.
Suranaree University Of Technology มทส  2002 Anant Oonsivilai 2002/4/8 Microcomputers and Microprocessors 1 Chapter 5 Addressing Modes.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati.
Digital Interfacing.
1 4.3 單顆七段. 2 共陰極七段顯示器 C ommon Cathod (abcdefg) 七段接腳 gf(com)ab ed(com)cp HT46R23 接腳 VDD(20) RES(19) OSC1(21) OSC2(22) VSS(11) PA0-PA7(6,5,4,3,26,25,24,23)
Introduction of Holtek HT-46 series MCU
1  Dreamweaver MX  Frontpage 2003 無障礙網頁製作工具. 2  當插入 Table 等物件時,對話框增加有關與 無障礙的標籤或屬性輸入欄位。  「目標瀏覽器檢查」功能,能對各種 Browser 的相容性提出檢測報告。  無障礙網頁檢測功能 UsableNet.
1 Q10276: Hanoi Tower Troubles Again! 星級 : ★★★ 題組: Online-judge.uva.es PROBLEM SET Volume CII 題號: Q10276: Hanoi Tower Troubles Again! 解題者:薛祖淵 解題日期: 2006.
多媒體安全 Macros Examples Gamma.txt 報告學生:碩專 2A 王朝鵬 ( ) 指導教授:黃文楨 博士.
CSC Timers Since this is a microcontroller it mainly finds itself in embedded devices Quite often embedded devices need to synchronize events The.
1 第一章 Word 的基本觀念 內容概要: Word 的特色 啟動與離開 Word 的方法 滑鼠游標與外型的介紹 基本操作 Word 視窗法則 使用 Word 遭遇問題時, 應如何利用軟體特 性而獲得輔助解說.
邏輯設計 題目:3_8解碼器 姓名:李國豪 學號:B09322001.
1 Timer 位元上數計數器 Up Counter 以 TMRC 暫存器設定 TMRC (TM1 TM0 – TON TE PSC2 PSC1 PSC0) 三種工作模式 (TM1 TM0 控制 ) 溢位時 TF(INT0.5) 位元設為 1.
Flip-Flops Module M10.2 Section 7.1. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
1 Speaker. 2 喇叭發聲原理 利用喇叭上的線圈通上電流造成薄膜振動 振動推動空氣產生聲音.
1 Timer with PFD. 2 PFD 可程式除頻器 PAC.3=1 則 PA.3 被規劃為輸入模式 PAC.3=0 則 PA.3 被規劃為輸出模式 PA.3=1 即開始輸出 PFD 信號 產生的頻率為計時計數器溢位頻率之半 PA.3=0 即停止輸出 PFD 信號.
1 LCD. 2 LCD 液晶顯示器 文字型 繪圖型 Hitachi (HD44780A) 80 個位元組.
The application of boundary element evaluation on a silencer in the presence of a linear temperature gradient Boundary Element Method 期末報告 指導老師:陳正宗終身特聘教授.
資料結構實習-二.
ADS design flow 7-segment. Build the Software Application Hook-UP the Emulator System Load and Run the demo Program 7 Segment.
CH. 11 Laboratory Experiments Selected Lab. Introduction.
網路介紹及其運用 講師陳炯勳. 5-2 IP 協定 ( 一 ) IP 協定運作 (1) – 網路成員:主機 (Host) 與路由器 (Router) – 路由表 – 電報傳輸運作.
7-Segment Displays Module M7.2 Section 6.5. Turning on an LED Common Anode.
LAB 01 OSCILLOSCOPE Function generator Power supply.
1 4.2 LED 查表. 2 HT46R23 程式記憶體 4096 個位址 (0000-FFFFh) 256 個位置為單一程式頁 TBLP 暫存器只有 8 個位元 TABRDC [m] 指令 依據 TBLP 所示位址將目前程 式頁之內容讀出 將低 8 位元存入資料記憶體 [m] 中 其餘位元存入.
Timer/Event. 2 利用 Timer/Event Counter 之中斷 及 PFD 控制喇叭 4.9 之 Timer 以 Poling 詢問方式檢查 TF 旗標 是否溢位.
8.4 Instruction Execution Times TOBIN PROC FAR SUB AX,AX MOV DX,AX MOV CX,4 NEXTD: PUSH CX SUB BP,BP MOV CX,4 GETNUM: RCL BX,1 RCL BP,1 LOOP GETNUM.
1 化學品管理系統介紹 工研院資訊中心 何玲菁 內容  目的  作業流程  權責  系統登入  功能說明  系統展示  Q & A.
ADC. 2 ADC 數位類比轉換器 解析度 10 bit 準確度 9 bit 類比輸入 PB 轉換結果 D9-D0 存放在 ADRH,ADRL.
Dr. Hoganson CSIS Segment Display and Count by 16 This is our third lab using the 68HC11 microcontroller. We will write a program that counts by.
1LAKSHMI.B.E.. Full step -clock 2LAKSHMI.B.E. Full step –anti clock 3LAKSHMI.B.E.
Input/Output Interface Circuits and LSI Peripheral Devices
Introduction to Holtek ASM Programming
中華科技大學電子工程學系 智光商工電子資訊群 2013/12/27 智光優質精進計劃課程講義 LCD 功能測試及應用.
The 8051 Assembly Language Branching & Subroutines
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Pp 92 Parity Method Pp 94 The parity method.
Lecture 14 Basic I/O Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
8086/8088 Hardware System. Typical Microprocessor Memory System CPU Memory Control Address Data.
4-12 外部中斷 HT66F50.
6-1 基本加法器 6-2 平行二進位加法器 6-3 比較器 6-4 解碼器 6-5 編碼器 6-6 數碼轉換器 6-7 多工器 ( 資料選擇器 ) 6-8 解多工器 6-9 同位元產生器 / 檢 查器.
RGB to YUV(CDFG) 林鼎原 Department of Electrical Engineering National Cheng Kung University Tainan, Taiwan, R.O.C
Lecture Set 4 Programming the 8051.
Projects 8051.
UNIT-IV 8255 PPI Various Modes Of Operation Interfacing To 8086.
Basic I/O Interface Fixed Address Variable Address
ENEE 440 Chapter PPI 8255 Register Select -CS A1 A0 REGISTER R/W PORT A R/W PORT B R/W PORT C R/W CR W 1 X X8255 NOT.
In Class Program Write, assemble and test a program: –Use the DB directive to define the following list of numbers and name it array: 31h, 32h, 33h, 34h.
1 4-8 IO_speaker 利用 HT66F50 中 PC4 腳位輸出特 性 控制 speaker 發聲.
HALT HT66F50. HALT 指令 進入省電模式 1. 關閉系統時脈, 若啟用 WDT 將繼續 WDT 時脈 (LXT, LIRC) 2. 內部資料 RAM 不變 3. 清除 WDT, 並重新開始計數 4. 所有 I/O 維持原來狀態 ( 若要省電周邊元件要關閉 ) 5. 清除.
x4 鍵盤 每按一次鍵盤 控制七段顯示器. 2 ;PROGRAM : 4-7.ASM (4-7.PRJ) 2002.DEC.30. ;FUNCTION: 4X4 MATRIX KEYPAD DEMO PROGRAM BY STEVEN #INCLUDEHT46R23.INC.CHIPHT46R23.
機 器 車 介 紹 & 實做. 使用軟體 arduino 環境安裝 控制台 > 裝置管理員 > 更新驅動程式 C:\arduino windows\arduino \drivers.
Dept. of Electrical and Computer Eng., NCTU 1 Lab 1. Full Adder Presenter: Chun-Hsien Ko Contributors: Chung-Ting Jiang and Lin-Kai Chiu.
Computer Organization and Design Fundamental 書籍作者: David Tarnoff 投影片製作者:陳鍾誠 第 12 章 Memory Organization ( 記憶體的組織 )
Tutorial 9 Module 8 – 8.1,8.2,8.3. Question 1 Distinguish between vectored and non-vectored interrupts with an example Build a hardware circuit that can.
ASSEMBLY CODE EEE 365 [FALL 2014] LECTURE 24 ATANU K SAHA BRAC UNIVERSITY.
微分器與積分器 類比電子實驗 單元二 教材投影片放在
Parallel Input/Output
Calculator in assembly language
Source: Motor Source:
Microprocessor Lab CSL1543 0:0:2
Programmable Peripheral Interface
4-14 類比中斷 HT66F50.
SLEEP1 HT66F50.
Addressing Modes in 8051 MC S. Lourduraj Asst. Prof. of Physics
Presentation transcript:

1 4.4 指撥開關與單顆七段 當 DIP 為 ON 輸入接腳為 LOW 當 DIP 為 OFF 輸入接腳為 HIGH

2 共陰極七段顯示器 C ommon Cathod 以指撥開關控制七段顯示器速度 (0-9) 查表法 HT46R23 接腳 VDD(20) RES(19) OSC1(21) OSC2(22) VSS(11) 指撥開關 PA0-PA7(6,5,4,3,26,25,24,23) 七段顯示器 PB0-PB7(10,9,8,7,2,1,28,27) 指撥開關 on 輸入接腳 off PA 有 PULL-HIGH 功能 (40K-80K)

3 4.4 #INCLUDEHT46R23.INC.CHIPHT46R23 MY_DATA.SECTION'DATA' DEL1 DB ? ;DELAY LOOP COUNT 1 DEL2 DB ? ;DELAY LOOP COUNT 2 DEL3DB ? ;DELAY LOOP COUNT 3 COUNTDB ? SEG_PORTEQUPB ;DEFINE 7-SEG PORT SEG_PORTCEQUPBC ;DEFINE 7-SEG PORT CONTROL REG. DIP_PORT EQUPA ;DEFINE DIP PORT DIP_PORTC EQUPAC ;DEFINE DIP PORT CONTROL REG. MY_CODE.SECTIONAT 0 'CODE' ;== PROGRAM SECTION == ORG 00H ;HT-46RXX RESET VECTOR SETDIP_PORTC ;CONFIG DIP_PORT AS INPUT MODE CLRSEG_PORTC ;CONFIG SEG_PORT AS OUTPUT MODE MAIN: MOVA,OFFSET TAB_7_SEG MOVTBLP,A ;INITIAL POINTER START ADDRESS

4 MOVA,10 MOVCOUNT,A;SET DATA COUNT OF TAB_7_SEG LOOP: TABRDLSEG_PORT;READ TABLE AND SEND TO SEG_PORT MOVA,DIP_PORT;GET DELAY FACTOR FROM DIP_SW MOVDEL1,A;SET DELAY FACTOR CALL DELAY;DELAY DIP_PORT*10mS INCTBLP;UPDATE TABLE POINTER SDZCOUNT;COUNT DOWN BY 1 JMPLOOP;JUMP IF NOT TABLE END JMPMAIN ;RESTART DELAY PROC MOV A,30 MOV DEL2,A;SET DEL2 COUNTER DEL_2:MOVA,110 MOVDEL3,A;SET DEL3 COUNTER DEL_3: SDZ DEL3 ;DEL3 DOWN COUNT JMP DEL_3 SDZ DEL2 ;DEL2 DOWN COUNT JMP DEL_2 SDZDEL1;DEL1 DOWN COUNT JMPDELAY RET DELAYENDP

5 ORGLASTPAGE TAB_7_SEG: DC ;7 SEG CODE FOR COMMOM CATHOD LED DC ;CONNECT BIT 0~7 FOR SEGMENT A~H DC ;LOW-BYTE FOR 7 SEG DISPLAY CODE DC ;HIGH 7 BITs FOR DELAY FACTOR DC DC DC DC DC DC END