urakhai911
Newbie level 6
Hey EDA World,
I am working on integrating CAN and USB together on the same PIC on the Ethernet Starter Kit.
The example code that came with the CAN library had the PIC configured it work at 80 MHz but successful communication only occurred at 4Mhz.
80000000 = System Speed
1000000 = 1Mbit Communication
I am using an external oscillator which is configured to 80Mhz with PLL for the system frequency. The problem is that even though the in the initialization I tell the CAN module that the PIC is operating at 80Mhz it doesn't work. When I tell it that it is working at 80Mhz and switch the clock to the internal clock configured to 4Mhz then it works.
I am extremely confused, is this a problem with the library or is it something that I am doing.
P.S. I know the problem isnt with the external oscillator because i configured the internal FRC oscillator to 80Mhz to check and I get the same results.
Any suggestions would be appreciated! Thanks a lot!
I am working on integrating CAN and USB together on the same PIC on the Ethernet Starter Kit.
The example code that came with the CAN library had the PIC configured it work at 80 MHz but successful communication only occurred at 4Mhz.
Code C - [expand] 1 CANSetSpeed(CAN1,&canBitConfig,80000000,1000000);
80000000 = System Speed
1000000 = 1Mbit Communication
I am using an external oscillator which is configured to 80Mhz with PLL for the system frequency. The problem is that even though the in the initialization I tell the CAN module that the PIC is operating at 80Mhz it doesn't work. When I tell it that it is working at 80Mhz and switch the clock to the internal clock configured to 4Mhz then it works.
I am extremely confused, is this a problem with the library or is it something that I am doing.
P.S. I know the problem isnt with the external oscillator because i configured the internal FRC oscillator to 80Mhz to check and I get the same results.
Any suggestions would be appreciated! Thanks a lot!