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

PIC16F54 Timer Interrupt Issue

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



Joined: 23 Jan 2018
Posts: 44

View user's profile Send private message

PIC16F54 Timer Interrupt Issue
PostPosted: Thu Jun 11, 2020 7:44 am     Reply with quote

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: 19217

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 7:55 am     Reply with quote

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.
Sad

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

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 8:07 am     Reply with quote

Oops!
It is overlooked somehow.
Sorry for such a mistake. Will use some better one obviously.
Ttelmah



Joined: 11 Mar 2010
Posts: 19217

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 8:09 am     Reply with quote

It's odd actually, since most other PIC's did have interrupts.
temtronic



Joined: 01 Jul 2010
Posts: 9101
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 9:48 am     Reply with quote

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: 288

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 1:55 pm     Reply with quote

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: 19217

View user's profile Send private message

PostPosted: Thu Jun 11, 2020 11:58 pm     Reply with quote

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'...
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