Nvis 5586A
Nvis Technologies Pvt. Ltd.
126
Program 17:
Serial Port Programming.
This following program will character from PC and displayed on LCD. The baud rate
parameters to be set are same as described earlier in this chapter. Use Hyper Terminal
communication software on your PC which is mentioned in Serial Communication Chapter.
A)
This
program receives the character from PC and displays it on LCD.
Address
Opcode
Mnemonic
Comments
0400
B0 B7
MOV AL,B7
CONTROL WORD FORMAT OF 8253
0402
E6 03
OUT 03,AL
0404
B0 13
MOV AL,13
MODE INSTRUCTIONFORMAT IN
ASYNCHRONOUS MODE
0406
E6 02
OUT 02,AL
0408
B0 00
MOV AL,00
040A
E6 02
OUT 02,AL
040C
B0 4E
MOV AL,4E
040E
E6 51
OUT 51,AL
0410
B0 05
MOV AL,05
COMMAND INSTRUCTION FORMAT
MAKE TRANSIT ENABLE AND RECEIVE
ENABLE HIGH
0412
E6 51
OUT 51,AL
0414
9A 7C F0 00 F0
LM: CALL F000:F07C
CLEAR THE DISPLAY DELETE THE FIRST
LINE
0419
B3 80
MOVBL,80
041B
9A 78 F0 00 F0
CALL F000:F078
0420
B9 14 00
MOV CX,0014
0423
E4 51
L1:
IN
AL,51
CHECK FOR RX RDY SIGNAL
0425
24 02
AND AL,02
0427
74 FA
JE
0423
0429
E4 50
IN
AL,50
CHARACTER IS RECEIVED FROM PC
TERMINAL & DISPLAYED INTO LCD
MODULATOR IN FIRST LINE
042B
9A 48 F0 00 F0
CALLF000:F048
0430
E2 F1
LOOP0423
0432
B3 C0
MOVBL,C0
DELETE SECOND LINE
0434
9A 78 F0 00 F0
CALLF000:F078
0439
B9 14 00
MOVCX,0014
Summary of Contents for 5586A
Page 2: ...Nvis 5586A Nvis Technologies Pvt Ltd 2...
Page 23: ...Nvis 5586A Nvis Technologies Pvt Ltd 23 Memory Read Timing in Maximum Mode...
Page 30: ...Nvis 5586A Nvis Technologies Pvt Ltd 30...
Page 48: ...Nvis 5586A Nvis Technologies Pvt Ltd 48 Diagram of module RESET power Instruction Set Note...