欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F24J10-I/SO 参数 Datasheet PDF下载

PIC18F24J10-I/SO图片预览
型号: PIC18F24J10-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚高性能, RISC微控制器 [28/40/44-Pin High-Performance, RISC Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 368 页 / 5652 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第151页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第152页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第153页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第154页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第156页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第157页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第158页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第159页  
PIC18F45J10 FAMILY  
Any serial port function that is not desired may be  
overridden by programming the corresponding data  
direction (TRIS) register to the opposite value.  
16.3.3  
ENABLING SPI I/O  
To enable the serial port, MSSP Enable bit, SSPEN  
(SSPxCON1<5>), must be set. To reset or reconfigure  
SPI mode, clear the SSPEN bit, reinitialize the  
SSPxCON registers and then set the SSPEN bit. This  
configures the SDIx, SDOx, SCKx and SSx pins as  
serial port pins. For the pins to behave as the serial port  
function, some must have their data direction bits (in  
the TRIS register) appropriately programmed as  
follows:  
16.3.4  
TYPICAL CONNECTION  
Figure 16-2 shows a typical connection between two  
microcontrollers. The master controller (Processor 1)  
initiates the data transfer by sending the SCKx 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:  
• SDIx is automatically controlled by the SPI module  
• SDOx must have TRISC<5> (or TRISD<2>) bit  
cleared  
• SCKx (Master mode) must have TRISC<3> (or  
TRISD<0>) bit cleared  
• SCKx (Slave mode) must have TRISC<3> (or  
TRISD<0>) bit set  
• Master sends data – Slave sends dummy data  
• Master sends data – Slave sends data  
• SSx must have TRISA<5> (or TRISD<3>) bit set  
• Master sends dummy data – Slave sends data  
FIGURE 16-2:  
SPI MASTER/SLAVE CONNECTION  
SPI Master SSPM<3:0> = 00xxb  
SPI Slave SSPM<3:0> = 010xb  
SDOx  
SDIx  
Serial Input Buffer  
(SSPxBUF)  
Serial Input Buffer  
(SSPxBUF)  
SDIx  
SDOx  
Shift Register  
(SSPxSR)  
Shift Register  
(SSPxSR)  
LSb  
MSb  
MSb  
LSb  
Serial Clock  
SCKx  
SCKx  
PROCESSOR 1  
PROCESSOR 2  
© 2009 Microchip Technology Inc.  
DS39682E-page 153  
 复制成功!