CAN Configuration
Posted: Sun Jul 26, 2009 9:02 pm
I'm trying to setup a dspic 30f4011 w/ CAN.
I can get error frames on the CAN network but can't get the PIC to transmit at 500k.
I'm using a dsPICDEM2 w/ a 8 MHz crystal. I've configured the bit timing based on the settings suggested by the Intrepidcs Microchip CAN Bit Timing Calculator. The issue seems to be that the device doesn't match this calculator at all and how you configure the MIPS setting.
I've configured the oscillator for XT_PLL8 and the MIPS at 16MIPS. I can't seem to get the correct settings for the CAN channel. Can someone provide details on what I need to do?
I'm running MPLAB v8.3 w/ Matlab 2007b and the C30 compiler.
Attached should be my model. What am I setting incorrectly?
I can get error frames on the CAN network but can't get the PIC to transmit at 500k.
I'm using a dsPICDEM2 w/ a 8 MHz crystal. I've configured the bit timing based on the settings suggested by the Intrepidcs Microchip CAN Bit Timing Calculator. The issue seems to be that the device doesn't match this calculator at all and how you configure the MIPS setting.
I've configured the oscillator for XT_PLL8 and the MIPS at 16MIPS. I can't seem to get the correct settings for the CAN channel. Can someone provide details on what I need to do?
I'm running MPLAB v8.3 w/ Matlab 2007b and the C30 compiler.
Attached should be my model. What am I setting incorrectly?