CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Interrupts and variables...

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Pota78



Joined: 09 Sep 2005
Posts: 16

View user's profile Send private message

Interrupts and variables...
PostPosted: Sat Oct 29, 2005 1:42 am     Reply with quote

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 Smile
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Oct 29, 2005 3:34 am     Reply with quote

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

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group