Nvis 5586A
Nvis Technologies Pvt. Ltd.
163
On-Board Interface
ADC-0809 (Analog Input):
Nvis 5586A provides an onboard interface for ADC 0809 chip which allows the user to have
8 analog input channels, namely A0 to A7. These input points are brought out at the block
Channels. ADC0809 is an 8 bit A/D chip designed here to provide an input level of 0 to 5
volts.
The procedure to be followed for using ADC 0809 is as follows:
1.
ADC0809 is internally interfaced with 8255-I so port address for 8255-I should be
followed for communicating with ADC chip.
2.
Select ADC with the help of Rotary provided on Trainer
3.
Select channel by outputting the code 00 to 07 at Port address 01.
4.
Send a SOC and ALE (Start of conversion by outputting 00,03 at Port address 02).
5.
Input from Port address 02 to check for EOC (end of conversion) at D0.
6.
Read the ADC 0809 by inputting from Port address 00.
These addresses are given in I/O MAPPING details. After executing the below program, it
displays all 8 channels in the LCD screen. The input for 8 Channel ADC are provided on
trainer A0 to A7.
Program:
The following program reads the Input voltage from A0 to A7 i.e.Channel-1 to Channel-8
and displays the same on the LCD screen.
Port A
70H
Port B
72H
Port C
74H
Control Word 76H
Put this program directly on any Text Editor and give Extension as .ASM and compile with
MASM Assembler.
CODE SEGMENT
ASSUME CS: CODE, DS: CODE
PROG PROC FAR
Address
Opcode
Mnemonic
Comment
0400
B0 98
MOV AL,98H
;INTIALIZE 8255
0402
E6 76
OUT 76H,AL
;PA & PC UPPER AS INPUT & PB
& PC LOWER AS OUTPUT
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...