| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC16F15213T-I/ST bảng dữ liệu(PDF) 252 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 252 Page - Microchip Technology |
|
252 / 439 page ![]() Figure 25-3. SPI Host/Client Connection Serial Input Buffer (BUF) Shift Register (SSPSR) MSb LSb SDO SDI Processor 1 SCK 00xx Serial Input Buffer (SSPxBUF) Shift Register Processor 2 SCK 010x Serial Clock SS = 1010 (SSPSR) LSb MSb SDI SDO SPI Client SSPM[3:0] = SPI Host SSPM[3:0] = GPIO Client Select (optional) Rev/ 30-000013B 3/31/2017 Data is shifted out of both shift registers on the programmed clock edge and latched on the opposite edge of the clock. The host device transmits information out on its SDO output pin, which is connected to and received by the client’s SDI input pin. The client device transmits information out on its SDO output pin, which is connected to and received by the host’s SDI input pin. To begin communication, the host device transmits both the MSb from its shift register and the clock signal. Both the host and client devices need to be configured for the same clock polarity. During each SPI clock cycle, a full-duplex data transmission occurs. This means that while the host device is sending out the MSb from its shift register (on its SDO pin) and the client device is reading this bit and saving it as the LSb of its shift register, the client device is also sending out the MSb from its shift register (on its SDO pin) and the host device is reading this bit and saving it as the LSb of its shift register. After eight bits have been shifted out, the host and client have exchanged register values. If there is more data to exchange, the shift registers are loaded with new data and the process repeats itself. Whether the data is meaningful or not (dummy data) depends on the application software. This leads to three scenarios for data transmission: • Host sends useful data and client sends dummy data. • Host sends useful data and client sends useful data. • Host sends dummy data and client sends useful data. Transmissions must be performed in multiples of eight clock cycles. When there is no more data to be transmitted, the host stops sending the clock signal and it deselects the client. Every client device connected to the bus that has not been selected through its Client Select line must disregard the clock and transmission signals and must not transmit out any data of its own. 25.1.1 SPI Mode Registers The MSSP module has six registers for SPI mode operation. They are: • MSSP Status Register (SSPxSTAT) • MSSP Control Register 1 (SSPxCON1) • MSSP Control Register 3 (SSPxCON3) • MSSP Data Buffer Register (SSPxBUF) PIC16F15213/14/23/24/43/44 MSSP - Host Synchronous Serial Port Module © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 252 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |