Which Cortex-M3 interrupts can I use for general purpose work?

前端 未结 5 1020
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 07:50

I\'d have some code that needs to be run as the result of a particular interrupt going off.

I don\'t want to execute it in the context of the interrupt itself but I

5条回答
  •  甜味超标
    2021-01-12 08:28

    Check your processor documentation. Some processors will interrupt if you write the bit that you normally have to clear inside the interrupt. I am presently using a SiLabs c8051F344 and in the spec sheet section 9.3.1:

    "Software can simulate an interrupt by setting any interrupt-pending flag to logic 1. If interrupts are enabled for the flag, an interrupt request will be generated and the CPU will vector to the ISR address associated with the interrupt-pending flag."

提交回复
热议问题