Microsoft PowerPoint - C15_LAB_MTS86_INTRO

Similar documents
Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

Microsoft PowerPoint - C15_LECTURE_NOTE_04.ppt

untitled

幻灯片 1

D/A DAC ( 1us) (10~20 ) DAC0832 1

MICROCHIP EVM Board : APP APP001 PICmicro Microchip APP001 40pin PDIP PICmicro Design Tips Character LCM Temperature Sensor Application I/O Pi

PTS7_Manual.PDF

目 录

DPJJX1.DOC

1.ai

1.1 ML_ONOFF = 1 Q 3 Q 8 C 0.3V M 2 L 1 ML_ONOFF = 0 Q 3 Q 8 C 1. + R31 VCC R21 10K ML_ONOFF R15 0:off 1:on 1K Green Light VCC=5V L1 Q VDD=12V C

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

K7VT2_QIG_v3

1 CPU

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

AL-M200 Series

HCD0174_2008

Microsoft PowerPoint - C15_LECTURE_NOTE_11

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

PIC16F F MPLAB 08 16F LED 15 LED

Serial ATA ( Silicon Image SiI3114)...2 (1) SATA... 2 (2) B I O S S A T A... 3 (3) RAID BIOS RAID... 5 (4) S A T A... 8 (5) S A T A... 10

System Design and Setup of a Robot to Pass over Steps Abstract In the research, one special type of robots that can pass over steps is designed and se

Olav Lundström MicroSCADA Pro Marketing & Sales 2005 ABB - 1-1MRS755673

ICD ICD ICD ICD ICD

K7M SLOT 1

Bus Hound 5

1-1 SH79F6431 A. 2( ) 9~15V ( 12V) U2 U3 3.3V SH79F B. 1(VCC/GND) SH79F6431 C. VDDIO SH79F6431 P4 P5 P0.6 P0.7 VDDIO VDDIO=5V D. 2 V 1.0

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

PowerPoint Presentation

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

P3B-F Pentium III/II/Celeron TM

<4D F736F F D20C7B6C8EBCABDCFB5CDB3C9E8BCC6CAA6B0B8C0FDB5BCD1A75FD1F9D5C22E646F63>

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

Microsoft Word - template.doc

TX-NR3030_BAS_Cs_ indd

逢 甲 大 學

51 C 51 isp 10 C PCB C C C C KEIL

SST SPAC SST SoftICE SST89C5x/SST89x554RC /564RD /SST89x516/5xRD / SoftICE SoftICE MCU SoftICE SS

Computer Architecture

P3V4X JumperFree TM

Logitech Wireless Combo MK45 English

P3C2000 JumperFree TM Camino

Edge-Triggered Rising Edge-Triggered ( Falling Edge-Triggered ( Unit 11 Latches and Flip-Flops 3 Timing for D Flip-Flop (Falling-Edge Trigger) Unit 11

untitled

1 TPIS TPIS 2 2

,768 32,767 32K JMP Jnnn (386+) LOOP CALL [Label:] JMP short/near/far address L10: jmp jmp L20: L10 L20

Microsoft Word - MTK平台生产软件使用说明.doc

Microsoft PowerPoint - os_4.ppt

穨control.PDF

LK110_ck

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Windows XP

K301Q-D VRT中英文说明书141009

Guide to Install SATA Hard Disks

EK-STM32F

2/80 2

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Gerotor Motors Series Dimensions A,B C T L L G1/2 M G1/ A 4 C H4 E

P4i45GL_GV-R50-CN.p65

(2) Function 0BH: Function 0CH: (pixel, picture element) Function 0DH: Function 0FH: Function 13H:

ebook140-8

solutions guide

Microsoft PowerPoint - CA_03 Chapter5 Part-II_multi _V1.ppt

Tel:

入學考試網上報名指南

Ác Åé å Serial ATA ( Sil3132) S A T A (1) SATA (2) BIOS SATA (3)* RAID BIOS RAID (4) SATA (5) SATA (a) S A T A ( S A T A R A I D ) (b) (c) Windows XP

投影片 1


2 Keil µ vision 2.1 1) Keil µ vision2 V2.34 µ vision3 2) Sino_Keil.exe Keil c:\keil\ 3) JET51 USB PC C:\Keil\ USB PC 4) S-L

图 片 展 示 : 资 源 简 介 : FPGA Altera CycloneII EP2C5T144C8 (4608 个 LE) 2 路 有 源 晶 振 (50M,25M) AS & JTAG 标 准 接 口 VGA 接 口 UART 接 口 蜂 鸣 器 8bit 并 行 DAC 8 路 按 键

AL-MX200 Series

(Guangzhou) AIT Co, Ltd V 110V [ ]! 2

微處理機期末專題

B 6 A A N A S A +V B B B +V 2

Microsoft Word - CX VMCO 3 easy step v1.doc

Microsoft PowerPoint - STU_EC_Ch08.ppt

Tel: Fax: TTP-344M/246M /

Microsoft PowerPoint - C15_LECTURE_NOTE_06

r_09hr_practical_guide_kor.pdf

untitled

Microsoft PowerPoint - Lecture7II.ppt

untitled

典型自编教材

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

Microsoft PowerPoint - C15_LECTURE_NOTE_06

12232A LED LED LED EL EL CCFL EL CCF

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

/ / (FC 3)...

三維空間之機械手臂虛擬實境模擬

+01-10_M5A_C1955.p65

untitled

(Microsoft Word - \246D\252k\267\247\255n_\275\306\277\357_.docx)

QNAP Storage Product Spare Part Price List (Enterprise/SMB) -- Feburary 2011 Segment Model Name Base Assem Base Assem Screw Pack (2.5") Screw Pack (2.

untitled

Gerolor Motors Series Dimensions A,B C T L L G1/2 M8 G1/ A 4 C H4 E

Microsoft PowerPoint - C15_LECTURE_NOTE_08.ppt

6 C51 ANSI C Turbo C C51 Turbo C C51 C51 C51 C51 C51 C51 C51 C51 C C C51 C51 ANSI C MCS-51 C51 ANSI C C C51 bit Byte bit sbit

冷熱衝擊試驗機、溫度控制器

Transcription:

INTRODUCTION TO THE MTS-86C MICROCOMPUTER TRAINER What s MTS-86? 7-4 7-5 7-7 7-3 7-2 7-3 7-6 2 4 5 3 7-6 7-8 7-3 8 4 5 3 6 37 微處理機原理與應用國立台灣大學生物機電系

SPECIFICATION () CPU: 886 (2) Display Unit: LCD (6x2 Line) (3) Main RAM: 62256 x 2 (64KB) (4) Monitor ROM: 27256 x 2 (64KB) (5) User Memory: 27256 x 2 or 62256 x 2 (6) Clock Generator: 8284 6 37 微處理機原理與應用國立台灣大學生物機電系 SPECIFICATION (7) I/O 7. A/D Converter, ADC 89 7.2 D/A Converter, DAC 88 7.3 I/O Port, 8255 (3Port x 3ea) 7.4 Interrupt Controller, 8259 7.5 Timer/Counter Controller, 8253 7.6 Keyboard/Display Controller, 8279 7.7 Serial Port, 825 (RS-232C x 2Port, 25Pin) 7.8 Key, 24 Keyboard (8) Experimental Device (VR, photo TR, thermistor, MIC), speaker, function, I/O simulation LED x 8ea, button, switch 6 37 微處理機原理與應用國立台灣大學生物機電系

SPECIFICATION (9) Power Supply (Switching) +-2V, +5V () Accessories Experiment Manual I/O Board and Cable RS-232 Cable RS-232 Cable AC Cord 6 37 微處理機原理與應用國立台灣大學生物機電系 How to use it?. Plug your power 2. Push you power switch 3. Push the RESET button in the top left-hand corner of the keyboard, and then the monitor will show up MTS-86C K&H MFG The internal program stored in ROM is running now 6 37 微處理機原理與應用國立台灣大學生物機電系

Function of Keypad RESET System reset key allows you to terminate any resent activity and to return your MTS-86C to an initialized state. NMI INTR key is used to generate an immediate, non-maskable type 2 interrupt. The NMI interrupt vector is initialized on power up or system reset to point to a routine within the monitor which cause all of the 886 s registers to be saved. Control is returned to the monitor for subsequent command entry. + The plus key allows you to add two hexadecimal values. This function simplifies relative addressing by allowing you to readily calculate an address location relative to a base address. - The minus key allows you to abstract one hexadecimal value from another 6 37 微處理機原理與應用國立台灣大學生物機電系 : The colon key used to separate an address to be entered into two parts; a segment value and offset value. REG The REG key allows you use the contents of any of the 886 s registers as an address or data entry., The comma key is used to separated keypad entries and to increment the address field to the next consecutive memory locations.. The period key is the command terminator. When pressed, the current command is executed. Note that when the using the Go command, the 886 begin program execution at the address specified when the key is pressed. 6 37 微處理機原理與應用國立台灣大學生物機電系

Other Keys 2 GO/CX 3 ST/DX 4 IB/SP 5 OB/BP 6 MV/SI 7 EW/DI EB: Examine byte; AX: accumulate register ER: Examine register; BX: base register GO: Go; CX: counter register ST: Single step; DX: data register IB: Input byte; SP: stack point register OB: Output byte; BP: base point register MV: Move; SI: source index register EW: Examine word; SI: destination index register 6 37 微處理機原理與應用國立台灣大學生物機電系 Other Keys 8 IW/CS 9 OW/DX A /SS B /ES C /IP D /FL E F IW: Input word; OW: Output word; none: N/A; none: N/A; none: N/A; none: N/A; none: N/A; none: N/A; CS: code segment register DS: data segment register SS: stack segment register ES: Extra segment register IP: Instruction point register FL: Flag register none: N/A none:n/a 6 37 微處理機原理與應用國立台灣大學生物機電系

Tutorial By byte RESET MTS-86C K&H MFG System reset, Examine Byte _ :_ :_ : xx_ Examine byte command First memory location to be examined First memory location to be examined Memory data contents * xx is variable data 6 37 微處理機原理與應用國立台灣大學生物機電系,,. :2 xx_ :3 xx_ MTS_86C>INPUT Next memory location to be examined Next memory location to be examined Command termination prompt By register Examine Byte _ Examine register command B /ES Examine Register ES:_ Extra segment register contents * xx is variable data 6 37 微處理機原理與應用國立台灣大學生物機電系

Examine Register ES:_ Examine Register ES:_ New register contents New register contents MTS_86C>INPUT. Command termination prompt To confirm after changed memory Examine Register _ Examine register command B /ES Examine Register ES:_ Extra segment register contents MTS_86C>INPUT. Command termination prompt 6 37 微處理機原理與應用國立台灣大學生物機電系 By word 7 EW/DI Examine Word _ :_ :_ :_ Examine word command Segment address Segment address Segment address : :_ Segment/Offset separator :_ Offset address 6 37 微處理機原理與應用國立台灣大學生物機電系

, 2 GO/CX 3 ST/DX 4 IB/SP : xxxx_ : _ : 2_ : 23_ : 234_ Memory data contents of :, : Offset data Offset data Offset data Offset data MTS_86C>INPUT. Command termination prompt You can do that again according to previous steps 6 37 微處理機原理與應用國立台灣大學生物機電系 Executing Program 2 GO/CX :_xx Go Go command (IP register offset address & data contents F : :F_xx Go :F_xx Go :F_xx Go F:F_xx Go F:_xx Go Segment (CS register) address Segment (CS register) address Segment (CS register) address Segment /Offset separator Offset address. 8 BIT LED TEST! K&H MFG 6 37 微處理機原理與應用國立台灣大學生物機電系 Command Termination/prompt

Examples of executing DEMO programs RESET MTS-86C K&H MFG System reset,. <DEMO PROGRAM> SELECT -2. <DEMO PROGRAM> SELECT -2. <DEMO PROGRAM> SELECT -2. 8 BIT LED TEST! K&H MFG Starting DEMO programs Inputting program No Inputting program No Executing! 6 37 微處理機原理與應用國立台灣大學生物機電系 Memory Organization of MTS-86C FFFFFH F8H FH EH Monitor Program Exercise Program User Memory ROM ROM,RAM H 4H H OPEN User Program Interrupt Vector Table RAM 6 37 微處理機原理與應用國立台灣大學生物機電系

IO ADDRESSING of MTS-86C Port Address Port Function FFFFH FFFDH FFFBH FFF9H FFFEH FFFCH FFFAH FFF8H FFF2H FFFH FFEAH FFE8H FFDEH FFDCH FFDAH FFD8H FFD2H FFDH PPI- Control Word Register PPI- C Port PPI- B Port PPI- A Port PPI-2 Control Word Register PPI-2 C Port PPI-2 B Port PPI-2 A Port 825- Command 825- Data 8279 Status or Command 8279 Data 8253 Command 8253 Count2 8253 Count 8253 Count 825-2 Command 825-2 Data Parallel I/O No Parallel I/O No2 RS232C PORT Keypad Control Counter & Timer RS232C PORT2 6 37 微處理機原理與應用國立台灣大學生物機電系 FFCAH FFC8H 8259 Command 8259 Data Interrupt Control 3FFH FND Display 3FD8H D/A Converter 8 Bit D/A Converter 3FD6H 3FD4H 3FD2H 3FDH PPI-3 Control Word Register PPI-3 C Port PPI-3 B Port PPI-3 A Port <For experiments> Connect to speaker Experiment for Output(8bits) Experiment for Input(8bits) 3FCEH 3FCCH 3FCAH 3FC8H A/D Converter IN3 or IN7 A/D Converter IN2 or IN6 A/D Converter IN or IN5 A/D Converter IN or IN4 8 Bit A/D Converter IN~3, IN4-IN7 can be modified by DIP8 of S/W 3 6 37 微處理機原理與應用國立台灣大學生物機電系

How to Program? Step trace Progarm: CODE SEGMENT ASSUME CS:CODE, DS:CODE Mov AX,[e] Mov BX,AX Mov CX,BX Mov CX,DX Move [],DX HLT CODE ENDS END 6 37 微處理機原理與應用國立台灣大學生物機電系 Enter program segment :, Mov AX,[E] A, E,, Mov BX,AX 8 B, D 8, 6 37 微處理機原理與應用國立台灣大學生物機電系

Mov CX,BX 8 B, C 8, Mov DX,CX 8 B, D, Mov [],DX 8 9, 6, 6 37 微處理機原理與應用國立台灣大學生物機電系, HLT, F 4, Step Trace: 3 ST/DX Reset AX,BX,CX,DX :,. To see what happened 6 37 微處理機原理與應用國立台灣大學生物機電系

Examine AX AX What happened to AX. ST, Examine BX BX What happened to BX. ST, Examine CX CX What happened to CX. ST, 6 37 微處理機原理與應用國立台灣大學生物機電系 Examine DX DX Reset AX,BX,CX,DX. ST, Free Run: 2 GO/CX :, 6. To see what happened 6 37 微處理機原理與應用國立台灣大學生物機電系