- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone,
I am working on a project that utilizes SPI (3 Wire Serial) IP as the slave for my Nios. I will get 8 frames of 16-bit data, which will be read by Nios. But somehow the IRQ is only triggered once and I only received the last frame. I followed the Example Test Code provided in the "Embedded Peripherals IP User Guide" and enabled the IRQ in the IP core register for the IRRDY using:
IOWR_ALTERA_AVALON_SPI_CONTROL(SPI_BASE,ALTERA_AVALON_SPI_CONTROL_SSO_MSK | ALTERA_AVALON_SPI_CONTROL_IRRDY_MSK);
But the IRQ still comes once at the end. I checked the SignalTap and discovered that the IRQ is only triggered at the end after the SS_n signal is toggled back to 1, so I will always get the last frame of the data when reading the rxdata. The picture shows the SignalTap when the script is running. Is there any way to trigger the IRQ after every frame of the data?
Thank you
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be you check if you turn on the synchronizer for your slave.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page