Weitere ähnliche Inhalte Ähnlich wie MicroLab2 2011.pptx (20) Kürzlich hochgeladen (20) MicroLab2 2011.pptx2. 1
CPU 8086
1
2
LCD Display (16x2)
2
3
Main RAM:62256X2(64kB)
3
3
4
Monitor ROM:27256X2(64kB)
4
4
User Memory:27256X2(64kB)
or:62256x2
5
5
5
Clock Generator:8284
6
6
A/D Converter: ADC0809
7
7
D/A Converter: DAC0808
8 I/O Ports: 3x8255
9
8
Interrupt Controller: 8259
10
9
9
9
Timer/Counter: 8253
11
10
keypad/Display Controller: 8279
12
11
Serial Controller: 8251
13
12
24 key-Keypad
14
13
Experimental I/Ps
15
14
15
26. ;This program is used to test PPI1 Mode2 and . . . . . . . .
;Date: 28/7/2008
code segment
assume cs:code,ds:code
org 0
start:
mov ax,cs ;Comments
mov ds,ax ;ds=cs
hlt
Seg DB 00,10h,0F2h,
code ends
end start
Assembly
Program
Structure
LABLES
COMMENTS
DIRECTIVES
INSTRUCTIONS
35. CODE SEGMENT
ASSUME CS:CODE,DS:CODE
ORG 0
START: MOV AX,CS
MOV DS,AX
MAIN: MOV DX,3FF0H
LEA BX,SEG7
GOON: MOV AL,COUNT
XLAT
OUT DX,AL
INC BYTE PTR COUNT
MOV CX,0FFFFH
LOOP $
CMP BYTE PTR COUNT,10H
JNE GOON
MOV BYTE PTR COUNT,0
JMP GOON
SEG7 DB 0C0h,0F9h,0A4h,0B0h,99h,92h,82h,0F8h
DB 80h,90h,88h,83h,0C6h,0A1h,86h,8Eh
COUNT DB 0
CODE ENDS
END START
37. 0 0 0 0 0 0
1
For Group A / IN
and Group PB/OUT
90h
38. ;==============================================
;This program use PPI3 in simple I/O MODE 0
;==============================================
CODE SEGMENT
ASSUME CS:CODE,DS:CODE
ORG 0
START: MOV AX,CS
MOV DS,AX
MOV DX,3FD6h
MOV AL,90h
OUT DX,AL
CONT: MOV DX,3FD0h
IN AL,DX
MOV DX,3FD2h
OUT DX,AL
MOV DX,3FD4h
OUT DX,AL
JMP CONT
CODE ENDS
END START