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

18f2455 vs 18F46J50

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



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

18f2455 vs 18F46J50
PostPosted: Wed Dec 15, 2010 3:10 pm     Reply with quote

I have a project that uses a 18f2455. I'm looking for a cheaper part and found 18F46J50. I stuck that in my code to see if it would compile and got a weird message.

*** Error 119 "C:\Program Files\PICC\drivers\pic18_usb.h" Line 187(8,63): Unknown PIC device, USB not supported in this library.
I'm using version 4.085.
I bought the USB dev kit about 3 years ago. Would this error be a compiler version problem or a USB dev kit version problem?
I don't remember if the USB.c, .h etc came with the USB part or just with the compiler.
Any thoughts,
Ringo
_________________
Ringo Davis
Ttelmah



Joined: 11 Mar 2010
Posts: 19552

View user's profile Send private message

PostPosted: Thu Dec 16, 2010 3:37 am     Reply with quote

If you look at the pic_18_usb.h file, you will find that it tests for processor numbers it 'understands'. The version you have predates support for the 46J50 being added.
Since the support needed is basically identical to that for the existing chips you can just change the test line, and tell it to treat the 46J50, as if it was a 2450. Support for this family, was added to these files, May 8th 2009. Probably fairly close to your compiler version.
You get these files, both with the kit, and updated versions with the compiler.

Best Wishes
Ringo42



Joined: 07 May 2004
Posts: 263

View user's profile Send private message

PostPosted: Thu Dec 16, 2010 3:23 pm     Reply with quote

I made that change and started getting other errors. Maybe I'll put this project on the back burner until I upgrade my compiler.
Thanks
Ringo
_________________
Ringo Davis
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