2151 - [MachXO2] Does MachXO2 EFB I2C support frequencies other than the 50, 100, and 400 KHz options available in IPexpress?
Yes, even though IPexpress GUI provides only 3 options, you can operate EFB I2C hard core in master or slave mode at any clock that does not violate the I2C spec. You don’t need to do any clock stretch. To achieve any other clock operation meeting I2C standard, you need to write a prescale value to the registers I2C_1_BR0 / I2C_2_BR0 and I2C_1_BR1 / I2C_2_BR1. For more information on these, refer to Table 9-6 of TN1205.
Prescale value required to operate at your desired frequency can be calculated based on the equation mentioned in page 9-13 under "I2C_PRESCALE[9:0]".
Wishbone_clk/(I2C_PRESCALE*4) = I2C_clk
Note: I2C_PRESCALE is a decimal value for the corresponding 10-bit.
Use the equation above to calculate the required value and before starting any I2C operations, update the above registers in your design with the value.
Related Articles
6190 - Lattice Radiant and Lattice Diamond: Is there any reference C source code available for embedded programming?
C source code for embedded programming is provided in the software installation directory. For Radiant: <install_path>\programmer\embedded_source Example: C:\lscc\radiant\<Radiant version>\programmer\embedded_source For Diamond: ...
7041 - Diamond 3.9 and All MachXO: Why here is no simulation model for SEDFA/SEDFB Primitive with its support devices?
Description: After installing Diamond, I find under "xxxx\cae_library\simulation", there not have a simulation model for XO3L SEDFA/SEDFB Primitive. Look into this, I find XO2 device also not have a simulation model for SEDFA/SEDFB Primitive. ...
2436 - latticeXP2: What methods are available to initiate configuration for the LatticeXP2?
Solution:The LatticeXP2 device has several methods to initialize the device that is controlled by the CFG[1:0] pins. When the CFG0 pin is high, the device will configure itself by reading the data stored in on-chip Flash; this is referred to as SDM, ...
7159 - When failing in programming/booting, which information is helpful for tech support to analyze the issue?
Problem: Programming and booting from both internal flash and external flash are failing. Which information is helpful to tech support? Solution: When failing programming and booting, technical support can help in analyzing the issue by sharing the ...
5646 - ECP5/ECP5-5G/CrossLink: If the user wants to update the bitstream in the field and encrypt the bitstream so that it can only be used on my product, is there a solution available in the CrossLink device? If yes, in what document is it stated?
Encrypting the bitstream is only available with Lattice XP2, and ECP products. Crosslink, does not support a bitstream encryption solution on the other hand.