arup
Member level 2
reading data from ade7753
Hello,
Below are few design issue i would like to discuss here ..
1) is there any issue with spi comm. of 7753 chip if CS pin is not controlled by MCU.Because same routine works with cs pin controlled by mcu .But gives corrupt data if CS pin is tied to GND(low).
a) My SPI routine is bit bang oriented.
b) There is only one device, ADE7753 on the bus.
c) MCU is pic
d) MCU freq : 20 Mz
attached is the wave form zip file with and without CS.This wave form depicts the read operation of IRQEN default value i.e 0x40.
Green : CS
Orange : Dout from 7753
Blue : Din to 7753
pink : Clk to 7753
Dout data i get from 7753 W/O CS is not same in every read operation.
2)Another issue is reading vrms . if read vrms register every 10ms (with timer interrupt) for a constant AC voltage i/p , i see avg result of such 10 samples is varying too much.What could be the problem?is it that i am not reaching to read vrms exactly at every 10ms??
3) i am trying to measure active energy . i am reading RAENERGY register at every 100 ms at unity p.f and accumulating value read in another register.But what i see that after 30 min i end up with reading error of -10%. This register is SIGNED type.But am not considered that. is it the issue? How to take into account of SIGNED type.
expecting some help.
Regards,
arp
Hello,
Below are few design issue i would like to discuss here ..
1) is there any issue with spi comm. of 7753 chip if CS pin is not controlled by MCU.Because same routine works with cs pin controlled by mcu .But gives corrupt data if CS pin is tied to GND(low).
a) My SPI routine is bit bang oriented.
b) There is only one device, ADE7753 on the bus.
c) MCU is pic
d) MCU freq : 20 Mz
attached is the wave form zip file with and without CS.This wave form depicts the read operation of IRQEN default value i.e 0x40.
Green : CS
Orange : Dout from 7753
Blue : Din to 7753
pink : Clk to 7753
Dout data i get from 7753 W/O CS is not same in every read operation.
2)Another issue is reading vrms . if read vrms register every 10ms (with timer interrupt) for a constant AC voltage i/p , i see avg result of such 10 samples is varying too much.What could be the problem?is it that i am not reaching to read vrms exactly at every 10ms??
3) i am trying to measure active energy . i am reading RAENERGY register at every 100 ms at unity p.f and accumulating value read in another register.But what i see that after 30 min i end up with reading error of -10%. This register is SIGNED type.But am not considered that. is it the issue? How to take into account of SIGNED type.
expecting some help.
Regards,
arp