Author Topic: Using embedded I2C in Lattice MachXO2 as DS3231  (Read 751 times)

0 Members and 1 Guest are viewing this topic.

Offline greenstrikeTopic starter

  • Contributor
  • Posts: 15
  • Country: it
Using embedded I2C in Lattice MachXO2 as DS3231
« on: March 31, 2023, 02:58:02 pm »
Hi to all!
I am using Lattice MachXO2 FPGA.
On datasheet I read there is embedded I2C module on this FPGA.
I would like to create a fake DS3231 I2C slave, I mean, as exercise I would write I2C slave module, read and write registers from master (microcontroller) and increase internal registers using external clock.
Are there available examples about verilog code using embedded I2C modules?
Thanks.
 



Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf