Re: TouCAN too slow by 2X?
"Corey, Richard" <[email protected]> Tue, 26 Jun 2007 10:56:01 -0700
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers |
|---|---|
| Message-ID | <CE6D1945BC24ED4B923A20CB128F45D803E9CFAD@lyncourier.aerospace.craneae.com> |
Back then, I had missed a half-speed feature - I think were driving the
external bus at half-speed:
8.5.2 Clock Out (CLKOUT)
CLKOUT has the same frequency as the general system
clock (GCLK2_50). Unlike the main system clock
GCLK1/GCLK2 however, CLKOUT (and GCLK2_50) represents
the external bus clock, and thus will be
one-half of the main system clock if the external bus is
running at half speed (EBDF = 0b01). The
CLKOUT frequency (system frequency) defaults to VCO/2.
With a 40 MHz clock, I used CANbus prescaler dividers of 2,4,8 or 16
and 20 Tq/bit for 1 MBPS, 500, 250 or 125.
With a 56 MHz clock, I think you need to get a factor of 7 into the
prescaler, i.e. bring 56 MHz down to 8 MHz, but can you still get 1
MBPS?
Check the minimum allowable values of the segments, and where your
sample point needs to fall - these may not be legal or workable values,
but are a starting point:
divide by 7
56 --> 8 MHz ~ 125 ns
Want 8 Tq per bit
SynchSeg + (PROPSEG+1) + (PSEG1+1) + (PSEG2+1) =
1 + 4 + 1 + 2 = 8 time quanta per bit
Rick Corey
We value your opinion! How may we serve you better?
Please click the below survey link to tell us how we are doing.
http://www.craneae.com/surveys/satisfaction.htm
Your feedback is of the utmost importance to us! Thank you for your time!
######################################################################
Attention:
The information contained in this email message may be privileged and is confidential information intended only for the use of the recipient, or any employee or agent responsible to deliver it to the intended recipient. Any unauthorized use, distribution or copying of this information is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify the sender immediately and destroy the original message and all attachments from your electronic files.
This email was scanned and cleared by MailMarshal.
######################################################################
[Non-text portions of this message have been removed]