![]() ![]() Now the Timer value for the required delay can be calculated as below. Time to increment the Timer count by one(timer tick) can be determined as below. PIC Oscillator frequency is divided by 4 and then fed to the controller, Now this this freq can be further divided by presacalar to generate the range of delays. Pic16f877a has three indepenndent timer which can be used as timer,Counters or for PWM generation.īelow table provides the details of the three Timers. Once it reaches the Max value, it will roll back to zero setting up an OverFlow flag and generates the interrupt if enabled. Timer is nothing but a simple binary counter that can be configured to count clock pulses(Internal/External). The microcontroller can also generate/measure the required time delays by running loops, but the timer/counter relieves the CPU from that redundant and repetitive task, allowing it to allocate maximum processing time for other tasks. As the name suggests these are used to measure the time or generate the accurate time delay. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |