View previous topic :: View next topic |
Author |
Message |
dossdev
Joined: 08 Jul 2009 Posts: 24
|
PIC16F526 - Timer Interrupts - Are they possible? |
Posted: Tue Jul 28, 2009 9:22 am |
|
|
I'm attempting to implement a timer0 interrupt, but it's looking (according to the datasheet) like this may not be possible. Is there a way to create an RTC ISR without using the WDT? |
|
|
adesport
Joined: 03 Apr 2008 Posts: 18 Location: France
|
|
Posted: Tue Jul 28, 2009 10:02 am |
|
|
Hi,
The datasheets shows that there is no interruption features on this PIC. |
|
|
dossdev
Joined: 08 Jul 2009 Posts: 24
|
|
Posted: Tue Jul 28, 2009 10:04 am |
|
|
Too bad I didn't notice that when I selected the part. Well maybe I can use the WDT as pseudo timer ISR? |
|
|
adesport
Joined: 03 Apr 2008 Posts: 18 Location: France
|
|
Posted: Tue Jul 28, 2009 10:09 am |
|
|
The WDT will restart your PIC once it'll time out.
You can't catch the interruption and write your own ISR.
Sorry |
|
|
dossdev
Joined: 08 Jul 2009 Posts: 24
|
|
Posted: Tue Jul 28, 2009 10:25 am |
|
|
Thanks for your help adesport. Fortunately there appears to be a migration path up to other pin compatible devices like the 16F616 and 16F676. |
|
|
bungee-
Joined: 27 Jun 2007 Posts: 206
|
|
Posted: Tue Jul 28, 2009 10:33 am |
|
|
I was looking at datasheet and this controller does not have ANY interrupts. I would recomend to you to use another PIC.
If you are limited with "space" then you can use PIC16F684, it has all interrupts you need and more |
|
|
adesport
Joined: 03 Apr 2008 Posts: 18 Location: France
|
|
Posted: Tue Jul 28, 2009 10:34 am |
|
|
Microchip guys work () hard to keep compatibility which allows PIC switching easly. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
|
dossdev
Joined: 08 Jul 2009 Posts: 24
|
|
Posted: Tue Jul 28, 2009 12:54 pm |
|
|
Thanks PCM, you've always got great info - really appreciate it. I was hoping to not have to change micros. The alternate parts with interrupts cost a few dimes more. Seems my customers always want as cheap as possible. I'll give your approach a try. It seems like it just might fit my application. Thanks again! |
|
|
adesport
Joined: 03 Apr 2008 Posts: 18 Location: France
|
|
Posted: Wed Jul 29, 2009 1:53 am |
|
|
Aha, nice! |
|
|
|