View previous topic :: View next topic |
Author |
Message |
mayur.k.vadukul
Joined: 07 Jul 2022 Posts: 40
|
INT RTCC & INT TIMER0 |
Posted: Fri Aug 05, 2022 8:35 am |
|
|
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
|
|
Posted: Fri Aug 05, 2022 10:38 am |
|
|
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: 19509
|
|
Posted: Sat Aug 06, 2022 3:43 am |
|
|
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. |
|
|
|