View previous topic :: View next topic |
Author |
Message |
Mrinmoy Dey
Joined: 23 Jan 2018 Posts: 44
|
PIC16F54 Timer Interrupt Issue |
Posted: Thu Jun 11, 2020 7:44 am |
|
|
Hi
I am using PIC16F54 in one of my projects, where I need to run the only timer at 50milliseconds. But I can't find the timer interrupt(i.e. INT_TIMER0) to execute the ISR/ clear the interrupt/ enable the interrupt in 16f54.h file. Can someone help me?
My compiler version is v5.083
Thank you. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Thu Jun 11, 2020 7:55 am |
|
|
The reason is very simple. The PIC16F54, does not support interrupts.
Look at the data sheet.
It doesn't have any. It is a very early PIC, with very limited abilities.
It was 'old' ten years ago.
It is probably one of the 'least capable' PIC's ever made. Why anyone would
be using that chip now, is quite incomprehensible.
A chip like the 16F15344. is pin compatible, has 4* the ROM. more RAM,
and a complete set of peripherals _with interrupts_. Runs faster, draws less
power.
Last edited by Ttelmah on Thu Jun 11, 2020 8:07 am; edited 1 time in total |
|
|
Mrinmoy Dey
Joined: 23 Jan 2018 Posts: 44
|
|
Posted: Thu Jun 11, 2020 8:07 am |
|
|
Oops!
It is overlooked somehow.
Sorry for such a mistake. Will use some better one obviously. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Thu Jun 11, 2020 8:09 am |
|
|
It's odd actually, since most other PIC's did have interrupts. |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Thu Jun 11, 2020 9:48 am |
|
|
It was probably a custom PIC for a client and they didn't need interrupts. If you have a high enough volume, you can get a good price on such 'custom' PICs.
When you look at the HUGE range of PICs available, there are plenty of 'WHY did they make THAT' !! |
|
|
gaugeguy
Joined: 05 Apr 2011 Posts: 303
|
|
Posted: Thu Jun 11, 2020 1:55 pm |
|
|
The PIC16C54 did not have any interrupts and the PIC16F54 was just a flash version of the same chip with no new features added.
I started out using the PIC16C55 which was the 28 pin version of that chip.
Really nice at the time because it was cheap, did not need external ROM and didn't have to pay for custom mask ROM since it was OTP (one time programmable). |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19518
|
|
Posted: Thu Jun 11, 2020 11:58 pm |
|
|
I agree with Jay's comment about being a custom version. Many PIC's are.
It was just 'odd'' that given the chip already had interrupts in other devices
at the same time, dropping them seemed 'weird'... |
|
|
|