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

X  

PIC18F258-E/LSQTP Datasheet(PDF) 236 Page - Microchip Technology

Part # PIC18F258-E/LSQTP
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/LSQTP Datasheet(HTML) 236 Page - Microchip Technology

Back Button PIC18F258-E/LSQTP Datasheet HTML 232Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 233Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 234Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 235Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 236Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 237Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 238Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 239Page - Microchip Technology PIC18F258-E/LSQTP Datasheet HTML 240Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 236 / 402 page
background image
PIC18FXX8
DS41159E-page 234
© 2006 Microchip Technology Inc.
19.7.1
TIME QUANTA
As already mentioned, the time quanta is a fixed unit
derived from the oscillator period and baud rate
prescaler. Its relationship to TBIT and the nominal bit
rate is shown in Example 19-2.
EXAMPLE 19-2:
CALCULATING TQ,
NOMINAL BIT RATE AND
NOMINAL BIT TIME
The frequencies of the oscillators in the different nodes
must be coordinated in order to provide a system wide
specified nominal bit time. This means that all oscilla-
tors must have a TOSC that is an integral divisor of TQ.
It should also be noted that although the number of TQ
is programmable from 4 to 25, the usable minimum is
8TQ. A bit time of less than 8 TQ in length is not
ensured to operate correctly.
19.7.2
SYNCHRONIZATION SEGMENT
This part of the bit time is used to synchronize the
various CAN nodes on the bus. The edge of the input
signal is expected to occur during the sync segment.
The duration is 1 TQ.
19.7.3
PROPAGATION SEGMENT
This part of the bit time is used to compensate for
physical delay times within the network. These delay
times consist of the signal propagation time on the bus
line and the internal delay time of the nodes. The length
of the Propagation Segment can be programmed from
1TQ to 8 TQ by setting the PRSEG2:PRSEG0 bits.
19.7.4
PHASE BUFFER SEGMENTS
The phase buffer segments are used to optimally
locate the sampling point of the received bit within the
nominal bit time. The sampling point occurs between
Phase Segment 1 and Phase Segment 2. These
segments can be lengthened or shortened by the
resynchronization process. The end of Phase Segment
1 determines the sampling point within a bit time.
Phase Segment 1 is programmable from 1 TQ to 8 TQ
in duration. Phase Segment 2 provides delay before
the next transmitted data transition and is also
programmable from 1 TQ to 8 TQ in duration. However,
due to IPT requirements, the actual minimum length of
Phase Segment 2 is 2 TQ or it may be defined to be
equal to the greater of Phase Segment 1 or the
Information Processing Time (IPT).
19.7.5
SAMPLE POINT
The sample point is the point of time at which the bus
level is read and the value of the received bit is deter-
mined. The sampling point occurs at the end of Phase
Segment 1. If the bit timing is slow and contains many
TQ, it is possible to specify multiple sampling of the bus
line at the sample point. The value of the received bit is
determined to be the value of the majority decision of
three values. The three samples are taken at the sam-
ple point and twice before, with a time of TQ/2 between
each sample.
19.7.6
INFORMATION PROCESSING TIME
The Information Processing Time (IPT) is the time
segment, starting at the sample point, that is reserved
for calculation of the subsequent bit level. The CAN
specification defines this time to be less than or equal
to 2 TQ. The PIC18FXX8 defines this time to be 2 TQ.
Thus, Phase Segment 2 must be at least 2 TQ long.
TQ (
μs) = (2 * (BRP + 1))/FOSC (MHz)
TBIT (
μs) = TQ (μs) * number of TQ per bit interval
Nominal Bit Rate (bits/s) = 1/TBIT
CASE 1:
For FOSC = 16 MHz, BRP<5:0> = 00h and
Nominal Bit Time = 8 TQ:
TQ = (2 * 1)/16 = 0.125
μs (125 ns)
TBIT = 8 * 0.125 = 1
μs (10-6s)
Nominal Bit Rate = 1/10-6 = 106 bits/s (1 Mb/s)
CASE 2:
For FOSC = 20 MHz, BRP<5:0> = 01h and
Nominal Bit Time = 8 TQ:
TQ = (2 * 2)/20 = 0.2
μs (200 ns)
TBIT = 8 * 0.2 = 1.6
μs (1.6 * 10-6s)
Nominal Bit Rate = 1/1.6 * 10-6s =
625,000 bits/s
(625 Kb/s)
CASE 3:
For FOSC = 25 MHz, BRP<5:0> = 3Fh and
Nominal Bit Time = 25 TQ:
TQ = (2 * 64)/25 = 5.12
μs
TBIT = 25 * 5.12 = 128
μs (1.28 * 10-4s)
Nominal Bit Rate = 1/1.28 * 10-4 =
7813 bits/s
(7.8 Kb/s)



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