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

project wizard for pic 16F506

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



Joined: 05 Aug 2017
Posts: 41
Location: brazil

View user's profile Send private message

project wizard for pic 16F506
PostPosted: Tue Aug 15, 2017 8:36 pm     Reply with quote

I try to create a program that uses timer0 as a clock for pic 16F506, so I need to have a INTERRUPT code, normally
Code:

#int_TIMER0
void _isr(void()

but the wizard for the pic 16F506 don't give any option on the Interrupts selection, even after having selected
timer 0 (RTCC) / internal 512Us on TIMERS 0_2 selection.


so its impossible to write the interrupt part of the program.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 15, 2017 11:28 pm     Reply with quote

The 16F506 doesn't have any interrupts.
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Tue Aug 15, 2017 11:32 pm     Reply with quote

This is very much a 'read the chip data sheet' one.

The compiler can only give you features the chip actually has. Before starting anything you always need to check what the chip can do.
jujoab



Joined: 05 Aug 2017
Posts: 41
Location: brazil

View user's profile Send private message

http://www.microchip.com/maps/Microcontroller.aspxhttp://www
PostPosted: Wed Aug 16, 2017 5:31 am     Reply with quote

I was blaming the wizard.
of course I HAVE TO look at tables of comparisons for identifying the proper pic for the application.
but working with
http://www.microchip.com/maps/Microcontroller.aspx

or with

http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1002&mid=10&lang=en&pageId=74

the interrupts capacity info is not evident for me ???

thanks a lot

juan
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Aug 16, 2017 5:38 am     Reply with quote

The tables need to be only considered as a starting point.
You then need to look at the actual data sheet.
They allow you to rule out chips that don't have features you need, but there are lots of little details that are then missing.

The PIC12's and a few 'half way' chips like the 16F506, are the only ones that in some cases don't have any interrupts. However on lots of the bigger chips there are things like PWM's which only work in certain combinations, and simple things like shared pins that may mean you can't use all the peripherals at the same time. So the data sheet needs to be referred to.

I'd certainly not use the 16F506 for anything, since many more powerful chips are cheaper. It is a very early PIC. A device like the 16F15323, is cheaper, has more RAM, more ROM. lots more peripherals, is faster, etc. etc...
jujoab



Joined: 05 Aug 2017
Posts: 41
Location: brazil

View user's profile Send private message

PostPosted: Wed Aug 16, 2017 8:14 pm     Reply with quote

Ttelmah wrote:

I'd certainly not use the 16F506 for anything, since many more powerful chips are cheaper. It is a very early PIC. A device like the 16F15323, is cheaper, has more RAM, more ROM. lots more peripherals, is faster, etc. etc...

Hi, thanks a lot. It looks as a very good chip.
I open the compiler, v5073, but that chip does not appear on the list of devices to be selected at the beginning of the project.
but the http://www.ccsinfo.com/devices.php?page=devices shows that ccs supports the 16F15323.
Could be my installation ????
Thanks for valuable help.
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Thu Aug 17, 2017 12:52 am     Reply with quote

They list it in the device list for 5.073, but forgot the .h file.
It's in the pull down of supported chips.

It's fully there in 5.074.

Given it is listed, and in the pull down, I'd talk to CCS, and ask for the missing file.
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