Sunteți pe pagina 1din 9

8051 HOW-TO GUIDE

Interfacing ADC 0809


with 8051
Contents at a Glance

8051TRAINER KIT .............................................................3


ADC 0809.........................................................................3
INTERFACING ADC 0809 WITH 8051 .................................4
PIN ASSIGNMENT WITH 8051 ...........................................5
CIRCUIT DIAGRAM TO INTERFACE ADC 0809 WITH 8051 ...6
ASSEMBLY PROGRAM TO INTERFACE ADC 0809 ...............7

Join the Technical Community Today! http://www.pantechsolutions.net


8051TRAINER KIT

PS-TRAINER-8051 trainer kit is proposed to smooth the


progress of learning and developing designs of MCU from
Intel and NXP. It has the facility to connect PCs 101/104
Keyboard, to enter user programs in Assembly languages.
Serial communication achieved using 8051. It also supports
C & assembly language in standalone kit (P89V51RD2). Its
designed as to facilitate On-board Programmer for NXP
8051 MCU through ISP on serial port.

ADC 0809

The ADC0808, ADC0809 data acquisition component is


a Monolithic CMOS device with an 8-bit analog-to-digital
converter, 8-channel multiplexer and microprocessor
compatible control logic. The 8-bit A/D converter uses
successive approximations the conversion technique. The
converter features a high Impedance chopper stabilized

Join the Technical Community Today! http://www.pantechsolutions.net


comparator, a 256R voltage divider with analog switch tree
and a successive approximation register.

INTERFACING ADC 0809 WITH 8051

8051 microcontroller it doesnt have an On chip ADC to


accept the digital input, it will not accept analog input, so we
need a ADC to process the analog signal. For interfacing ADC
0809 we require 8 data lines. So ADC 0809 is an 8 bit ADC has
8 channels works on successive approximation conversion
technique

Join the Technical Community Today! http://www.pantechsolutions.net


PIN ASSIGNMENT WITH 8051
20PIN
ADC 0809 ADC 0809
CONNECTOR

PA.0 D0

PA.1 D1

PA.2 D2
Data lines

PA.3 D3
VCC

PA.4 D4
U1

PA.5 D5 11
12 VCC D0
17
14
PA0
PA1
13 REF+ D1 15 PA2
16 GND D2 8 PA3
PA.6 D6 IN0 26 REF - D3 18 PA4
IN1 27 IN0 D4 19 PA5
IN2 28 IN1 D5 20 PA6
PA.7 D7 IN3 1 IN2 D6 21 PA7
IN4 2 IN3 D7 7 PB0
IN5 3 IN4 EOC 25 PB1
PB.0 E0C IN6 4 IN5
IN6
A0
A1
24 PB2
IN7 5 23 PB3
10 IN7 A2 6 PB4
PB6 9 CLK START 22 PB5
PB.1 A0 OE ALE

0809

PB.2 A1
Control Lines

PB.3 A2 PA0 PA7 is connected to 8 nos of


PB.4 Start
LED

` PB.5 ALE IN0 is connected to Trim pot

PB.6 OE

PB.7 NC

PWR 17,19 Vcc


Supply form 8051/8086/80805 trainer Kit
18,20 Gnd

Join the Technical Community Today! http://www.pantechsolutions.net


CIRCUIT DIAGRAM TO INTERFACE ADC 0809 WITH 8051

Join the Technical Community Today! http://www.pantechsolutions.net


ASSEMBLY PROGRAM TO INTERFACE ADC 0809

***************************************************************************************
AIM: To capture the data at channel - 0 and store in memory location
***************************************************************************************

MEMORY ADDRESS OPCODE MNEMONICS


8500 74 92 MOV A,#98
8502 90 40 03 MOV DPTR,#4003
8505 F0 MOVX @DPTR,A
8506 90 40 01 MOV DPTR,#4001
8509 74 01 MOV A,#01
850B F0 MOVX @DPTR,A
850C 74 31 MOV A,#31
850E F0 MOVX @DPTR,A
850F 74 01 MOV A,#01
8511 F0 BACK: MOVX @DPTR,A
8512 54 01 ANL A,#01
8514 30 0A FA JNB 0A,BACK
8517 74 40 MOV A,#40
8519 F0 MOVX @DPTR,A
851A 74 00 MOV A,#00
851C F0 MOVX @DPTR,A
851D 90 40 00 MOV DPTR,#4000
8520 E0 MOVX A,@DPTR

Join the Technical Community Today! http://www.pantechsolutions.net


Did you enjoy the read?
Pantech solutions creates information packed technical
documents like this one every month. And our website is a rich
and trusted resource used by a vibrant online community of
more than 1, 00,000 members from organization of all shapes
and sizes.

Join the Technical Community Today! http://www.pantechsolutions.net


What do we sell?
Our products range from Various Microcontroller
development boards, DSP Boards, FPGA/CPLD boards,
Communication Kits, Power electronics, Basic electronics,
Robotics, Sensors, Electronic components and much more . Our
goal is to make finding the parts and information you need
easier and affordable so you can create awesome projects and
training from Basic to Cutting edge technology.

Join the Technical Community Today! http://www.pantechsolutions.net

S-ar putea să vă placă și