Utilize this web-based calculator to determine the time delay for your 8051 PIC microcontroller. Just input the clock frequency and desired run time to obtain the hold.
This online electronics calculator enables you to calculate the time delay of your 8051 PIC microcontroller (UC) device using the given clock frequency and desired run time values.
8051 PIC Microcontroller Time Delay formula
TIC12 = 1 / (mhz / 12)TIC6 = 1 / (mhz / 6)
8-bit Timer Counter Maximum Run-Time for 12 clock = TIC12 * 256 / 1000
8-bit Timer Counter Maximum Run-Time for 6 clock = TIC6 * 256 / 1000
16-bit Timer Counter Maximum Run-Time for 12 clock = TIC12 * 65536 / 1000
16-bit Timer Counter Maximum Run-Time for 6 clock = TIC6 * 65536 / 1000
8-Bit DRT Reload Value for 12 clock = 256 -(DRT / TIC12 * 1000)
8-Bit DRT Reload Value for 6 clock = 256 -(DRT / TIC6 * 1000)
16-Bit DRT Reload Value for 12 clock = 65536 -(DRT / TIC12 * 1000)
16-Bit DRT Reload Value for 6 clock = 65536 -(DRT / TIC6 * 1000)