參數(shù)資料
型號: PIC16C62B
廠商: Microchip Technology Inc.
英文描述: 28-Pin 8-Bit CMOS Microcontrollers(28引腳,8位CMOS微控制器)
中文描述: 28引腳8位CMOS微控制器(28引腳,8位的CMOS微控制器)
文件頁數(shù): 39/120頁
文件大小: 2122K
代理商: PIC16C62B
PIC16C62B/72A
1999 Microchip Technology Inc.
Preliminary
DS35008B-page 39
8.0
SYNCHRONOUS SERIAL PORT
(SSP) MODULE
8.1
SSP Module Overview
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, dis-
play drivers, A/D converters, etc. The SSP module can
operate in one of two modes:
Serial Peripheral Interface (SPI)
Inter-Integrated Circuit (I
2
C)
For more information on SSP operation (including an
I
2
C Overview), refer to the PICmicro Mid-Range Ref-
erence Manual, (DS33023). Also, refer to Application
Note AN578, “Use of the SSP Module in the I
2
C Multi-
Master Environment.”
8.2
SPI Mode
This section contains register definitions and opera-
tional characteristics of the SPI module.
Additional information on SPI operation may be found
in the PICmicro Mid-Range Reference Manual,
(DS33023).
8.2.1
OPERATION OF SSP MODULE IN SPI
MODE
A block diagram of the SSP Module in SPI Mode is
shown in Figure 8-1.
The SPI mode allows 8-bits of data to be synchro-
nously transmitted and received simultaneously. To
accomplish communication, three pins are used:
Serial Data Out (SDO)RC5/SDO
Serial Data In (SDI)RC4/SDI/SDA
Serial Clock (SCK)RC3/SCK/SCL
Additionally, a fourth pin may be used when in a slave
mode of operation:
Slave Select (SS)RA5/SS/AN4
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 SSPSTAT<7:6>. These control bits allow the fol-
lowing to be specified:
Master Operation (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 operation only)
Slave Select Mode (Slave mode only)
To enable the serial port, SSP Enable bit, SSPEN
(SSPCON<5>) must be set. To reset or reconfigure SPI
mode, clear bit SSPEN, re-initialize the SSPCON reg-
ister, and then set bit SSPEN. This configures the SDI,
SDO, SCK and SS pins as serial port pins. For the pins
to behave as the serial port function, they must have
their data direction bits (in the TRISC register) appro-
priately programmed. That is:
SDI must have TRISC<4> set
SDO must have TRISC<5> cleared
SCK (master operation) must have TRISC<3>
cleared
SCK (Slave mode) must have TRISC<3> set
SS must have TRISA<5> set (if used)
Note:
When the SPI is in Slave Mode with SS pin
control enabled, (SSPCON<3:0> =
0100
)
the SPI module will reset if the SS pin is set
to V
DD
.
Note:
If the SPI is used in Slave Mode with
CKE = '1', then the SS pin control must be
enabled.
FIGURE 8-1:
SSP BLOCK DIAGRAM
(SPI MODE)
Read
Write
Internal
Data Bus
RC4/SDI/SDA
RC5/SDO
RA5/SS/AN4
RC3/SCK/
SCL
SSPSR reg
SSPBUF reg
SSPM3:SSPM0
bit0
Shift
Clock
SS Control
Enable
Edge
Select
Clock Select
TMR2 output
2
T
CY
Prescaler
4, 16, 64
TRISC<3>
Edge
Select
2
4
相關PDF資料
PDF描述
PIC16C63A 8-Bit CMOS Microcontrollers with A/D Converter(8位、帶A/D轉(zhuǎn)換器的CMOS微控制器)
PIC16C73B 8-Bit CMOS Microcontrollers with A/D Converter(帶A/D轉(zhuǎn)換器的8位CMOS微控制器)
PIC16C63 8-Bit CMOS Microcontrollers
PIC16C64 8-Bit CMOS Microcontrollers
PIC16C65 8-Bit CMOS Microcontrollers
相關代理商/技術參數(shù)
參數(shù)描述
PIC16C62B/JW 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C62B-04/SO 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C62B-04/SP 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C62B-04/SP 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C62 SDIL28
PIC16C62B-04/SS 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 22 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT