This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
How to extend CAN baudrates for LPC 2294 platform
- From: "Bronislav Gabrhelik" <bgabrhelik at ahojky dot com>
- To: ecos-discuss <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Oct 2007 01:19:59 +0200
- Subject: [ECOS] How to extend CAN baudrates for LPC 2294 platform
- References: <3d344cfe0710241600y20a27f5ai77a958fa16ecdcc2@mail.gmail.com>
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