Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F258-E/SOSQTP Datasheet(PDF) 235 Page - Microchip Technology

Part # PIC18F258-E/SOSQTP
Description  28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module
PDF  402 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F258-E/SOSQTP Datasheet(HTML) 235 Page - Microchip Technology

Back Button PIC18F258-E/SOSQTP Datasheet HTML 231Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 232Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 233Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 234Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 235Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 236Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 237Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 238Page - Microchip Technology PIC18F258-E/SOSQTP Datasheet HTML 239Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 235 / 402 page
background image
© 2006 Microchip Technology Inc.
DS41159E-page 233
PIC18FXX8
19.7
Baud Rate Setting
All nodes on a given CAN bus must have the same
nominal bit rate. The CAN protocol uses Non-Return-
to-Zero (NRZ) coding which does not encode a clock
within the data stream. Therefore, the receive clock
must be recovered by the receiving nodes and
synchronized to the transmitters clock.
As oscillators and transmission time may vary from
node to node, the receiver must have some type of
Phase Lock Loop (PLL) synchronized to data transmis-
sion edges to synchronize and maintain the receiver
clock. Since the data is NRZ coded, it is necessary to
include bit stuffing to ensure that an edge occurs at
least every six bit times to maintain the Digital Phase
Lock Loop (DPLL) synchronization.
The bit timing of the PIC18FXX8 is implemented using
a DPLL that is configured to synchronize to the
incoming data and provides the nominal timing for the
transmitted data. The DPLL breaks each bit time into
multiple segments made up of minimal periods of time
called the
Time Quanta (TQ).
Bus timing functions executed within the bit time frame,
such as synchronization to the local oscillator, network
transmission delay compensation and sample point
positioning, are defined by the programmable bit timing
logic of the DPLL.
All devices on the CAN bus must use the same bit rate.
However, all devices are not required to have the same
master oscillator clock frequency. For the different clock
frequencies of the individual devices, the bit rate has to
be adjusted by appropriately setting the baud rate
prescaler and number of time quanta in each segment.
The
Nominal Bit Rate is the number of bits transmitted
per second, assuming an ideal transmitter with an ideal
oscillator, in the absence of resynchronization. The
nominal bit rate is defined to be a maximum of 1 Mb/s.
The
Nominal Bit Time is defined as:
TBIT = 1/Nominal Bit Rate
The nominal bit time can be thought of as being divided
into separate, non-overlapping time segments. These
segments (Figure 19-7) include:
• Synchronization Segment (Sync_Seg)
• Propagation Time Segment (Prop_Seg)
• Phase Buffer Segment 1 (Phase_Seg1)
• Phase Buffer Segment 2 (Phase_Seg2)
The time segments (and thus, the nominal bit time) are,
in turn, made up of integer units of time called time
quanta or TQ (see Figure 19-7). By definition, the
nominal bit time is programmable from a minimum of
8TQ to a maximum of 25 TQ. Also, by definition, the
minimum nominal bit time is 1
μs corresponding to a
maximum 1 Mb/s rate. The actual duration is given by
the relationship:
Nominal Bit Time = TQ * (Sync_Seg + Prop_Seg +
Phase_Seg1 + Phase_Seg2)
The time quantum is a fixed unit derived from the
oscillator period. It is also defined by the programmable
baud rate prescaler, with integer values from 1 to 64, in
addition to a fixed divide-by-two for clock generation.
Mathematically, this is
TQ (
μs) = (2 * (BRP + 1))/FOSC (MHz)
or
TQ (
μs) = (2 * (BRP + 1)) * TOSC (μs)
where FOSC is the clock frequency, TOSC is the
corresponding oscillator period and BRP is an integer
(0 through 63) represented by the binary values of
BRGCON1<5:0>.
FIGURE 19-7:
BIT TIME PARTITIONING
Input
Sync
Propagation
Segment
Phase
Segment 1
Phase
Segment 2
Sample Point
TQ
Nominal Bit Time
Bit
Time
Intervals
Signal
Segment



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com