AnsweredAssumed Answered

changing pin's mode from interrupt input to normal mode in the interrupt routine

Question asked by jamali.fatemeh on Jul 12, 2014
Latest reply on Jul 22, 2014 by Clive One
Dear all

I configured PC.0 in STM32f103 as input in interrupt mode as rising edge. There's a pulse connected to PC.0. We need to STM32f103 reply to any rising edge by push the bus low.

When I want to detect rising edge, I should configure STM32f103 as interrupt input. But when I want to reply to this pulse I should configure the PC.0 as output. I want to know is it possible to change the pin mode during interrupt routine? how we can configure that?

I test some codes but the problem was when program enter interrupt routine, never  come back to main loop.

I'm waiting for your response.

Regards,

Outcomes