This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

28377D CPU01 触发CPU02中断

Expert 1250 points

CPU01里产生AD中断,然后读AD值,这时怎么让CPU02也产生一个中断,然后读AD值,计算

  • 楼主你在CPU1配置好ADC后,在CPU2只要打开PIE使能就行了。

    如下说明:

    2.4.2.4 Dual-CPU Interrupt Handling
    Each CPU has its own PIE. Both PIEs must be configured independently.
    Some interrupts come from shared peripherals that can be owned by either CPU, such as the ADCs and
    SPIs. These interrupts are sent to both PIEs regardless of the peripheral's ownership. Thus, a peripheral
    own by one CPU can cause an interrupt on the other CPU if that interrupt is enabled in the other CPU's
    PIE.

    Eric.