Guest User

Untitled

a guest
May 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. 4.12.1 I2C Control
  2. SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL. The signal tim-
  3. ings for a read and write cycle are shown in Figure 20 and Figure 21. A Start condition is defined as a
  4. falling transition of SDA while the clock is high. A Stop condition is defined as a rising transition of SDA
  5. while the clock is high. All other transitions of SDA occur while the clock is low. The first byte sent to the
  6. CS42L52 after a Start condition consists of a 7-bit chip address field and a R/W bit (high for a read, low
  7. for a write).
  8. The upper 7 bits of the address field are fixed at 1001010. To communicate with the CS42L52, the chip
  9. address field, which is the first byte sent to the CS42L52, should match 1001010. The eighth bit of the
  10. address is the R/W bit. If the operation is a write, the next byte is the Memory Address Pointer (MAP),
  11. which selects the register to be read or written. If the operation is a read, the contents of the register point-
  12. ed to by the MAP will be output. Setting the auto-increment bit in MAP allows successive reads or writes
  13. of consecutive registers. Each byte is separated by an acknowledge bit. The ACK bit is output from the
  14. CS42L52 after each input byte is read and is input to the CS42L52 from the microcontroller after each
  15. transmitted byte.
Add Comment
Please, Sign In to add comment