Hi hmani,
After you explained, I understood a little bit of the line accumulation mode. But I have some doubts.
The datasheet (pg 61) says that the LINECYC register sets the number of half-line cycles that the active, reactive and apparent energies are accumulated for in the line accumulation mode. What is meant by half-line cycle? Does that mean half of sine wave that is say from 0 to pi? How is time and half-cycle correlated? (By frequency but basically what is meant by half-cycle?)
Also suppose in the LINECYC register I write some integer which corresponds to say time 't'. Then after time 't', the WATTHR register will increment by 1, right?
Also could you explain the interrupt related to LENERGY? Does that make IRQ low whenever time 't' finishes and when WATTHR is incremented? Or when does it make IRQ low?
Also I am not sure of some values in the calibration process: I have posted my doubts here :
Could you please clear these as well?
Thanks a lot for your help Sir!
- Regards,
Kimaya