Anonymous
Not applicable
Jun 05, 2015
10:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 05, 2015
10:08 PM
I want to read and write a I2C slave,but the device has a sub-address of 16 bits,and the data is also 16 bits. Can anyone tell me how to do it.Because EZUSB_WriteI2C is for 8 bit.
Solved! Go to Solution.
1 Solution
Jun 06, 2015
06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2015
06:41 AM
Welcome in the forum!
Do not care for the data-width. As most interfaces are 8 bits wide, writing two 8-bit data will usually work. Try to get the information which byte to transfer first, MSB or LSB. What is the device you try to talk to? Link to datasheet appreciated 😉
Bob
1 Reply
Jun 06, 2015
06:41 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 06, 2015
06:41 AM
Welcome in the forum!
Do not care for the data-width. As most interfaces are 8 bits wide, writing two 8-bit data will usually work. Try to get the information which byte to transfer first, MSB or LSB. What is the device you try to talk to? Link to datasheet appreciated 😉
Bob