This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to use the UART interrupt to wake up the chip

Hi, I have a problem is that I use the 51822 as a reader to read the 24l01's radio data.Now,I use the UART to read the instruction from the PC. If the instruction is "ON",the 51822 should start the radio and read the data from the 24l01, however, If the instruction if "OFF",the radio should enter the sleep mode. But the UART should be always to prepare to read the instrution from the PC. I want to konw how can I deal with it? If I can use the UART interrupt by the _WFI() to control it? can you give me an explanation?

Related