I'm using an CAN-USB device as my second CAN device.
I was using the internal clock (CLK_SRC set in CANCTRL register) and I had a timing problem. The M52235EVB have a 25MHz crystal and the SYNCR MFD bits have a 0x4 value, and RFD have 0x0, so the internal clock should be 25MHz x 12 = 300 MHz, but when setting PRESDIV using 300 MHz, communication doesn't work. I've try with 300MHz/2 = 150 MHz too, cause the documentation is talking about F(sys/2), but it doesn't work either.
I actually working with EXTAL as clock source (CLK_SRC bit in CANCTRL register), and set PRESDIV with this value and the communication is working well, so maybe my internal frequency isn't 300MHz or 150MHz.
Alban, you're talking using 2 CAN modules of the same micro. Are you talking about setting the RX buffers to different ID, or there is multiple CAN controler on the micro ?
Thank you for your help
Fred Talbot
Message Edited by FredT on
2007-10-19 04:45 PM