View previous topic :: View next topic |
Author |
Message |
[email protected]
Joined: 20 Jul 2007 Posts: 4
|
CAN Bus development kit 18F458 vs 18F4580 |
Posted: Mon Jul 23, 2007 6:17 am |
|
|
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
|
|
Posted: Mon Jul 23, 2007 6:40 am |
|
|
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
|
|
Posted: Mon Jul 23, 2007 4:37 pm |
|
|
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 |
|
|
[email protected]
Joined: 20 Jul 2007 Posts: 4
|
|
Posted: Mon Jul 23, 2007 4:59 pm |
|
|
Thanks
and <18xxx8.c> to <18F4580.c> |
|
|
|