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

CAN Bus development kit 18F458 vs 18F4580

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
greg@gjsonline.com



Joined: 20 Jul 2007
Posts: 4

View user's profile Send private message

CAN Bus development kit 18F458 vs 18F4580
PostPosted: Mon Jul 23, 2007 6:17 am     Reply with quote

Can anyone help me here.
The CAN bus development kit ships with a 18F4580 in Node A. All the example code is written for 18F458 does anyone know what the differences might be?

Thanks in advance
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Mon Jul 23, 2007 6:40 am     Reply with quote

Greetings,

I do not have the CAN bus development kit.
Differences between the 18F4580 and 18F458:
18F4585 has the ECAN module and supports more types of CAN hardware configuration (legacy mode, FIFO, more filter / acceptance masks, etc);
more program memory
2 additional analog inputs
etc.
(datasheet comparison)

I would suspect the most important difference with regards to the CAN bus kit is the ECAN module.

Cheers,
JMA
ferrumvir



Joined: 01 Feb 2006
Posts: 64
Location: England

View user's profile Send private message Visit poster's website

PostPosted: Mon Jul 23, 2007 4:37 pm     Reply with quote

The above points about more memory and more ADC etc. are all true.

However if you are wondering what changes need to be made to the code to convert PIC18F458 to PIC18F4580, just one, the include file for the device.

Code:
#include <18F458.h>


Code:
#include <18F4580.h>


This is certainly true for the PIC18F258 and PIC18F2580. I've not tested it with the larger format PICs.

Cheers Scott
greg@gjsonline.com



Joined: 20 Jul 2007
Posts: 4

View user's profile Send private message

PostPosted: Mon Jul 23, 2007 4:59 pm     Reply with quote

Thanks

and <18xxx8.c> to <18F4580.c>
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