Hi Dan,

On Fri, Jun 25, 2010 at 6:52 PM, Dan Toganel <[email protected]> wrote:
> Hi all,
>
> I need to develop a CAN driver for SJA 1000 controller.
> What is not very clear for me is the interpretation of Bit Timing Registers.
> More exactly what is the connection between BTR0 (Baud Rate Prescaler
> and Synchronization Jump Width) and BTR1 (Time Segment 1 and Time
> Segment 2) with the Nominal Bit Time (Synchronization, Propation Time,
> Phase Buffer 1, Phase Buffer2 Segments) from CAN specification.

Isn't Bus Timing Register instead of Bit Timing Register?

I think you can find the relation between BTR registers and Nominal Bit Time
having a look at C 6.5.1 and 6.5.2 ([1]), and in SJA1000 source code ([2]).

> And how can I calculate the Nominal Bit Time for a certain speed (for
> example 10 Kb/second).

I don't know exactly how to do this, perhaps someone can help here,
but I can provide you some useful pointers ([3], [4], [5])
>
> Can you help me?

HTH,
Daniel

[1] http://www.nxp.com/documents/data_sheet/SJA1000.pdf
[2] http://lxr.linux.no/#linux+v2.6.34/drivers/net/can/sja1000/sja1000.c#L189
[3]http://www.port.de/downloads/pdf/CAN_Bit_Timing.pdf
[4]http://www.esacademy.com/en/library/calculators/sja1000-timing-calculator.html
[5]http://old.nabble.com/Bittiming-SJA1000-td27843225.html
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to