1) Calculate time period (Ttimes) with time delay of 1 sec using 20 MHz crystal oscillator with PIC microcontroller. Also calculate initial count (IC) to be filled in timer's 16-bit register with prescalar configured at 1:256.
2)Calculate value to be loaded in TMR0H and TMR0L in 16 bit mode times with prescalar value of 1:128 using 8-MH2 crystal
[Using Timer0 in 16-bit mode].
Comments
Leave a comment