Forum Discussion
Altera_Forum
Honored Contributor
16 years agoHi,
depending on your requirements you have a number of options, a) Your can present the micros address and data bus, rd/wr and cs signals to the fpga, and simply decode them in the fpga, depending on how much resources you require. Simply memory mapping the fpga into the micros address space. Doing a search on the topic interfacing 8051/AVR/PIC to fpga should produce some suitable hits. b) You can just place an I2C slave core on the fpga, and with just 2 external lines from the micro (SDA and SCK), you can configure hardware registers in the fpga via (Master) I2C code on the micro. Alternatively, you could do the same using an SPI slave core. There much I2C code availabe for free on the net. Suitable cores are available for free from Opencores.org. I hope that helps. Herbx