Hi, I'm newbie using analog devices.
I'm in a trouble with measuring current, voltage total watts etc.
I want to control ADE90XX EVAL BD with P2 connector which could communicate with SPI.
I already connect SPI pin of Master CPU to P2 connector like MOSI, MISO, CLK, CS respectively, PM1&PM0 to GND and adjust same level to 5V and GND each other.
Q1. I have no idea how to control IRQ1 pin of P2 connector to communicate. Is this pin must needed to communicate?
Master CPU based on Linux, using compiled executable file with gcc and /dev/spidev0.0 device driver.
Q2. Is there any essential address to power on SPI?
Till now, I sent many address of the registers to MOSI but the MISO answered only 0xff.
Here's the register what i used:
1. RUN : 0x480, write : 0 -> 0x4808 to measuring
2. PART_ID : 0x472, read : 8 -> 0x4728 to check ADE9000_ID(bit20)
3. STATUS1 : 0x403, read : 8 -> 0x4038 to check ZXIA value
EVERY MOSI OUTPUT IS 0XFF NOW....
If you need more information about my question, please let me know.
Thank you in advance.