oops, you have to set the right channel in the timer ISR, not the adcComplete isr. Made tweaks to timer and adc isr in the outline above.
EDIT: and I should have said reti, not iret, though I'm not %100 on how you get there from C, so just skip the block I recon.
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
Last edited by dcb; 05-26-2009 at 12:18 AM..
|