參數(shù)資料
型號: PIC16CR77-I/ML
廠商: Microchip Technology
文件頁數(shù): 80/172頁
文件大?。?/td> 0K
描述: IC PIC MCU 8KX14 44QFN
標(biāo)準(zhǔn)包裝: 45
系列: PIC® 16C
核心處理器: PIC
芯體尺寸: 8-位
速度: 20MHz
連通性: I²C,SPI,UART/USART
外圍設(shè)備: 欠壓檢測/復(fù)位,POR,PWM,WDT
輸入/輸出數(shù): 33
程序存儲器容量: 14KB(8K x 14)
程序存儲器類型: ROM
RAM 容量: 368 x 8
電壓 - 電源 (Vcc/Vdd): 2 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 8x8b
振蕩器型: 內(nèi)部
工作溫度: -40°C ~ 85°C
封裝/外殼: 44-VQFN 裸露焊盤
包裝: 管件
PIC18F2220/2320/4220/4320
DS39599G-page 168
2007 Microchip Technology Inc.
17.4.2
OPERATION
The MSSP module functions are enabled by setting
MSSP Enable bit, SSPEN (SSPCON1<5>).
The SSPCON1 register allows control of the I2C oper-
ation. Four mode selection bits (SSPCON1<3:0>) allow
one of the following I2C modes to be selected:
I2C Master mode, clock = FOSC/(4 * (SSPADD + 1))
I2C Slave mode (7-bit address)
I2C Slave mode (10-bit address)
I2C Slave mode (7-bit address), with Start and
Stop bit interrupts enabled
I2C Slave mode (10-bit address), with Start and
Stop bit interrupts enabled
I2C Firmware Controlled Master mode,
slave is Idle
Selection of any I2C mode, with the SSPEN bit set,
forces the SCL and SDA pins to be open-drain, pro-
vided these pins are programmed to inputs by setting
the appropriate TRISC bits. To ensure proper operation
of the module, pull-up resistors must be provided
externally to the SCL and SDA pins.
17.4.3
SLAVE MODE
In Slave mode, the SCL and SDA pins must be config-
ured as inputs (TRISC<4:3> set). The MSSP module
will override the input state with the output data when
required (slave-transmitter).
The I2C Slave mode hardware will always generate an
interrupt on an address match. Through the mode
select bits, the user can also choose to interrupt on
Start and Stop bits.
When an address is matched, or the data transfer after
an address match is received, the hardware automati-
cally will generate the Acknowledge (ACK) pulse and
load the SSPBUF register with the received value
currently in the SSPSR register.
Any combination of the following conditions will cause
the MSSP module not to give this ACK pulse:
The Buffer Full bit, BF (SSPSTAT<0>), was set
before the transfer was received.
The overflow bit, SSPOV (SSPCON1<6>), was
set before the transfer was received.
In this case, the SSPSR register value is not loaded
into the SSPBUF but bit SSPIF (PIR1<3>) is set. The
BF bit is cleared by reading the SSPBUF register, while
bit SSPOV is cleared by software.
The SCL clock input must have a minimum high and
low for proper operation. The high and low times of the
I2C specification, as well as the requirement of the
MSSP module, are shown in timing parameter #100
and parameter #101.
17.4.3.1
Addressing
Once the MSSP module has been enabled, it waits for
a Start condition to occur. Following the Start condition,
the 8 bits are shifted into the SSPSR register. All incom-
ing bits are sampled with the rising edge of the clock
(SCL) line. The value of register SSPSR<7:1> is com-
pared to the value of the SSPADD register. The
address is compared on the falling edge of the eighth
clock (SCL) pulse. If the addresses match and the BF
and SSPOV bits are clear, the following events occur:
1.
The SSPSR register value is loaded into the
SSPBUF register.
2.
The Buffer Full bit, BF, is set.
3.
An ACK pulse is generated.
4.
MSSP Interrupt Flag bit, SSPIF (PIR1<3>), is
set (interrupt is generated if enabled) on the
falling edge of the ninth SCL pulse.
In 10-Bit Addressing mode, two address bytes need to
be received by the slave. The five Most Significant bits
(MSbs) of the first address byte specify if this is a 10-bit
address. Bit R/W (SSPSTAT<2>) must specify a write
so the slave device will receive the second address
byte. For a 10-bit address, the first byte would equal
‘11110 A9 A8 0’, where ‘A9’ and ‘A8’ are the two
MSbs of the address. The sequence of events for
10-bit addressing is as follows, with steps 7 through 9
for the slave-transmitter:
1.
Receive first (high) byte of address (bits SSPIF,
BF and bit UA (SSPSTAT<1>) are set).
2.
Update the SSPADD register with second (low)
byte of Address (clears bit, UA, and releases the
SCL line).
3.
Read the SSPBUF register (clears bit, BF) and
clear flag bit, SSPIF.
4.
Receive second (low) byte of address (bits,
SSPIF, BF and UA, are set).
5.
Update the SSPADD register with the first (high)
byte of address. If match releases SCL line, this
will clear bit, UA.
6.
Read the SSPBUF register (clears bit, BF) and
clear flag bit, SSPIF.
7.
Receive Repeated Start condition.
8.
Receive first (high) byte of address (bits, SSPIF
and BF, are set).
9.
Read the SSPBUF register (clears bit, BF) and
clear flag bit, SSPIF.
相關(guān)PDF資料
PDF描述
PIC16CR74T-I/PT IC PIC MCU 4KX14 44TQFP
PIC16F627A-I/ML IC MCU FLASH 1KX14 EEPROM 28QFN
PIC24F08KL401-I/P IC MCU 16BIT 8KB FLASH 20-PDIP
PIC16LF727-I/P IC PIC MCU FLASH 8K 1.8V 40-DIP
PIC12C672-10/SM IC MCU OTP 2KX14 A/D 8-SOIJ
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16CR77T-I/ML 功能描述:IC PIC MCU 8KX14 44QFN RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:PIC® 16C 產(chǎn)品培訓(xùn)模塊:Asynchronous Stimulus 8-bit PIC® Microcontroller Portfolio 標(biāo)準(zhǔn)包裝:42 系列:PIC® 16C 核心處理器:PIC 芯體尺寸:8-位 速度:20MHz 連通性:- 外圍設(shè)備:欠壓檢測/復(fù)位,POR,PWM,WDT 輸入/輸出數(shù):13 程序存儲器容量:3.5KB(2K x 14) 程序存儲器類型:OTP EEPROM 大小:- RAM 容量:128 x 8 電壓 - 電源 (Vcc/Vdd):4 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 4x8b 振蕩器型:外部 工作溫度:-40°C ~ 85°C 封裝/外殼:18-SOIC(0.295",7.50mm 寬) 包裝:管件 配用:XLT18SO-1-ND - SOCKET TRANSITION 18SOIC 300MILISPICR1-ND - ADAPTER IN-CIRCUIT PROGRAMMING309-1011-ND - ADAPTER 18-SOIC TO 18-DIP309-1010-ND - ADAPTER 18-SOIC TO 18-DIPAC164010-ND - MODULE SKT PROMATEII DIP/SOIC
PIC16CR77T-I/PT 功能描述:IC PIC MCU 8KX14 44TQFP RoHS:是 類別:集成電路 (IC) >> 嵌入式 - 微控制器, 系列:PIC® 16C 產(chǎn)品培訓(xùn)模塊:Asynchronous Stimulus 8-bit PIC® Microcontroller Portfolio 標(biāo)準(zhǔn)包裝:42 系列:PIC® 16C 核心處理器:PIC 芯體尺寸:8-位 速度:20MHz 連通性:- 外圍設(shè)備:欠壓檢測/復(fù)位,POR,PWM,WDT 輸入/輸出數(shù):13 程序存儲器容量:3.5KB(2K x 14) 程序存儲器類型:OTP EEPROM 大小:- RAM 容量:128 x 8 電壓 - 電源 (Vcc/Vdd):4 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 4x8b 振蕩器型:外部 工作溫度:-40°C ~ 85°C 封裝/外殼:18-SOIC(0.295",7.50mm 寬) 包裝:管件 配用:XLT18SO-1-ND - SOCKET TRANSITION 18SOIC 300MILISPICR1-ND - ADAPTER IN-CIRCUIT PROGRAMMING309-1011-ND - ADAPTER 18-SOIC TO 18-DIP309-1010-ND - ADAPTER 18-SOIC TO 18-DIPAC164010-ND - MODULE SKT PROMATEII DIP/SOIC
PIC16CR83T-04/SO023 制造商:Microchip Technology Inc 功能描述:
PIC16F 制造商:Microchip Technology Inc 功能描述:Microchip PIC16F677-I/P Microcontroller
PIC16F1454-E/ML 制造商:Microchip Technology Inc 功能描述:7 KB FLASH, 512 BYTES RAM, 48 MHZ INT. OSC, 12 I/0, ENHANCED - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC MCU 8BIT 7KB FLASH 16QFN