charlyking
Newbie level 4
HI ALL
I have a project using ADE7753.
Right now I am trying to write the registers inside ADE7753 with atmega168 microprocessor.
I modified some SPI code online and I do use oscilloscope to check the write and read sequence.
But the strange thing is that all the signal sequence looks fine.
I could read default value inside. The reading immediately after the write is fine but it I read the same address again, then it came out to the default value.
I am not sure if the writing is completely successful.
How could I debug the circuit and make sure the registers have been fully and successfully modified.
Anyone could provide some suggestion how to verify the writing function is working or other debugging approaches?
Thanks!
I have a project using ADE7753.
Right now I am trying to write the registers inside ADE7753 with atmega168 microprocessor.
I modified some SPI code online and I do use oscilloscope to check the write and read sequence.
But the strange thing is that all the signal sequence looks fine.
I could read default value inside. The reading immediately after the write is fine but it I read the same address again, then it came out to the default value.
I am not sure if the writing is completely successful.
How could I debug the circuit and make sure the registers have been fully and successfully modified.
Anyone could provide some suggestion how to verify the writing function is working or other debugging approaches?
Thanks!