In the first case, it keeps waiting until the specified condition is met. This figure shows the comparison of the polling vs interrupt technique. Difference between Polling and Interrupt Method The main disadvantage of this technique is the wastage of microcontroller time and resources. The polling method is kind of a round-robin method. Because polling is not an efficient method and it halts microcontroller execution at the same location waiting for the condition to meet. But now we will see an interrupt method to receive data. Code Working Why do we need to use PIC UART Interrupt?īut we used a polling method to receive string or data with pic UART module.PIC UART Interrupt Receive Data Serially.Difference between Polling and Interrupt Method.Why do we need to use PIC UART Interrupt?.
0 Comments
Leave a Reply. |