Forums - CSR1010 software interrupt

5 posts / 0 new
Last post
CSR1010 software interrupt
aswin.v
Join Date: 22 Feb 17
Posts: 12
Posted: Sun, 2017-12-17 23:10

Hello,

Whether it is possible to create an independent software interrupt like a timer in CSR1010 (other than TimerCreate function)? Also is it possible to give priorities to Hardware PIO change interrupt?

Please help

  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Mon, 2017-12-18 02:52

CSR1010 is a single thread so you can't priorities Hardware PIO change fire interrupt.

But since I know it very fast, I belive you try to do some other fast event that may be support in other CSR1010 Hardware.

What you like to achieve? 

You can call my Skype nissim.test

 


 

 
  • Up0
  • Down0
Carvrenato
Join Date: 15 Sep 17
Posts: 9
Posted: Mon, 2017-12-18 03:32

Hi,

 

Maybe you could try to use the 8051 controller if you want a timer to trigger some IO change. I've never done it, but it seems to me to be possible. 

Regarding the priority on IO change interrupt, I've never seem something related to that for CSR1010. Maybe you could do some verification when an interruption is trigged, like waiting for a little time to check if another pin would trigger the interrupt and execute the second interrupt code first. Depends on what you want to do.

  • Up0
  • Down0
aswin.v
Join Date: 22 Feb 17
Posts: 12
Posted: Mon, 2017-12-18 04:02

 

Hi,

Can you advise how to use 8051 controller?Is it possible to acccess timers using it ?

  • Up0
  • Down0
Carvrenato
Join Date: 15 Sep 17
Posts: 9
Posted: Mon, 2017-12-18 08:43

I haven't used it yet with CSR, so I can't tell you exactly how to do it, but take a look at the quadrature decoder example, study the file quad_enc_emulator_pio.asm.  It is 8051 assembly programming. I think this will help you. Post here afterwards to let us know if you could do it. ;)

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.