I am trying to implement SPI communication with Raspberry Pi.
Steps I have followed:
1. Provided power via DC jack 9V input.
2. Connected the PM0 and PM1 pins (near the crystal oscillator) to the AGND pin to use normal mode .
3. Setup the wiring (MISO, MOSI, SCLK, CS) with Raspberry Pi.
4. Run the code to write (0x12AB) to PGA_GAIN (0x04B9). I have verified the command header is issued properly by the Raspberry Pi.
Question 1 - When I have connected these pins to AGND, the IRQ1B LED is being lit constantly. Looking at the datasheet of evaluation board, I can't get any hint about this issue. Previously when the PM0 and PM1 were not connected to AGND, the LED was off.
Question 2 - How do I check if the ADE9078 is receiving the SPI command or not?
Question 3 - Where should the SPI pins be connected to on the evaluation board? Is it via the connection points near the IC or via the SPI points on isolated P2?
I have tried by connecting to both of these options but both of them don't seem to work yet.
Since the MOSI, CLK and CSB signals are generated by the Raspberry Pi, they seem correct to me. But the MISO signal doesn't show what I expected. Below are the graphs:
Fig 1: MOSI signal for writing into PGA_GAIN register.
Fig 2- MOSI signal to read from PGA_GAIN register.
Figure 3 - CLK, MOSI (Green) and MISO(Purple). MOSI has issued command to read but the MISO line shows no response to the command.
Edited typing errors.
[edited by: GauravBh at 6:51 AM (GMT -4) on 17 Aug 2023]