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. Why do we need to use PIC UART Interrupt?īut we used a polling method to receive string or data with pic UART module. Receive data Serially (receive string with pic uart).Send data serially ( send string with uart).Because in that guide, we explain the following concepts of UART Module: I recommend you to read this tutorial first. This PIC18F4550 tutorial is a part of UART Communication using Pic Microcontroller. ISR routine used to read data from the receiver register (RCREG). As soon as UART receives register raises a full capacity interrupt (RCIF), an interrupt service routine (ISR) will be called. Unlike, a polling method, a UART interrupt method doesn’t wait for the data and keep executing or doing other tasks. We will use the PIC18F4550 microcontroller to receive data serially. In this tutorial, we will see how to use UART interrupt of pic microcontroller.
0 Comments
Leave a Reply. |