You are on page 1of 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

Data lines

20PIN
CONNECTOR

ADC 0809

PA.0

D0

PA.1

D1

PA.2

D2

PA.3

D3

ADC 0809

VCC

PA.4

D4

PA.5

D5

PA.6

D6

PA.7

D7

PB.0

E0C

PB.1

A0

PB.2

A1

PB.3

A2

PB.4

Start

PB.5

ALE

PB.6

OE

PB.7

NC

17,19

Vcc

18,20

Gnd

U1
11
12
13
16
26
IN0
27
IN1
28
IN2
1
IN3
2
IN4
3
IN5
4
IN6
5
IN7
10
PB6 9

VCC
D0
REF+
D1
GND
D2
REF D3
IN0
D4
IN1
D5
IN2
D6
IN3
D7
IN4
EOC
IN5
A0
IN6
A1
IN7
A2
CLK
START
OE
ALE

17
14
15
8
18
19
20
21
7
25
24
23
6
22

PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PB0
PB1
PB2
PB3
PB4
PB5

0809

Control Lines

PIN ASSIGNMENT WITH 8051

PWR

PA0 PA7 is connected to 8 nos of


LED
IN0 is connected to Trim pot

Supply form 8051/8086/80805 trainer Kit

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:

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!

MOVX @DPTR,A

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

You might also like