參數(shù)資料
型號(hào): PIC16F74T-I/ML
廠商: Microchip Technology
文件頁(yè)數(shù): 14/104頁(yè)
文件大?。?/td> 0K
描述: IC MCU FLASH 4KX14 A/D 44QFN
標(biāo)準(zhǔn)包裝: 1,600
系列: PIC® 16F
核心處理器: PIC
芯體尺寸: 8-位
速度: 20MHz
連通性: I²C,SPI,UART/USART
外圍設(shè)備: 欠壓檢測(cè)/復(fù)位,POR,PWM,WDT
輸入/輸出數(shù): 33
程序存儲(chǔ)器容量: 7KB(4K x 14)
程序存儲(chǔ)器類型: 閃存
RAM 容量: 192 x 8
電壓 - 電源 (Vcc/Vdd): 4 V ~ 5.5 V
數(shù)據(jù)轉(zhuǎn)換器: A/D 8x8b
振蕩器型: 外部
工作溫度: -40°C ~ 85°C
封裝/外殼: 44-VQFN 裸露焊盤(pán)
包裝: 帶卷 (TR)
PIC18F45J10 FAMILY
DS39682E-page 164
2009 Microchip Technology Inc.
16.4.2
OPERATION
The MSSP module functions are enabled by setting the
MSSP Enable bit, SSPEN (SSPxCON1<5>).
The SSPxCON1 register allows control of the I2C
operation.
Four
mode
selection
bits
(SSPxCON1<3:0>) allow one of the following I2C
modes to be selected:
I2C Master mode,
clock = (FOSC/4) x (SSPxADD + 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 SCLx and SDAx pins to be open-drain,
provided these pins are programmed to inputs by
setting the appropriate TRISC or TRISD bits. To ensure
proper operation of the module, pull-up resistors must
be provided externally to the SCLx and SDAx pins.
16.4.3
SLAVE MODE
In Slave mode, the SCLx and SDAx pins must be
configured 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 exact address match. In addition,
address masking will also allow the hardware to gener-
ate an interrupt for more than one address (up to 31 in
7-bit addressing and up to 63 in 10-bit addressing).
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 auto-
matically will generate the Acknowledge (ACK) pulse
and load the SSPxBUF register with the received value
currently in the SSPxSR register.
Any combination of the following conditions will cause
the MSSP module not to give this ACK pulse:
The Buffer Full bit, BF (SSPxSTAT<0>), was set
before the transfer was received.
The MSSP Overflow bit, SSPOV
(SSPxCON1<6>), was set before the transfer was
received.
In this case, the SSPxSR register value is not loaded
into the SSPxBUF, but the SSPxIF bit is set. The BF bit
is cleared by reading the SSPxBUF register, while the
SSPOV bit is cleared through software.
The SCLx 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.
16.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 SSPxSR register. All
incoming bits are sampled with the rising edge of the
clock (SCLx) line. The value of register SSPxSR<7:1>
is compared to the value of the SSPxADD register. The
address is compared on the falling edge of the eighth
clock (SCLx) pulse. If the addresses match and the BF
and SSPOV bits are clear, the following events occur:
1.
The SSPxSR register value is loaded into the
SSPxBUF register.
2.
The Buffer Full bit, BF, is set.
3.
An ACK pulse is generated.
4.
The MSSP Interrupt Flag bit, SSPxIF, is set (and
interrupt is generated, if enabled) on the falling
edge of the ninth SCLx 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 (SSPxSTAT<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
mode is as follows, with steps 7 through 9 for the
slave-transmitter:
1.
Receive first (high) byte of address (bits,
SSPxIF, BF and UA (SSPxSTAT<1>), are set).
2.
Update the SSPxADD register with second (low)
byte of address (clears bit, UA, and releases the
SCLx line).
3.
Read the SSPxBUF register (clears bit, BF) and
clear flag bit, SSPxIF.
4.
Receive second (low) byte of address (bits,
SSPxIF, BF and UA, are set).
5.
Update the SSPxADD register with the first
(high) byte of address. If match releases SCLx
line, this will clear bit, UA.
6.
Read the SSPxBUF register (clears bit, BF) and
clear flag bit, SSPxIF.
7.
Receive Repeated Start condition.
8.
Receive first (high) byte of address (bits,
SSPxIF and BF, are set).
9.
Read the SSPxBUF register (clears bit, BF) and
clear flag bit, SSPxIF.
相關(guān)PDF資料
PDF描述
PIC16F77T-I/ML IC MCU FLASH 8KX14 A/D 44QFN
PIC18F24K20-I/SS IC PIC MCU FLASH 8KX16 28SSOP
PIC16F77-E/ML IC MCU FLASH 8KX14 A/D 44QFN
PIC16LF74T-I/ML IC MCU FLASH 4KX14 A/D 44QFN
PIC16F723-I/MV IC MCU 8BIT 7KB FLASH 28UQFN
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16F753-E/ML 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 128 RAM, 8MHZ INT. OSC, 9-BIT DAC - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC PIC MCU 2K FLASH 16QFN 制造商:Microchip Technology Inc 功能描述:8-bit Microcontrollers - MCU 35KB Flsh 128 R 8MHz Int Osc 9-bit DAC
PIC16F753-E/P 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 128 RAM, 8MHZ INT. OSC, 9-BIT DAC - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC PIC MCU 2K FLASH 14PDIP 制造商:Microchip Technology Inc 功能描述:8-bit Microcontrollers - MCU 35KB Flsh 128 R 8MHz Int Osc 9-bit DAC
PIC16F753-E/SL 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 128 RAM, 8MHZ INT. OSC, 9-BIT DAC - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC PIC MCU 2K FLASH 14SOIC 制造商:Microchip Technology Inc 功能描述:8-bit Microcontrollers - MCU 35KB Flsh 128 R 8MHz Int Osc 9-bit DAC
PIC16F753-E/ST 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 128 RAM, 8MHZ INT. OSC, 9-BIT DAC - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC PIC MCU 2K FLASH 14TSSOP 制造商:Microchip Technology Inc 功能描述:8-bit Microcontrollers - MCU 35KB Flsh 128 R 8MHz Int Osc 9-bit DAC
PIC16F753-I/ML 制造商:Microchip Technology Inc 功能描述:3.5KB FLASH, 128 RAM, 8MHZ INT. OSC, 9-BIT DAC - Rail/Tube 制造商:Microchip Technology Inc 功能描述:IC PIC MCU 2K FLASH 16QFN 制造商:Microchip Technology Inc 功能描述:8-bit Microcontrollers - MCU 35KB Flsh 128 R 8MHz Int Osc 9-bit DAC