PIC18F2420-I/SOC01 Microchip, PIC18F2420-I/SOC01 Datasheet - Page 168
![no-image](/images/no-image-200.jpg)
PIC18F2420-I/SOC01
Manufacturer Part Number
PIC18F2420-I/SOC01
Description
28 pin, 16 kb flash, 3804 ram, 25 i/o...
Manufacturer
Microchip
Datasheet
1.PIC18F2420-ISOC01.pdf
(412 pages)
- Current page: 168 of 412
- Download datasheet (7Mb)
PIC18F2420/2520/4420/4520
17.3.5
The master can initiate the data transfer at any time
because it controls the SCK. The master determines
when the slave (Processor 2, Figure 17-2) is to
broadcast data by the software protocol.
In Master mode, the data is transmitted/received as
soon as the SSPBUF register is written to. If the SPI is
only going to receive, the SDO output could be dis-
abled (programmed as an input). The SSPSR register
will continue to shift in the signal present on the SDI pin
at the programmed clock rate. As each byte is
received, it will be loaded into the SSPBUF register as
if a normal received byte (interrupts and status bits
appropriately set). This could be useful in receiver
applications as a “Line Activity Monitor” mode.
FIGURE 17-3:
DS39631E-page 166
Write to
SSPBUF
SCK
(CKP = 0
CKE = 0)
SCK
(CKP = 1
CKE = 0)
SCK
(CKP = 0
CKE = 1)
SCK
(CKP = 1
CKE = 1)
SDO
(CKE = 0)
SDO
(CKE = 1)
SDI
(SMP = 0)
Input
Sample
(SMP = 0)
SDI
(SMP = 1)
Input
Sample
(SMP = 1)
SSPIF
SSPSR to
SSPBUF
MASTER MODE
SPI MODE WAVEFORM (MASTER MODE)
bit 7
bit 7
bit 7
bit 7
bit 6
bit 6
bit 5
bit 5
bit 4
bit 4
bit 3
bit 3
The clock polarity is selected by appropriately
programming the CKP bit (SSPCON1<4>). This, then,
would give waveforms for SPI communication as
shown in Figure 17-3, Figure 17-5 and Figure 17-6,
where the MSB is transmitted first. In Master mode, the
SPI clock rate (bit rate) is user-programmable to be one
of the following:
• F
• F
• F
• Timer2 output/2
This allows a maximum data rate (at 40 MHz) of
10.00 Mbps.
Figure 17-3 shows the waveforms for Master mode.
When the CKE bit is set, the SDO data is valid before
there is a clock edge on SCK. The change of the input
sample is shown based on the state of the SMP bit. The
time when the SSPBUF is loaded with the received
data is shown.
OSC
OSC
OSC
/4 (or T
/16 (or 4 • T
/64 (or 16 • T
bit 2
bit 2
CY
)
bit 1
bit 1
CY
CY
)
)
© 2008 Microchip Technology Inc.
bit 0
bit 0
bit 0
bit 0
Next Q4 Cycle
after Q2↓
4 Clock
Modes
Related parts for PIC18F2420-I/SOC01
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC18F2420-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 8KX16 28QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2420-E/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 8KX16 28SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2420-I/SO](/photos/6/59/65909/150-28-soic_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 8KX16 28SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2420](/images/no-image3.png)
Part Number:
Description:
28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![PIC18F2420-I/SP](/photos/6/59/65908/150-28-dip_tmb.jpg)
Part Number:
Description:
IC MCU FLASH 8KX16 28-DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2420-E/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 8KX16 28QFN
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F2420-E/SP](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
28 PIN, 16 KB STD FLASH, 3804 RAM, 25 I/O, PB FREE,
Manufacturer:
Microchip Technology
Datasheet:
![PIC18F24](/images/no-image3.png)
Part Number:
Description:
28/40-Pin High-Performance, Enhanced Flash Microcontrollers with CAN Module
Manufacturer:
MICROCHIP [Microchip Technology]
Datasheet:
![MA300015](/photos/8/96/89623/ma300015_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN DSPIC30F 80QFP
Manufacturer:
Microchip Technology
Datasheet:
![MA180021](/photos/8/96/89639/ma180021_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN 18F87J50 FS USB
Manufacturer:
Microchip Technology
Datasheet:
![AC164131](/photos/8/96/89652/ac164131__tmb.jpg)
Part Number:
Description:
BOARD DAUGHTER USB PICTAIL PLUS
Manufacturer:
Microchip Technology
Datasheet:
![MA330024](/photos/8/98/89858/ma330024_tmb.jpg)
Part Number:
Description:
MODULE PLUG-IN DSPIC33F 100TQFP
Manufacturer:
Microchip Technology
Datasheet:
![AC164129](/photos/9/3/90374/ac164129_tmb.jpg)
Part Number:
Description:
CARD DAUGHTER AUDIO PICTAIL PLUS
Manufacturer:
Microchip Technology
Datasheet: