PIC18F25K80 MICROCHIP [Microchip Technology], PIC18F25K80 Datasheet - Page 297

no-image

PIC18F25K80

Manufacturer Part Number
PIC18F25K80
Description
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F25K80-E/MM
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC18F25K80-E/SO
Quantity:
149
Part Number:
PIC18F25K80-E/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F25K80-H/MM
Manufacturer:
MITSUBISHI
Quantity:
56
Company:
Part Number:
PIC18F25K80-H/MM
Quantity:
12 600
Part Number:
PIC18F25K80-I/MM
Manufacturer:
MICROCHIP
Quantity:
2 400
Part Number:
PIC18F25K80-I/MM
0
Part Number:
PIC18F25K80-I/SO
Manufacturer:
MICROCHIP
Quantity:
3 000
Part Number:
PIC18F25K80-I/SP
Manufacturer:
MICROCHIP
Quantity:
147
Part Number:
PIC18F25K80-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F25K80-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F25K80-I/SS
0
Company:
Part Number:
PIC18F25K80-I/SS
Quantity:
5
Company:
Part Number:
PIC18F25K80T-H/MM
Quantity:
12 600
Part Number:
PIC18F25K80T-I/MM
Manufacturer:
MICROCHIP
Quantity:
3 000
Part Number:
PIC18F25K80T-I/SS
Manufacturer:
MICROCHIT
Quantity:
20 000
Part Number:
PIC18F25K80T-I/SS
0
Company:
Part Number:
PIC18F25K80T-I/SS
Quantity:
4 200
21.3.4
To enable the serial port, MSSP Enable bit, SSPEN
(SSPCON1<5>), must be set. To reset or reconfigure
SPI mode, clear the SSPEN bit, reinitialize the
SSPCON registers and then set the SSPEN bit. This
configures the SDI, SDO, SCK and SS pins as serial
port pins. For the pins to behave as the serial port func-
tion, some must have their data direction bits (in the
TRIS register) appropriately programmed as follows:
• SDI is automatically controlled by the SPI module
• SDO must have the TRISC<5> bit cleared
• SCK (Master mode) must have the TRISC<3> bit
• SCK (Slave mode) must have the TRISC<3> bit
• SS must have the TRISA<5> bit set
Any serial port function that is not desired may be
overridden by programming the corresponding Data
Direction (TRIS) register to the opposite value.
FIGURE 21-2:
 2011 Microchip Technology Inc.
cleared
set
SPI Master SSPM<3:0> =
ENABLING SPI I/O
MSb
PROCESSOR 1
Serial Input Buffer
SPI MASTER/SLAVE CONNECTION
Shift Register
(SSPBUF)
(SSPSR)
00xx
LSb
b
SDO
SCK
SDI
Preliminary
Serial Clock
PIC18F66K80 FAMILY
21.3.5
Figure 21-2
microcontrollers. The master controller (Processor 1)
initiates the data transfer by sending the SCK signal.
Data is shifted out of both shift registers on their pro-
grammed clock edge and latched on the opposite edge
of the clock. Both processors should be programmed to
the same Clock Polarity (CKP), then both controllers
would send and receive data at the same time.
Whether the data is meaningful (or dummy data)
depends on the application software. This leads to
three scenarios for data transmission:
• Master sends data  –  Slave sends dummy data
• Master sends data  –  Slave sends data
• Master sends dummy data  –  Slave sends data
SDO
SCK
SDI
TYPICAL CONNECTION
shows a typical connection between two
SPI Slave SSPM<3:0> =
MSb
Serial Input Buffer
Shift Register
PROCESSOR 2
(SSPBUF)
(SSPSR)
LSb
DS39977C-page 297
010x
b

Related parts for PIC18F25K80