I2C & Ethernet Reference Design Principle
A Lattice MachXO5T-NX development board is used with up to 4 x Pmod I2C Temperature sensors attached. Each PMOD connector can host two sensor modules.
The design configures the sensors in their most accurate (and slowest) mode (12 bits with a resolution of 1/16th Celsius). The sensors are read 4 times per second.
The LEDs can display the LSBits of Sensor 0 temperature, or a value written by the PC.
The LEDs are dimmed by a PWM which can be adjusted by the PC.
We provide a Python utility program : i2c_eth.py to exercise the FPGA.
We also provide a command line utility gedek_rw.exe to read and write in the FPGA register map.
Block Diagram of the Reference Design
MachXO5 board
The commercial reference of this board is LFMXO5-100T-EVN.
The documentation can be found here.
Beware ! don’t get confused : there exists a MachXO5™-NX Development Board, with a smaller FPGA and
a version without Ethernet !

Testing the Reference Design
All the details can be found in the document below.
You will see how to connect temperature sensors, program the board, connect it to Ethernet and interact with the board from your PC through Ethernet. You’ll see how to visualize the Ethernet frames exchanged using Wireshark.
If you own a LFMXO5-100T-EVN board, please contact us so we can send you the latest archive to test this Reference Design.