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 CCS Technical Support

INT RTCC & INT TIMER0

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mayur.k.vadukul



Joined: 07 Jul 2022
Posts: 40

View user's profile Send private message

INT RTCC & INT TIMER0
PostPosted: Fri Aug 05, 2022 8:35 am     Reply with quote

Hi,

I am new to CCS and I have project that requires both TIMER0 & RTCC. In the CCS, both end up on same place when the interrupt occurs. How do I know whether the interrupt is due to TIMER0 or RTCC?

TIMER0 gives me my counters for various jobs, and RTCC is used for Alarm for real time.

Any Idea?
_________________
MVadukul
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Aug 05, 2022 10:38 am     Reply with quote

Timer0 and RTCC are two names for the same timer. RTCC is the older
name and Timer0 is the preferred name.

If you have more questions, post your PIC.
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Sat Aug 06, 2022 3:43 am     Reply with quote

Normally the best way to get a genuine RTC, would be to add an external
RTC chip like a DS1307. It's pulse output can then be connected to the
external interrupt and gives you a genuine RTC.

The RTCC (real time clock counter), does not give you a real time clock
without a lot of extra software, and it is timer0. You cannot use both
at the same time.
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