Frequency diving by selected times.

Pls any body suggest me how to solve this problem. If a unknown frequency of a square wave is fed to timer chip of a 8051(any similar micro..)and on a port (P0) 8 select switches are placed and by their position (ON/OFF) the port value is sensed on thier binary weights. i.e if P0.0 is on its value is 2 (power) 0 = 1 and next pin is high its value is 2 and so on.
so we can get 1 to 255 values on P0. this value is is the divisor factor.the frequency of the fed square wave is calculated and generate a frequency(waveform) by dividing that many times by divisor, from some other port pin. pls suggest me the procedure to solve this problem.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!