jimmo / numato-mimasv2-pic-firmware

14 stars 7 forks source link

Implement something like the TOFE "virtual EEPROM" #12

Open mithro opened 7 years ago

mithro commented 7 years ago

It would be good to enable the FPGA to interact with the PIC to do things like read the analog values.

On the TOFE LowSpeedIO board I did this through the PIC appearing as a I2C EEPROM via the code here -> https://github.com/timvideos/HDMI2USB-TOFE-LowSpeedIO/blob/firmware/firmware/virtual-i2c-eeprom.c#L416-L483 and https://github.com/timvideos/HDMI2USB-TOFE-LowSpeedIO/blob/firmware/firmware/virtual-i2c-eeprom.c#L84-L278

It probably makes more sense for the PIC to do something like a SPI device or something?

Questions:

mithro commented 7 years ago

image