View previous topic :: View next topic |
Author |
Message |
jujoab
Joined: 05 Aug 2017 Posts: 41 Location: brazil
|
project wizard for pic 16F506 |
Posted: Tue Aug 15, 2017 8:36 pm |
|
|
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
|
|
Posted: Tue Aug 15, 2017 11:28 pm |
|
|
The 16F506 doesn't have any interrupts. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Tue Aug 15, 2017 11:32 pm |
|
|
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
|
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19513
|
|
Posted: Wed Aug 16, 2017 5:38 am |
|
|
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
|
|
Posted: Wed Aug 16, 2017 8:14 pm |
|
|
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
|
|
Posted: Thu Aug 17, 2017 12:52 am |
|
|
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. |
|
|
|