PIC18C658 MICROCHIP [Microchip Technology], PIC18C658 Datasheet - Page 222

no-image

PIC18C658

Manufacturer Part Number
PIC18C658
Description
High-Performance Microcontrollers with CAN Module
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18C658-1/CL
Manufacturer:
Microchip
Quantity:
6
Part Number:
PIC18C658-1/L
Manufacturer:
Microchip
Quantity:
6
Part Number:
PIC18C658-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18C658-E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18C658-ES
Manufacturer:
Microchip
Quantity:
131
Part Number:
PIC18C658-I/L
Manufacturer:
Microchip
Quantity:
385
Part Number:
PIC18C658-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18C658-I/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18C658-I/PT
Manufacturer:
Microchip
Quantity:
601
Part Number:
PIC18C658-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC18C658T-E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC18CXX8
17.9
Some requirements for programming of the time
segments:
• Prop Seg + Phase Seg 1
• Phase Seg 2
For example, assuming that a 125 kHz CAN baud rate
with F
T
T
16 T
Sync Seg = 1 T
Seg 1 = 7 T
transition. This would leave 6 T
Since Phase Seg 2 is 6, by the rules, SJW could be the
maximum of 4 T
only necessary when the clock generation of the differ-
ent nodes is inaccurate or unstable, such as using
ceramic resonators. So an SJW of 1 is typically
enough.
17.10
The bit timing requirements allow ceramic resonators
to be used in applications with transmission rates of up
to 125 kbit/sec, as a rule of thumb. For the full bus
speed range of the CAN protocol, a quartz oscillator is
required. A maximum node-to-node oscillator variation
of 1.7% is allowed.
DS30475A-page 222
OSC
Q
= 500nsec. To obtain 125 kHz, the bit time must be
Q
.
OSC
= 50nsec, choose BRP<5:0> = 04h, then
Programming Time Segments
Oscillator Tolerance
= 20 MHz is desired:
Q
would place the sample at 10 T
Q
Q
; Prop Seg = 2 T
Sync Jump Width
. However, normally a large SJW is
Phase Seg 2
Q
for Phase Seg 2.
Q
; So, setting Phase
Advanced Information
Q
after the
17.11
The configuration registers (BRGCON1, BRGCON2,
BRGCON3) control the bit timing for the CAN bus inter-
face. These registers can only be modified when the
PIC18CXX8 is in Configuration mode.
17.11.1 BRGCON1
The BRP bits control the baud rate prescaler. The
SJW<1:0> bits select the synchronization jump width in
terms of number of T
17.11.2 BRGCON2
The PRSEG bits set the length, in T
tion segment. The SEG1PH bits set the length, in T
of phase segment 1. The SAM bit controls how many
times the RXCAN pin is sampled. Setting this bit to a ‘1’
causes the bus to be sampled three times; twice at
T
sample point (which is at the end of phase segment 1).
The value of the bus is determined to be the value read
during at least two of the samples. If the SAM bit is set
to a ‘0’, then the RXCAN pin is sampled only once at
the sample point. The SEG2PHTS bit controls how the
length of phase segment 2 is determined. If this bit is
set to a ‘1’, then the length of phase segment 2 is deter-
mined by the SEG2PH bits of BRGCON3. If the
SEG2PHTS bit is set to a ‘0’, then the length of phase
segment 2 is the greater of phase segment 1 and the
information processing time (which is fixed at 2 T
the PIC18CXX8).
17.11.3 BRGCON3
The PHSEG2<2:0> bits set the length, in T
phase segment 2, if the SEG2PHTS bit is set to a ‘1’. If
the SEG2PHTS bit is set to a ‘0’, then the
PHSEG2<2:0> bits have no effect.
Q
/2 before the sample point, and once at the normal
Bit Timing Configuration Registers
Q
’s.
2000 Microchip Technology Inc.
Q
’s, of the propaga-
Q
’s, of
Q
Q
for
’s,

Related parts for PIC18C658