Hi!
> Bus could be flooded due to bitrate mismatch. If only one device is sending
> at a time, then the width of the shortest pulse on the bus equals to the bit
> time of this sening node. Just check if it's 2us (0.5Mbps) or not.
>
OK, I checked the clock speed things again and it's absolutely correct. Here is the code:
/* Set Can enable, use IPBusclk (24 MHz),clear rest */
CANCTL1 = 0xC0; // CANE = 1, CLKRSRC = 1 (Bus Clock)
/* Set timing for .5Mbits/ sec */
CANBTR0 = 0xC2; /* SJW=4,BR Prescaler= 3(24MHz CAN clk) */
CANBTR1 = 0x58; /* Tseg2 = 6, Tseg1 = 9 (Tseg1 + Tseg1 + Sync(=1) = 16 => 8 Mhz / 16 = 0.5 Mhz */
I adjusted the Tseg timings a bit because the manual says that my original timings weren't standard compliant but I didn't make a difference. The bit width on the scope was also correct.
Johannes
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/68HC12/<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/68HC12/join (Yahoo! ID required)
<*> To change settings via email:
mailto:
68HC12-digest@...
mailto:
68HC12-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
68HC12-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/