|
PIC18LF24K Datasheet, PDF (352/594 Pages) – | |||
|
◁ |
PIC18(L)F26/45/46K40
REGISTER 26-11: SSPxADD: MSSP ADDRESS REGISTER (I2C MASTER MODE)
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ADD<7:0>
bit 7
R/W-0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
â1â = Bit is set
W = Writable bit
x = Bit is unknown
â0â = Bit is cleared
U = Unimplemented bit, read as â0â
-n/n = Value at POR and BOR/Value at all other Resets
Master mode: I2C mode
bit 7-0
Baud Rate Clock Divider bits(1)
SCK/SCL pin clock period = ((SSPxADD<7:0> + 1) *4)/FOSC
10-Bit Slave mode â Most Significant Address Byte:
bit 7-3
bit 2-1
bit 0
Not used: Unused for Most Significant Address Byte. Bit state of this register is a donât care. Bit
pattern sent by master is fixed by I2C specification and must be equal toâ â11110â. However, those bits
are compared by hardware and are not affected by the value in this register.
ADD<9:8>: Two Most Significant bits of 10-bit Address
Not used: Unused in this mode. Bit state is a donât care.
10-Bit Slave mode â Least Significant Address Byte:
bit 7-0
ADD<7:0>: Eight Least Significant bits of 10-bit Address
7-Bit Slave mode:
bit 7-1
bit 0
Note 1:
7-bit Slave Address
Not used: Unused in this mode. Bit state is a donât care.
Values of 0x00, 0x01 and 0x02 are not valid for SSPxADD when used as a Baud Rate Generator for I2C.
This is an implementation limitation.
REGISTER 26-12: SSPxMSK: MSSPx ADDRESS MASK REGISTER
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
MSK<7:1>
bit 7
R/W-1
R/W-1
MSK0
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
â1â = Bit is set
W = Writable bit
x = Bit is unknown
â0â = Bit is cleared
U = Unimplemented bit, read as â0â
-n/n = Value at POR and BOR/Value at all other Resets
bit 7-1
bit 0
MSK<7:1>: Mask bits
1 = The received address bit n is compared to SSPxADDn to detect I2C address match
0 = The received address bit n is not used to detect I2C address match
MSK0: Mask bit for I2C Slave mode, 10-bit Address
I2C Slave mode, 10-bit address (SSPM<3:0> = 0111 or 1111):
1 = The received address bit 0 is compared to SSPxADD0 to detect I2C address match
0 = The received address bit 0 is not used to detect I2C address match
I2C Slave mode, 7-bit address, the bit is ignored.
ï£ 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 352
|
▷ |