View Single Post
Old 05-25-2009, 11:56 PM   #1425 (permalink)
dcb
needs more cowbell
 
dcb's Avatar
 
Join Date: Feb 2008
Location: ÿ
Posts: 5,038

pimp mobile - '81 suzuki gs 250 t
90 day: 96.29 mpg (US)

schnitzel - '01 Volkswagen Golf TDI
90 day: 53.56 mpg (US)
Thanks: 158
Thanked 269 Times in 212 Posts
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..
  Reply With Quote