Monitoring Data Coming Into DMA in Real Time | Cypress Semiconductor
Monitoring Data Coming Into DMA in Real Time
I have a shunt monitor using an A7840 isolating amplifier to monitor the current of a DC load.
I want the Sigma Delta data converter to double as a device that records current and acts as a circuit breaker.
Currently, I have the Sigma Delta putting the current (amps) samples into memory using the DMA. When the numbers exceed a certain value, I want an interrupt to fire triggering a GPIO flag that will light an LED. The interrupt will also remove current from the load.
What is the best way to code this? I could use a comparator but I am using the A7840 which has a small offset that I am using code to calibrate out. Also, its output is differential. For optimum accuracy, I think code is the best way, unless someone has another idea.