I am having trouble with the overcurrent interrupt function in the ADE7878
the ADE does not give an interrupt on overcurrent, and i cant figure out why. I suspect that there is a problem in the initialization of the registers, but i have tried multiple different ways and noone worked.
i would appreciate it if there is someone who could point me in some kind of direction, since im basically going in circles right now.
Relevant code :
Interrupt function :
I am supplying the overcurrent with a pico oscilloscope
and i am watching interrupt via a serial com port
Any help appreciated :D