| Electronic Components Datasheet Search |
|
FS98O25 Datasheet(PDF) 95 Page - Fortune Semiconductor Corp. |
|
|
|||||||||||||||||||||||||||||
FS98O25 Datasheet(HTML) 95 Page - Fortune Semiconductor Corp. |
|
95 / 142 page ![]() FS98O25 Rev. 1.6 95/142 I2C data transmit operation: (slave to master) 1. Configure SCL and SDA pins as open-drain through the PTOCB[4:3]. 2. Set I2CEN register flag to enable the I2C module. 3. Clear I2CIF to reset the I2C interrupt. 4. Set I2CIE and GIE to enable the I2C interrupt. 5. Wait for the interrupt. 6. When the I2C master device sends data to slave side, the data (ID) transmitted from the master device will be sent to I2CBUF, and the BF register flag will be set. 7. If the RW register flag is set,(high) the I2C module will enter the transmit mode. 8. The acknowledgement signal will be sent automatically and the interrupt will happen. 9. Set the CKP register flag to hold the SCK to low, and then write the data, which is ready to send to master side, to I2CBUF. 10. Clear the I2CIF and reset the interrupt to wait for the interrupt to happen again. 11. Clear the CKP register flag to enable the SCK pin. The master side will start to get the data. 12. When interrupt happen, the master side has already finished the transmission, the acknowledgement has been sent back to salve side, and the BF register flag has been clear. SDA A7A6 A5A4A3A2 A1 12 3 4 56 7 89 1234 56789 SCL D7 D6 D5 D4 D3 D2 D1 D0 I2CIF (INTF<3>) BF (I2CSTA<0>) I2COV (I2CCON<6>) S P Receiving Address R/W = 1 __ ACK ____ ACK ____ Transmitting Data Cleared in software I2CBUF is written in software Data in sampled SCL held low while CPU responds to I2CIF I2CBUF is read } From I2CIF interrupt service routine Figure 9-4 I2C waveforms for transmission |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |