| 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) 296 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 296 Page - Microchip Technology |
|
296 / 439 page ![]() Figure 25-32. I2C Host Mode Waveform (Reception, 10-Bit Address) Filename: Master Mode Waveform (10-bit reception).vsdx Title: Last Edit: 2/10/2020 First Used: Notes: 1 1 2 3 2 3 4 4 5 5 6 6 7 7 8 8 9 9 1 2 3 4 5 6 7 8 9 1 1 1 1 0 A9 A8 0 A7 A6 A5 D5 D6 D7 A4 D4 A3 D3 A2 D2 A1 D1 A0 D0 SDA SCL BF SSPxIF RCEN High address R/W ACK (from client) NACK (from Host) Stop Software reads SSPxBUF ACK (from client) ACKSTAT 1 1 1 1 0 A9 A8 1 1 2 3 4 5 6 7 8 9 Low address Restart R/W High address Client s ACK copied to ACKSTAT Cleared by software Byte loaded into SSPxBUF Software sets RCEN = Host as receiver Cleared by hardware Cleared by hardware Hardware set Host receives byte 25.2.5 Multi-Host Mode In Multi-Host mode, the interrupt generation on the detection of the Start and Stop conditions allows the determination of when the bus is free. The Stop (P) and Start (S) bits are cleared from a Reset or when the MSSP module is disabled. Control of the I2C bus may be taken when the P bit is set, or the bus is Idle, with both the S and P bits cleared. When the bus is busy, enabling the MSSP interrupt will generate an interrupt when the Stop condition occurs. In Multi-Host operation, the SDA line must be monitored for arbitration to see if the signal level is the expected output level. This check is performed by hardware with the result placed in the BCLxIF bit. The states where arbitration can be lost are: • Address Transfer • Data Transfer • A Start Condition • A Repeated Start Condition • An Acknowledge Condition 25.2.5.1 Multi-Host Communication, Bus Collision and Bus Arbitration Multi-Host mode support is achieved by bus arbitration. When the host outputs address/data bits onto the SDA pin, arbitration takes place when the host outputs a ‘1’ on SDA, by letting SDA float high and another host asserts a ‘0’. When the SCL pin floats high, data may be stable. If the expected data on SDA is a ‘1’ and the data sampled on the SDA pin is ‘0’, then a bus collision has taken place. The host will set the Bus Collision Interrupt Flag (BCLxIF) and reset the I2C port to its Idle state (see Figure 25-33). If a transmit was in progress when the bus collision occurred, the transmission is halted, the BF flag is cleared, the SDA and SCL lines are deasserted, and the SSPxBUF can be written to. When software services the bus collision Interrupt Service Routine, and if the I2C bus is free, software can resume communication by asserting a Start condition. If a Start, Repeated Start, Stop or Acknowledge condition was in progress when the bus collision occurred, the condition is aborted, the SDA and SCL lines are deasserted, and the respective control bits in the SSPxCON2 register are cleared. When software services the bus collision Interrupt Service Routine, and if the I2C bus is free, software can resume communication by asserting a Start condition. PIC16F15213/14/23/24/43/44 MSSP - Host Synchronous Serial Port Module © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 296 |
|
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 |