Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

mcp2515 communication

hello everybody:

I wanna use CAN with 100K bps, so I configured mcp2515 related register like this:

Fosc = 16M

BRP = 4 // TQ = (2 * (4 + 1))/16M = 5/8 us

PS1 = 3 // seg1 = 4TQ

PS2 = 3 // seg2 = 4TQ

PRSEG = 6 // propseg = 7Q

syncseg = 1TQ

so the baudrate should be 1/(1TQ + 4TQ + 4TQ + 7Q) = 100k bps

but from the oscilloscope, I saw the frequency is 1K, I don't know why and

what the matter is?

when mcp2515 works in loopback mode, sending or receiving message runs

well. when mcp2515 works in normal and communicate with ZLGCAN,ZLGCAN cannot

receive any message.so please give me some suggestion,thank you
No RepliesBe the first to reply