Forum Discussion
Altera_Forum
Honored Contributor
16 years agois there any SOPC and NIOS2 design example of eeprom at93c46
in my design , i used one chip of eeprom: atmel 's at93c46, this memory 's interface looks like SPI interface. it has CS, CLK,DO and DI , but after reading it pdf document. i found it does accord wit...
Altera_Forum
Honored Contributor
16 years agoIf you open your sopc builder have a look at
Component Library -> Interface Protocols -> Serial -> SPI (3 Wire Serial) just add and the configuration dialog opens. Just set it to master, Data width 8 bit MSB first, Clock polarity 0 Clock Phase 0 assuming the added spi was named as spi_0, after generation you should get Input MISO_to_the_spi_0 connect to AT93C46_DO Output MOSI_from_the_spi_0 connect to AT93C46_DI Output SCLK_from_the_spi_0 connect to AT93C46_SK Output SS_n_from_the_spi_0 connect to AT93C46_CS via inverter now you have connected the Atmel 93C46 to the SPI available via Nios SOPC