View previous topic :: View next topic |
Author |
Message |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
PIC 12F1571 not in the list of devices |
Posted: Fri May 29, 2015 7:19 am |
|
|
anyone have any suggestions on how to solve it?
I tried to edit the 12f1501.h file to resolve this, but does not.
\ 12F1571.H: 2: 9: Info # 300 More info: Device database: "C: \ Program \ Files \ PICC \ dll \ 5008 \ devices5.dat"
\ 12F1571.H: 2: 9: Error # 24 Unknown device type "PIC12F1571"
1 Errors, 0 Warnings.
Build Failed. _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Fri May 29, 2015 7:29 am |
|
|
ver 5.008 was
a) still buggy
b) did not offer support for the device in question.
get the update to 5.042 or later and you will be fine. |
|
![](templates/subSilver/images/spacer.gif) |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
|
Posted: Fri May 29, 2015 7:33 am |
|
|
asmboy wrote: | ver 5.008 was
a) still buggy
b) did not offer support for the device in question.
get the update to 5.042 or later and you will be fine. |
tks. _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
|
Posted: Fri May 29, 2015 10:57 am |
|
|
It worked, but now I realized that #USE TOUCHPAD function does not work for this PIC model
Error#99 Option invalid Bad Pin: 97
I have to declare it manually _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19360
|
|
Posted: Fri May 29, 2015 11:33 am |
|
|
Of course it won't.
The #USE TOUCHPAD function is for chips with the touchpad hardware. It doesn't emulate the CVD library.
I posted a basic CVD function in this thread:
<http://www.ccsinfo.com/forum/viewtopic.php?t=52461&highlight=cvd> |
|
![](templates/subSilver/images/spacer.gif) |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
|
Posted: Fri May 29, 2015 2:00 pm |
|
|
Ttelmah wrote: | Of course it won't.
The #USE TOUCHPAD function is for chips with the touchpad hardware. It doesn't emulate the CVD library.
I posted a basic CVD function in this thread:
<http://www.ccsinfo.com/forum/viewtopic.php?t=52461&highlight=cvd> |
Very cool.
I tested your routine, but the read_adc() returns only one. _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
|
Posted: Fri May 29, 2015 2:01 pm |
|
|
Ttelmah wrote: | Of course it won't.
The #USE TOUCHPAD function is for chips with the touchpad hardware. It doesn't emulate the CVD library.
I posted a basic CVD function in this thread:
<http://www.ccsinfo.com/forum/viewtopic.php?t=52461&highlight=cvd> |
Very cool.
I tested your routine, but the read_adc() returns only one. _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19360
|
|
Posted: Sat May 30, 2015 10:19 am |
|
|
You have to ensure you have configured the ADC clock correctly for the speed your chip is running. You have to ensure you have setup the ADC correctly to connect to the pins you are using. You have to ensure the correct pins are driven and read. All basic 'adapt the program for your chip' operations.
As posted the routine works.
Read_adc, is not going to return '1', unless something is very wrong, with your setup/hardware. It returns a 10bit integer as setup, and simple noise would ensure that the chances of returning '1' are only tiny...
You also need the hardware configured as described in the Microchip application note. |
|
![](templates/subSilver/images/spacer.gif) |
humbertokramm
Joined: 29 May 2015 Posts: 7
|
|
Posted: Sat May 30, 2015 10:27 am |
|
|
Ttelmah wrote: | You have to ensure you have configured the ADC clock correctly for the speed your chip is running. You have to ensure you have setup the ADC correctly to connect to the pins you are using. You have to ensure the correct pins are driven and read. All basic 'adapt the program for your chip' operations.
As posted the routine works.
Read_adc, is not going to return '1', unless something is very wrong, with your setup/hardware. It returns a 10bit integer as setup, and simple noise would ensure that the chances of returning '1' are only tiny...
You also need the hardware configured as described in the Microchip application note. |
It is likely to have been just that. I'm trying to solve two problems at once and perhaps losing myself in it. Thanks for your help. _________________ Humberto Kramm
looking for questions to answer 42 |
|
![](templates/subSilver/images/spacer.gif) |
|