Forum Discussion
VLadw
New Contributor
7 years agoI have a cyclone 5 gx starter kit where i am trying to create a hardware that counts number of pulses generated by a source? according to logic count should increase every negative edge by one but actually it increases by 7 or 8.
pulses are generated by a speed encoder that gives one pulse per revolution. input is taken by GPIO header pin 2 i.e. pin D26 on my FPGA Board device : 5CGXFC5C6F27C7 cyclone 5 family code used: ...
Rahul_S_Intel1
Frequent Contributor
7 years agoHi ,
Code is generic, but do check exact physical data is coming to the GPIO pin
VLadw
New Contributor
7 years agoSir i tested and made sure that the inputs to the pin is a perfect wave and according to your comment i can conclude code is good. so last thing only stays may be when there is no signal on pin it toggles itself so adding a pull-up might work i guess. thanks you very much for clearing my doubts towards the code i am actually new to this and started developing since last few days.
will highlight if found any solution
thank u for the response.