Reference for Software Interrupt Generation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Reference for Software Interrupt Generation

2,332 次查看
sagardhavali
Contributor III

Hi,

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

Thanks in advance,

Sagar

标签 (1)
标记 (2)
0 项奖励
回复
3 回复数

2,041 次查看
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 项奖励
回复

2,041 次查看
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 项奖励
回复

2,041 次查看
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 项奖励
回复