Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

dac0800 not working properly

Status
Not open for further replies.

samic45mit1

Member level 3
Joined
Dec 11, 2009
Messages
62
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
indore
Activity points
1,815
HI,

I am working on dac 0800 interfaced with atmega32. But when I run a simple counter then dac 0800 not give expected output. connection between microcontroller and dac is correct and digital output of microcontroller is also correct. And I am getting all supply properly. Only at +Vref of dac I getting no voltage but before 4.7k resistance it is 5V. And I use 2k on i to v converter in place of 4.7k. My circuit and wave from is attached.So please guide me to solve this.

Code:
/**********************************************************************************************************************************************/
int main(void)
{
	unsigned char i=0;
	
	PORTD=0XFF;
	DDRD=0XFF;	
    /* Replace with your application code */
    while (1) 
    {
	 i=i+1;
	 
	 if (i>=250)
	 {
	  i=0;
	 }
		  _delay_ms(50);
	 	
      PORTD=i;
	}
}
 

Attachments

  • dac0800_sck.pdf
    64.3 KB · Views: 93
  • dac0800_wave.jpg
    dac0800_wave.jpg
    519.6 KB · Views: 65
Last edited by a moderator:

You don't show the ATmega part of the circuit. I see that DAC800 LSB is unusually connected to A8, may be it's just misconnected data lines.
 

I also give fix value by putting "PORTD=254" or "PORTD=128" but on 254 it give full output (this is correct) but on 128 it give 0.7V. So and DSO also show correct voltage level on microcontroller port pins and there is no voltage drop portd pin.Please see the reference voltage pin. As I told I getting 0V on +Vref pin of DAC but before 4.7K it is 5V. So this is correct??
 

Please see the reference voltage pin. As I told I getting 0V on +Vref pin of DAC but before 4.7K it is 5V. So this is correct??
Yes.

I noticed an error in your application schematic. Vlc must be connected to ground to achieve correct logic thresholds for µC control.

Floating Vlc pin can well explain the reported arbitrary output signal levels.
 

I connect Vlc with ground and also give +12V on +v and also on pin 14 by 4.7k resistance. but still not working.
 

Please any one provide me exect schematic how to interface dac0800 with avr
 

Hi,

Please any one provide me exect schematic how to interface dac0800 with avr
May I ask why you don´t provide the complete schematic instead? Read post#2.

Klaus
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top