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

ISR and global variables

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



Joined: 24 Nov 2007
Posts: 5

View user's profile Send private message

ISR and global variables
PostPosted: Thu Nov 29, 2007 10:21 am     Reply with quote

I'm running Timer1 on a 16F866 and I want it to set a flag that my mail program uses. Problem is my ISR for timer1 reads globals as 0 and outside the ISR any globals it sets are not changed.

Any ideas?
Ttelmah
Guest







PostPosted: Thu Nov 29, 2007 11:26 am     Reply with quote

Er.
It works for everyone else!....
Look at ex_rtctimer.c
Look at how 'calender_time' is declared in time.h, and how it is used in rtctimer.c
You are not using multiple compilation units are you?. If so, are you sure you have setup the link declaration correctly.

Best Wishes
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