best energy meter ic
Hi, Im working with the ADE7758, and I cant comunicate correctly with my uC, is a freescale hc908gp32, does anyone knows the correct configuration for this uC. In other way i will write my expirience with the comunication, (1) the uC and the ADE has to have the same configuration of SPI, the SCLK has to be on low level, and the data in to the ADE goes on the falling edge of SCLK, the data out from the ADE goes on the rising edge. (2) you have to generate the SCLK, for example when i work the teh uC of freescale, and I read tha data that the ADE supost to send me, I couldnt do it because I have to send, from the uC some data, any data, after you decide wich register to read, so you can generate the SCLK for example to read the AVRMS you send a 0x0D you dont recevie nothing, then the ADE will send 3 bytes so the uC has to send 3 bytes too to generate the SCLK so the uC will send 0x00 and will read the fist byte (msb) again you send 0x00 and will read teh 2 byte, and you send the last byte 0x00 and will read at the same time the third byte. well this is what i can tell you about it, and i cant comunicate correctly my uC, hc908gp32 from freescale, with tha ADE7758, if you know something pls let me know