AnsweredAssumed Answered

ADE7754 interfacing with Atmega16

Question asked by mudit on May 27, 2014
Latest reply on Dec 23, 2014 by dlath

I am interfacing ADE7754 IC with ATmega16 inorder to read RMS and current values the problem i am facing is as follows

 

1.Connected IRQ pin with my external interrupt pin but its not triggering the interrupt following are the register configuration

 

    spi_write(0x80|0x0A); //to select Operational Mode Register   

     spi_write(0x24);     // Current channel AD converter off

            _delay_us(300);

           _delay_us(200);             

     spi_write(0x80|0x0B); //to select Measurement mode register     

     spi_write(0x70);

            _delay_us(200);          

     spi_write(0x80|0x0F); //to select Interrupt enable register     

      spi_write(0x03);          

       spi_write(0x80);

       _delay_us(300);           

      spi_write(0x80|0x11); //to select Interrupt status register               

      spi_write(0x00);          

       spi_write(0x00);

       _delay_us(300);

 

2. How to check that my SPI communication is working properly

 

for testing i am following the circuit which is given in the data sheet

Attachments

Outcomes