agnivesh
Member level 2
considering each machine cycle of 8051 consisting of 12 external oscillator pulses and, let's say external oscillator frequency is 'f', then each machine cycle will take 12/f seconds to complete (am i right ?). timers and counters use this machine cycle to increment the registor bits.
how timers use this info to calculate 1 sec time interval ?
how timers adapt to calculate 1 sec time interval again if we change the external oscillator frequency ?
when we write code, we say wait for 'n' seconds and then raise 'x' pin state to logic 1, how microcontroller calculates those 'n' seconds interval ? how it will calculate the same n second interval if we change the external oscilllator frequency ?
with regards
agnivesh
how timers use this info to calculate 1 sec time interval ?
how timers adapt to calculate 1 sec time interval again if we change the external oscillator frequency ?
when we write code, we say wait for 'n' seconds and then raise 'x' pin state to logic 1, how microcontroller calculates those 'n' seconds interval ? how it will calculate the same n second interval if we change the external oscilllator frequency ?
with regards
agnivesh