Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

SPI Mode

ASidd16
Beginner
651 Views

Hello Everyone.

I want to know how can i change SPI mode in NIOS software.

For example i have two chips, one chip has  SPI  mode 3 and the other has 1,

i want to use only one block in Qsys  with 2 chip select pins.

If i configure it with mode 3 , the other chip is  not working.

If anyone has an idea then please share.

Thank you

0 Kudos
2 Replies
SyafieqS
Moderator
620 Views

Hi Ali,


It is always recommended for you to start with sample design. You can find very good references about how to use SPI communication, here is a good example of how to use SPI slave to AVALON memory mapped.


https://www.intel.com/content/www/us/en/programmable/support/support-resources/design-examples/intellectual-property/embedded/nios-ii/exm-spi-bridge.html


Thanks,

Regards


0 Kudos
ASidd16
Beginner
603 Views

Thank you for your help.

but this is not the answer of my Question.

SPI is working properly. I want to change SPI mode using NIOS.

Thank you

0 Kudos
Reply