8051 HOW-TO GUIDE
Interfacing DAC 0800 with 8051
Contents at a Glance 8051TRAINER KIT .............................................................3 DAC 0800.........................................................................3 INTERFACING DAC WITH 8051..........................................5 PIN ASSIGNMENT WITH PIN ASSIGNMENT WITH 8051 .....5 CIRCUIT DIAGRAM TO INTERFACE DAC 0800 WITH 8051 ...6 ASSEMBLY PROGRAM TO INTERFACE DAC 0800 WITH 80517
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 PC’s 101/104 Keyboard, to enter programs in Assembly languages. Serial communication achieved using 8051. It also s C & assembly language in standalone kit (P89V51RD2). It’s designed as to facilitate On-board Programmer for NXP 8051 MCU through ISP on serial port. DAC 0800 Fig 1 shows DAC0800 series are monolithic 8-bit highspeed current output digital-to-analog converters (DAC) featuring typical settling times of 100 ns.. The noise immune inputs will accept variety of logic levels. The performance and characteristics of the device are essentially unchanged over the ±4.5V to ±18V power supply range and power
the Technical Community Today! http://www.pantechsolutions.net
consumption at only 33 mW with ±5V supplies is independent of logic input levels.
Fig 1: pin diagram of DAC 0800
How a DAC works
the Technical Community Today! http://www.pantechsolutions.net
INTERFACING DAC WITH 8051 We now want to we now want to convert the Digital signal to analog voltage by using PS/2 8051 trainer board. Here we are using DAC 0800. The DAC 0800 consists of a 8 data lines and REF voltage lines. When the DAC is given the digital input it converts the Digital data to corresponding current, to convert the I to V we use UA 741. PIN ASSIGNMENT WITH PIN ASSIGNMENT WITH 8051
REF VOLTAGE LINES
8051
DAC 0800
V+ Line is given to +12V regulator(7812) V- Line is given to -12V regulator(7912) 78 series in the Regulator IC indicates + voltage 79 series in the Regulator IC indicates - voltage PA.0
D0
PA.1
D1
PA.2
D2
PA.3
D3
PA.4
D4
PA.5
D5
PA.6
D6
PA.7
D7
VCC
40
16
GND
20
3
DAC – DATA LINES
DAC 0800 PIN DIAGRAM
Supply drawn from MCU/MPU/
the Technical Community Today! http://www.pantechsolutions.net
CIRCUIT DIAGRAM TO INTERFACE DAC 0800 WITH 8051
the Technical Community Today! http://www.pantechsolutions.net
ASSEMBLY PROGRAM TO INTERFACE DAC 0800 WITH 8051 CNTRL: 4003H PORTA : 4000CH
MEMORY ADDRESS
OPCODE
MNEMONICS
8500
74 80
MOV A, #80H
8502
90 FF 0F
MOV DPTR, #CNTRL
8505
F0
MOVX @DPTR, A
8506
74 00
START: MOV A, #00H
8508
90 FF 0C
L1: MOV DPTR, #PORTA
850B
F0
MOVX @DPTR, A
850C
04
INC A
850D
70 F9
CJNE A, #0FF, L1
850F
80 F5
SJMP START
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 from organization of all shapes and sizes.
the Technical Community Today! http://www.pantechsolutions.net
What do we sell? Our products range from Various Microcontroller development boards, DSP Boards, FPGA/LD 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.
the Technical Community Today! http://www.pantechsolutions.net