Đang chuẩn bị liên kết để tải về tài liệu:
Section 16. Basic Sychronous Serial Port (BSSP)

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

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 16.1 Introduction.16-2 16.2 Control Registers.16-3 16.3 SPI Mode.16-6 16.4 SSP I2C Operation.16-15 16.5 Initialization.16-23 16.6 Design Tips . 16-24 16.7 Related Application Notes.16-25 16.8 Revision History.16-26 Note Please refer to Appendix C.2 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 16.1 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 16.2 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 .