Hi all, I'm using a 16F877A in combination with an AD7731 (A/D converter).
I need to measure the differential voltage from a wheatsone bridge... everything goes right, but after a interrupt arrives, the program turns back from the interrupt routine and the variables I use to do the measure are changed...
Why so? The interrupt would not delete/use the ram I use... or do it?
Thank You very much,
Pota
asmallri
Joined: 12 Aug 2004 Posts: 1635 Location: Perth, Australia
Posted: Sat Oct 29, 2005 3:34 am
YOur variables should not change. Are you sure that you have no overlaid the variables in the mainline with those used in your interrupt handler? Do you do any asm code in your interrupt handler?
You may need to post some code.. _________________ Regards, Andrew
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum