I'm a bit surprised you're getting any interrupts tripped at all because I don't see anything that actually enables them. Well, I do see the setting of PIE1 and that might do it but with DT-INTS you usually doIs your voltage divider connected to AN0?Code:@ INT_ENABLE TMR1_INT @ INT_ENABLE AD_INT
Which chip are you using?
/Henrik.
Bookmarks