software interrupt | Cypress Semiconductor
Hey everyone, I want monitor a number of current channels like the note here: http://www.cypress.com/file/102911/download
However, I cant use the timer to trigger the interrupt, because I dont know how long my program run, so there's a chance the interrupt will be triggered again before my program finish. So I'd like to use the software interrupt in order to switch between different input channels.
In my ADC Feedback1, I got 2 signals which are voltage from the sense resistors, I want to sequencially monitor them and add them together to display to an LCD.
Follow the above conversation, I used the ISR component, then used the Control register to trigger the interrupt. Inside the interrupt routine, I only did 1 single task is to switch the inputs of the AMux from one to the other. But it doesnt do what I expected. No current is updated on the LCD, Iload = 0.
I checked the Ichanel, it's actually increase from 1 to 2. Could you please point out to me what went wrong...
I got the project to run perfectly fine with a signal channel...but I dont think it's a good idea to have extra ADC to monitor extra channel...just because I want to monitor at least 4 channel.
Please see the attachment for my whole project