Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I am sorry My calculations are wrong If we only have to count 356 pulse, then how does the counter count because 8 bit counter will start at 0 and end at 255 and again it will run from 0 to 255. will it count remaining 101 pulses in second round and then it will stopFirst I don't understand your calculation.
Les.
I am sorry My calculations are wrong If we only have to count 356 pulse, then how does the counter count because 8 bit counter will start at 0 and end at 255 and again it will run from 0 to 255. will it count remaining 101 pulses in second round and then it will stop
->The purpose of the prescaler is to allow the timer to be clocked at the rate a user desires.Already explained - the actual numbers make no difference - if the counter is only 8 bit it will overflow and carry on counting.
Counters in a micro; when they overflow, set a overflow bit. This signal the computer and may cause a interrupt. With out using interrupts, you can read the overflow as a 9th bit. You do not know how many times there has been a over flow.But counter can only count 255 pulses, so now how does counter count 360 pulses in micro?
My question is what value has to be loaded in the counter register to count 257 pulseIf you want to count to less than 512 (356 mentioned above) then you can still use an 8 bit counter and use the overflow flag as a ninth bit.
Mike.