02-06-2015 12:06 AM
I'm new in programmaing zynq and vivado and have a problem using i2c interface.
I use a example project in vivado including several interfaces, uart, i2c....
When I export the design to SDK and add the new application project Template Peripheral Test,
the serial iic clock is about 3 MHz.
The IicPsSelfTestExample(u16 DeviceId) returns sucessfull.
I use the function
for sending iic data.
Wher can I do the configuration for the iic interface (adjust the clock)?
I can't find the paramerters anwhere.
02-06-2015 03:52 AM
The I2C clock speed can be controlled by modifying the divisor_a and divisor_b values and these can be altered by writing into the I2C control register.
For more details please refer to the I2C controller and register details in the TRM.
Hope this helps.
02-08-2015 09:04 PM