Danh mục

Section 16. Basic Sychronous Serial Port (BSSP)

Số trang: 0      Loại file: pdf      Dung lượng: 118.00 KB      Lượt xem: 13      Lượt tải: 0    
Jamona

Hỗ trợ phí lưu trữ khi tải xuống: miễn phí Tải xuống file đầy đủ (0 trang) 0

Báo xấu

Xem trước 2 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

The Basic Synchronous Serial Port (BSSP) module is a serial interface useful for communicatingwith other peripheral or microcontroller devices. These peripheral devices may be SerialEEPROMs, shift registers, display drivers, A/D converters, etc. The BSSP module can operatein one of two modes:
Nội dung trích xuất từ tài liệu:
Section 16. Basic Sychronous Serial Port (BSSP) M 16 BSSP Section 16. Basic Sychronous Serial Port (BSSP) HIGHLIGHTS This section of the manual contains the following major topics: 16.1 Introduction ..................................................................................................................16-2 16.2 Control Registers .........................................................................................................16-3 16.3 SPI™ Mode..................................................................................................................16-6 SSP I2C Operation .....................................................................................................16-15 16.4 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-1PICmicro MID-RANGE MCU FAMILY16.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 (I 2C™) - Slave mode - I/O slope control, Start and Stop bits to ease software implementation of Master and Multi-master modesI2C is a trademark of Philips Corporation. © 1997 Microchip Technology Inc.DS31016A-page 16-2 Section 16. BSSP 1616.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 BSSP — — D/A P S R/W UA BF bit 7 bit 0 bit 7:6 Unimplemented: Read as 0 D/A: Data/Address bit (I2C mode only) bit 5 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 (t ...

Tài liệu được xem nhiều: