Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- At this moment I am using the Avalon SPI core from Altera to interface to a ADC/DAC. I also want to use this to interface to a serial EEPROM but the data-length for the EEPROM I want to use is 29 bits instead of 16 bits when interfacing to the ADC/DAC. Has anybody modified the Avalon SPI core from Altera so that the number of data-bits can be specified during the execution of the program or is there a Avalon SPI core available which I can use. --- Quote End --- SPI controllers (on microcontrollers) generally only 'talk' in 8-bit transactions, and its up to your driver to assert chip-select for the number of 8-bit transactions your device really cares about. Even if your EEPROM has a 29-bits command code/format, there is a pretty good chance you can just talk to it using 32-bits. You'll just need to read the data sheet to determine when the EEPROM starts to ignore bits, i.e., is it the first or last 3-bits of the 32-bit transaction that get ignored. Alternatively, just write a controller to interface to the EEPROM. Cheers, Dave