PIC18F2685-I/SP Microchip Technology, PIC18F2685-I/SP Datasheet - Page 339

IC PIC MCU FLASH 48KX16 28-DIP

PIC18F2685-I/SP

Manufacturer Part Number
PIC18F2685-I/SP
Description
IC PIC MCU FLASH 48KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2685-I/SP

Program Memory Type
FLASH
Program Memory Size
96KB (48K x 16)
Package / Case
28-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
EUSART/I2C/MSSP/SPI
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
28
Number Of Timers
4
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
8-ch x 10-bit
Package
28SPDIP
Device Core
PIC
Family Name
PIC18
Maximum Speed
40 MHz
Operating Supply Voltage
5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2685-I/SP
Manufacturer:
Microchip Technology
Quantity:
1 835
23.10 Synchronization
To compensate for phase shifts between the oscillator
frequencies of each of the nodes on the bus, each CAN
controller must be able to synchronize to the relevant
signal edge of the incoming signal. When an edge in
the transmitted data is detected, the logic will compare
the location of the edge to the expected time
(Sync_Seg). The circuit will then adjust the values of
Phase Segment 1 and Phase Segment 2 as necessary.
There are two mechanisms used for synchronization.
23.10.1
Hard synchronization is only done when there is a
recessive to dominant edge during a bus Idle condition,
indicating the start of a message. After hard synchroni-
zation, the bit time counters are restarted with
Sync_Seg. Hard synchronization forces the edge
which has occurred to lie within the synchronization
segment of the restarted bit time. Due to the rules of
synchronization, if a hard synchronization occurs, there
will not be a resynchronization within that bit time.
23.10.2
As a result of resynchronization, Phase Segment 1
may be lengthened or Phase Segment 2 may be short-
ened. The amount of lengthening or shortening of the
phase buffer segments has an upper bound given by
the Synchronization Jump Width (SJW). The value of
the SJW will be added to Phase Segment 1 (see
Figure 23-6) or subtracted from Phase Segment 2 (see
Figure 23-7). The SJW is programmable between 1 T
and 4 T
Clocking information will only be derived from
recessive to dominant transitions. The property, that
only a fixed maximum number of successive bits have
the same value, ensures resynchronization to the bit
stream during a frame.
FIGURE 23-6:
© 2009 Microchip Technology Inc.
Input
Signal
Bit
Time
Segments
T
Q
Q
.
HARD SYNCHRONIZATION
RESYNCHRONIZATION
Sync
LENGTHENING A BIT PERIOD (ADDING SJW TO PHASE SEGMENT 1)
Segment
Prop
Nominal Bit Length
Segment 1
PIC18F2682/2685/4682/4685
Phase
Q
Actual Bit Length
The phase error of an edge is given by the position of
the edge relative to Sync_Seg, measured in T
phase error is defined in magnitude of T
• e = 0 if the edge lies within Sync_Seg.
• e > 0 if the edge lies before the sample point.
• e < 0 if the edge lies after the sample point of the
If the magnitude of the phase error is less than, or equal
to, the programmed value of the Synchronization Jump
Width, the effect of a resynchronization is the same as
that of a hard synchronization.
If the magnitude of the phase error is larger than the
Synchronization Jump Width and if the phase error is
positive, then Phase Segment 1 is lengthened by an
amount equal to the Synchronization Jump Width.
If the magnitude of the phase error is larger than the
resynchronization jump width and if the phase error is
negative, then Phase Segment 2 is shortened by an
amount equal to the Synchronization Jump Width.
23.10.3
• Only one synchronization within one bit time is
• An edge will be used for synchronization only if
• All other recessive to dominant edges fulfilling
≤ SJW
previous bit.
allowed.
the value detected at the previous sample point
(previously read bus value) differs from the bus
value immediately after the edge.
rules 1 and 2 will be used for resynchronization,
with the exception that a node transmitting a
dominant bit will not perform a resynchronization
as a result of a recessive to dominant edge with a
positive phase error.
Sample Point
SYNCHRONIZATION RULES
Segment 2
Phase
DS39761C-page 339
Q
as follows:
Q
. The

Related parts for PIC18F2685-I/SP