This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use 2nd SPI interface
#9
By using an own Interrupt line for every SPI Channel this INT will signal when the Chip-Register is ready to read (or write). But this Interrupt-SubRoutine so has to do it´s job as fast as possible. Their last line is an Return-from-INT. This enables all other Interrupts again. So maybe you need an little FirstIN-FirstOut-Buffer for every SPI-Channel if you can`t compute the received Data in this Time. The INT Routine has to be shorter to have an Chance to readout the other INT-Routines so they do not overflow from their own received Data.

Should be possible. But the INT Routines are not so easy to understand and develop. But if you get them to work correctly they do it in Background and with highest Priority and disturb nothing.

keep on. Holger
Reply


Messages In This Thread
Use 2nd SPI interface - by sms - 2023-04-11, 06:13 PM
RE: Use 2nd SPI interface - by Sailoog - 2023-04-12, 03:40 PM
RE: Use 2nd SPI interface - by sms - 2023-04-12, 04:53 PM
RE: Use 2nd SPI interface - by Sailoog - 2023-04-12, 05:47 PM
RE: Use 2nd SPI interface - by Sailoog - 2023-04-13, 11:55 AM
RE: Use 2nd SPI interface - by sms - 2023-04-13, 02:44 PM
RE: Use 2nd SPI interface - by Sailoog - 2023-04-13, 04:24 PM
RE: Use 2nd SPI interface - by sms - 2023-04-17, 06:07 PM
RE: Use 2nd SPI interface - by holgerw - 2023-04-18, 01:29 AM
RE: Use 2nd SPI interface - by Sailoog - 2023-04-18, 05:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)