samic45mit1
Member level 3
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.
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
Last edited by a moderator: