tahirsengine
Member level 3
My question is very elementary, yet tricky.
Say for example: I have a digital clock of 10MHz. I need to trigger an operation at 10ms.
So how many bits I will be needing, after counting which I will be at 10ms? (Number of bits in counter).
Please elaborate a little.
Thanks in advance.
- - - Updated - - -
Ok got answer. Sharing it for general info here.
For 10MHz, the time period for one cycle is 0.00000001 second. For counting a time of 10ms, we will divide 10m by .00000001. This will give us a count of 100000. So, we will count 100000 with a clock, that has a single cycle of .00000001 seconds in order to reach 10ms timings. So in order to count 100000 we need 17 bits(*11000011010100000).
Thanks anyway
Say for example: I have a digital clock of 10MHz. I need to trigger an operation at 10ms.
So how many bits I will be needing, after counting which I will be at 10ms? (Number of bits in counter).
Please elaborate a little.
Thanks in advance.
- - - Updated - - -
Ok got answer. Sharing it for general info here.
For 10MHz, the time period for one cycle is 0.00000001 second. For counting a time of 10ms, we will divide 10m by .00000001. This will give us a count of 100000. So, we will count 100000 with a clock, that has a single cycle of .00000001 seconds in order to reach 10ms timings. So in order to count 100000 we need 17 bits(*11000011010100000).
Thanks anyway