UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer markge
Observer
176 Views
Registered: ‎11-28-2018

iic with secondary address

Jump to solution

Need to communicate with IIC slave that have primary and secondary adress (register address) using microblaze SW. Don't see such capability for XIic_Send XIic_Recv functions. Looks like it has only primery adress and data. Have to send primery address, secondary adress, data as shown in the picture below:

iic_slave.bmp
0 Kudos
1 Solution

Accepted Solutions
Observer markge
Observer
100 Views
Registered: ‎11-28-2018

Re: iic with secondary address

Jump to solution

The solution is following:

1. For write cycle use array of two bytes, first byte is the register address, second is the data.

2. For the read cycle, write register address as write command (one byte) and read the data (one byte or more).

View solution in original post

0 Kudos
1 Reply
Observer markge
Observer
101 Views
Registered: ‎11-28-2018

Re: iic with secondary address

Jump to solution

The solution is following:

1. For write cycle use array of two bytes, first byte is the register address, second is the data.

2. For the read cycle, write register address as write command (one byte) and read the data (one byte or more).

View solution in original post

0 Kudos