revolution counter for motor

Status
Not open for further replies.

kranthi_vlsi

Newbie level 5
Joined
Oct 18, 2013
Messages
9
Helped
2
Reputation
4
Reaction score
2
Trophy points
3
Visit site
Activity points
53
Hi

I have one module like revolution counter which will count the revolution of motor.for that module 3 I/p are there clk,reset,motor angle of 15 bit when motor angle crosses 0 degrees in positive direction the count value increments one and it crosses 0 in neg direction it decrements 1....can u suggest logic or vhdl code for dis
p.s there is no direction pin
 

Look at the 15-bit angle value and compare it to the 0 degree value keep a record of the last received value and then you can determine if you reached 0 from the positive or negative direction and then you can increment/decrement the counter accordingly.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…