Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 6: Serial Communication Modules
SSPCON2 Register
Fig. 6-25 SSPCON2 Register
GCEN - General Call Enable bit
In I²C slave mode only
1 - Enables interrupt when a general call address (0000h) is received in the SSPSR; and
0 - General call address disabled.
ACKSTAT - Acknowledge Status bit
In I²C Master Transmit mode only
1 - Acknowledge was not received from slave; and
0 - Acknowledge was received from slave.
ACKDT - Acknowledge data bit
In I²C Master Receive mode only
1 - Not Acknowledge; and
0 - Acknowledge.
ACKEN - Acknowledge condition Enable bit
In I²C Master Receive mode
1 - Initiate acknowledge condition on SDA and SCL pins and transmit ACKDT data bit. It is automatically cleared by
hardware; and
0 - Acknowledge condition is not initiated.
RCEN - Receive Enable bit
In I²C Master mode only
1 - Enables data receive in I²C mode; and
0 - Receive disabled.
PEN - STOP condition Enable bit
In I²C Master mode only
1 - Initiates STOP condition on pins SDA and SCL. Afterwards, this bit is automatically cleared by hardware; and
0 - STOP condition is not initiated.
RSEN - Repeated START Condition Enabled bit
In I²C master mode only
1 - Initiates START condition on pins SDA and SCL. Afterwards, this bit is automatically cleared by hardware; and
0 - Repeated START condition is not initiated.
http://www.mikroe.com/en/books/picmcubook/ch6/ (22 of 27)5/3/2009 11:34:00 AM