CAN-settings for PIC18F4585



Hi,

I 'm programming a PIC18F4585 with MPLAB. I want to use the CAN option
and I have made the basic C and H files with the aplication maestro of
Microchip.
I 'm working on a clock frequency of 40MHz.

These are the settings I have calculated for a baudrate of 125k.

#define BAUD_RATE_PRESC 16
#define SJW_TIME 1
#define SAMPLES 1
#define PROP_TIME 2
#define PH_SEG_1 4
#define PH_SEG_2 3

Can someone help me to find the right configuration?

Thanks

Mich

.



Relevant Pages