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

PIC16F818-I/SS 参数 Datasheet PDF下载

PIC16F818-I/SS图片预览
型号: PIC16F818-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: 二十零分之一十八引脚增强型闪存微控制器采用纳瓦技术 [18/20-Pin Enhanced Flash Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 176 页 / 2941 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F818-I/SS的Datasheet PDF文件第69页浏览型号PIC16F818-I/SS的Datasheet PDF文件第70页浏览型号PIC16F818-I/SS的Datasheet PDF文件第71页浏览型号PIC16F818-I/SS的Datasheet PDF文件第72页浏览型号PIC16F818-I/SS的Datasheet PDF文件第74页浏览型号PIC16F818-I/SS的Datasheet PDF文件第75页浏览型号PIC16F818-I/SS的Datasheet PDF文件第76页浏览型号PIC16F818-I/SS的Datasheet PDF文件第77页  
PIC16F818/819  
10.2 SPI Mode  
10.0 SYNCHRONOUS SERIAL PORT  
(SSP) MODULE  
This section contains register definitions and  
operational characteristics of the SPI module.  
10.1 SSP Module Overview  
SPI mode allows 8 bits of data to be synchronously  
transmitted and received simultaneously. To  
accomplish communication, typically three pins are  
used:  
The Synchronous Serial Port (SSP) module is a serial  
interface useful for communicating with other periph-  
eral or microcontroller devices. These peripheral  
devices may be serial EEPROMs, shift registers,  
display drivers, A/D converters, etc. The SSP module  
can operate in one of two modes:  
• Serial Data Out (SDO)  
• Serial Data In (SDI)  
• Serial Clock (SCK)  
RB2/SDO/CCP1  
RB1/SDI/SDA  
RB4/SCK/SCL  
• Serial Peripheral Interface (SPI)  
• Inter-Integrated Circuit (I2C)  
Additionally, a fourth pin may be used when in a Slave  
mode of operation:  
An overview of I2C operations and additional informa-  
tion on the SSP module can be found in the “PICmicro®  
Mid-Range MCU Family Reference Manual”  
(DS33023).  
• Slave Select (SS)  
RB5/SS  
When initializing the SPI, several options need to be  
specified. This is done by programming the appropriate  
control bits in the SSPCON register (SSPCON<5:0>)  
and the SSPSTAT register (SSPSTAT<7:6>). These  
control bits allow the following to be specified:  
Refer to Application Note AN578, “Use of the SSP  
Module in the I2CMulti-Master Environment”  
(DS00578).  
• Master mode (SCK is the clock output)  
• Slave mode (SCK is the clock input)  
• Clock Polarity (Idle state of SCK)  
• Clock Edge (output data on rising/falling  
edge of SCK)  
• Clock Rate (Master mode only)  
• Slave Select mode (Slave mode only)  
Note:  
Before enabling the module in SPI Slave  
mode, the state of the clock line (SCK)  
must match the polarity selected for the  
Idle state. The clock line can be observed  
by reading the SCK pin. The polarity of the  
Idle state is determined by the CKP bit  
(SSPCON<4>).  
2004 Microchip Technology Inc.  
DS39598E-page 71