The Basic Synchronous Serial Port (BSSP) module is a serial interface useful for communicating with other peripheral or microcontroller devices. These peripheral devices may be Serial EEPROMs, shift registers, display drivers, A/D converters, etc. The BSSP module can operate in one of two modes: | 16 Microchip Section 16. Basic Sychronous Serial Port BSSP HIGHLIGHTS This section of the manual contains the following major topics BSSP Control SPI SSP I2C Design Tips . 16-24 Related Application Revision Note Please refer to Appendix or the device data sheet to determine which devices use this module. SPI is a trademark of Motorola Corporation. I2C is a trademark of Philips Corporation. 1997 Microchip Technology Inc. DS31016A page 16-1 PICmicro MID-RANGE MCU FAMILY Introduction The Basic Synchronous Serial Port BSSP module is a serial interface useful for communicating with other peripheral or microcontroller devices. These peripheral devices may be Serial EEPROMs shift registers display drivers A D converters etc. The BSSP module can operate in one of two modes Serial Peripheral Interface SPI Inter-Integrated Circuit I2C - Slave mode - I O slope control Start and Stop bits to ease software implementation of Master and Multi-master modes I2C is a trademark of Philips Corporation. DS31016A-page 16-2 1997 Microchip Technology Inc. Section 16. BSSP 16 Control Registers Register 16-1 SSPSTAT Synchronous Serial Port Status Register U-0 U-0 R-0 R-0 R-0 R-0 R-0 R-0 - - 1 D A 1 P S R W UA BF bit 7 bit 0 BSSP bit 7 6 Unimplemented Read as 0 bit 5 D A Data Address bit I2C mode only 1 Indicates that the last byte received or transmitted was data 0 Indicates that the last byte received or transmitted was address bit 4 P Stop bit I2C mode only. This bit is cleared when the SSP module is disabled 1 Indicates that a stop bit has been detected last this bit is 0 on RESET 0 Stop bit was not detected last bit 3 S Start bit I2C mode only. This bit is cleared when the SSP module is disabled 1 Indicates that a start bit has been detected last this bit is 0 on RESET 0 Start bit was not detected last bit 2 R W Read Write bit .