This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How to extend CAN baudrates for LPC 2294 platform


I need to extend CAN baudrates header for LPC-2294
(packages\devs\can\arm\lpc2xxx\current\include\can_lpc2xxx_baudrates.h)
for frequency 14.7456MHz + its multiple 2 and 4.
I am trying to  understand how these tables were computed and it seems
to me that rows in the table for CYGNUM_CAN_LPC2XXX_VPB_CLK ==
30000000 should be shifted up, because some rows are the same like in
table for 60MHz, so it doesn't make sense for me. It is probably
question for author - Uwe Kindler. I guess it is copy &paste error.

I think that I should find minimum for equation:
CYGNUM_CAN_LPC2XXX_VPB_CLK/BRP/bitrate = (TSEG1 + 1) + (TSEG2 +1) + (SWJ +1)
I know TSEG1 is like 80% of sum on the right side, but I don't
understand how to determine it.

Anyway, does anyone have CAN baudrate calculator in spreadsheet?

I appreciate any help. Thanks.
Bronislav Gabrhelik

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]