| 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) 291 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC16F15213T-I/ST bảng dữ liệu(HTML) 291 Page - Microchip Technology |
|
291 / 439 page ![]() 25.2.4.2.2 WCOL Status Flag If the user writes the SSPxBUF when a transmit is already in progress (i.e., SSPSR is still shifting out a data byte), the Write Collision Detect (WCOL) bit is set and the contents of the buffer are unchanged (the write does not occur). The WCOL bit must be cleared by software before the next transmission. 25.2.4.2.3 ACKSTAT Status Flag In Transmit mode, the Acknowledge Status (ACKSTAT) bit is cleared when the client has sent an Acknowledge (ACK = 0), and is set when the client issues a NACK. A client sends an ACK when it has recognized its address (including a General Call), or when the client has properly received its data. 25.2.4.2.4 Typical Transmit Sequence 1. The Host generates a Start condition by setting the SEN bit. 2. SSPxIF is set by hardware on completion of the Start. 3. SSPxIF is cleared by software. 4. The MSSP module will wait the required start time before any other operation takes place. 5. Software loads the SSPxBUF with the client address and the R/W bit. In Host Transmit mode, the R/W value is zero. 6. Address is shifted out the SDA pin until all eight bits are transmitted. Transmission begins as soon as SSPxBUF is written to. 7. The MSSP module shifts in the ACK value from the client device and writes its into the ACKSTAT bit. 8. The MSSP module generates an interrupt at the end of the ninth clock cycle by setting the SSPxIF bit. 9. Software loads the SSPxBUF with eight bits of data. 10. Data is shifted out the SDA pin until all eight bits are transmitted. 11. The MSSP module shifts in the ACK bit from the client device and writes its value into the ACKSTAT bit. 12. Steps 8-11 are repeated for all transmitted data bytes. 13. The user generates a Stop or Restart condition by setting the PEN or RSEN bits, respectively. An Interrupt is generated once the Stop/Restart condition is complete. Figure 25-29. I2C Host Mode Waveform (Transmission, 7-Bit Address) Filename: Master Mode Waveform (7-bit transmision).vsdx Title: Last Edit: 2/4/2020 First Used: Notes: Rev. Mast er Mod 2/4/2020 SDA SCL SSPxIF BF SEN PEN Set the SEN bit Cleared by hardware SSPxBUF loaded with address and R/W bit A7 A6 A5 A4 A3 A2 A1 R/W = 0 ACK SCL stretched while CPU responds to SSPxIF From client, ACKSTAT = 0 D7 D6 D5 D4 D3 D2 D1 D0 NACK, ACKSTAT = 1 Cleared by software Cleared by software Cleared by software Cleared by hardware PIC16F15213/14/23/24/43/44 MSSP - Host Synchronous Serial Port Module © 2020-2022 Microchip Technology Inc. and its subsidiaries Data Sheet DS40002195E-page 291 |
|
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 |