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.

6678 ISR 问题



大家好:

请问我在做GPIO中断过程中,设置了其中一个引脚为中断,并且为输入。问题是我要怎么样做才能够在ISR中获得外部输入信号的状态,并把这个状态打印到CCS控制台上。

谢谢!

  • 你好:

    你的问题我不是很明白,GPIO作为输入没问题,但这时的ISR是由GPIO触发吗?还是由其他信号触发然后你再去读取GPIO的状态?

    GPIO的引脚状态可以通过GPIO的寄存器读取。

    谢谢!