Reference for Software Interrupt Generation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reference for Software Interrupt Generation

1,270 Views
sagardhavali
Contributor III

Hi,

I am looking for any reference which would explain how to go about software interrupt generation.

Thanks in advance,

Sagar

Labels (1)
0 Kudos
3 Replies

979 Views
petervlna
NXP TechSupport
NXP TechSupport

Ok, so you are looking for software-settable interrupt requests in Software vector mode handshaking.

Just to be clear.

here is a lost of available software-settable interrupt requests:

pastedImage_1.png

Configure the INTC for interrupt requests:

interrupt_request_initialization:
Configure HVENn in INTC_BCR.
Configure VTBAn in INTC_IACKRn.
Raise the PRIn fields and set the PRC_SELn fields to the desired processor in INTC_PSRn.
Set the enable bits or clear the mask bits for the peripheral interrupt requests.
Lower PRI in INTC_CPRn to zero.

Enable processor(s) recognition of interrupts.

now you can trigger your software-settable interrupt by setting it in INTC Software Set/Clear Interrupt Register (INTC_SSCIRn).

It is the same as for peripheral interrupts, but you pull request by software.

thats all,

Peter

0 Kudos

979 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

To save your time you could simply check examples on community in quick links:

S32DS:

Example MPC5744P PinToggleStationery S32DS 

Greenhills:

https://community.nxp.com/docs/DOC-103438 

Peter

0 Kudos

979 Views
sagardhavali
Contributor III

Hi Peter,

I was looking for something where I can generate the software interrupt at will and not the same triggered by some event.

Is there anything like that? 

I know a way. Tell me if I am right.

Section 21.7.7.1of programmer reference manual, there is mention of something. 

pastedImage_1.png

Sagar

0 Kudos