Hi,
I want to use the wfi instruction in my code. I'm sending a command to a module and wait for the reply.
I have configured UART communication with the module. Will it be good to use wfi() instruction? I know that it will turn the cpu to power down mode.
Instead I can use some arbitrary delay, but the time taken for the reply is varying in nature.(.7 to 2 sec)
What if I poll the Interrupt flag? is there any alternate solution ?
Thank You.
Dear,
you can use the interrupt service program to process the interrupt.
I'm using he interrupt service program to process the replies, but the commands to the module iare issued form a lower priority interrupt,I want to wait for the higher priority interrupt to occur .(I want to know how to wait for the higher priority interrupt without executing the code further )
I think you can use WFI.
View all questions in Embedded forum