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

PIC 12F1571 not in the list of devices

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



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PIC 12F1571 not in the list of devices
PostPosted: Fri May 29, 2015 7:19 am     Reply with quote

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
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Fri May 29, 2015 7:29 am     Reply with quote

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



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PostPosted: Fri May 29, 2015 7:33 am     Reply with quote

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
humbertokramm



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PostPosted: Fri May 29, 2015 10:57 am     Reply with quote

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
Ttelmah



Joined: 11 Mar 2010
Posts: 19360

View user's profile Send private message

PostPosted: Fri May 29, 2015 11:33 am     Reply with quote

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>
humbertokramm



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PostPosted: Fri May 29, 2015 2:00 pm     Reply with quote

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
humbertokramm



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PostPosted: Fri May 29, 2015 2:01 pm     Reply with quote

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
Ttelmah



Joined: 11 Mar 2010
Posts: 19360

View user's profile Send private message

PostPosted: Sat May 30, 2015 10:19 am     Reply with quote

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



Joined: 29 May 2015
Posts: 7

View user's profile Send private message

PostPosted: Sat May 30, 2015 10:27 am     Reply with quote

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