Author Topic: Nuvo7802 configuration problem  (Read 2953 times)

Vievan

  • Newbie
  • *
  • Posts: 1
    • View Profile
Nuvo7802 configuration problem
« on: December 15, 2013, 12:59:29 PM »
hello friends ,
   I am new to this forum. currently iam working in a  project in which iam using Nuvo7802 adc. I configured it and it is getting stored in the appropriate register. but i am getting the same values from the adc data register even though i change the analogue input. I haved posted the coding can someone please point out the issue......

i2c_adc_write(0x00,0x01);
delay(3000);
i2c_adc_write(0x00,0x02);
delay(250);

do{

   temp= i2c_adc_read(0x00);
   display_numaric(temp);
   
   }while((temp&0x08)==0x00);
delay(10000);

display_alphabat("READY ");
/*******************************************************/
delay(3000);

i2c_adc_write(0x00,0x96);
delay(250);

/*******************************************************/
i2c_adc_write(0x01,0x21);
delay(250);


/*******************************************************/
i2c_adc_write(0x02,0x00);
delay(250);
/*******************************************************/
i2c_adc_write(0x15,0x30);
delay(250);


/*******************************************************/
i2c_adc_write(0x1B,0x20);
delay(250);

/*******************************************************/
i2c_adc_write(0x1C,0x00);
delay(250);


Micmiczy

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Nuvo7802 configuration problem
« Reply #1 on: July 27, 2017, 05:29:36 AM »
values from the adc data register even though i change the analogue input. I haved posted the coding can someone please point out the issue......

ดูเบอร์มือถือ