Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/26/03 06:48
Read: times


 
#59443 - RE: Direction Bit for Encoder_RPM
Responding to: ???'s previous message

Use a 'd' type flip/flop.

phase 'a' into D
phase 'b' into CLK

Q has your direction out

If it is back to front either reverse phase 'a' and 'b' or use Qbar output

otherwise using the micro, one phase causes an interrupt which then reads the state of the other phase. (encoder 3600pulses per rev * 100 rpm)/60 = frequency = 6000hz = 166uS/pulse approx. You should have plenty of time to process the input and keep a count with a 12mhz 8051 even more if it is faster part.

Failing that, HP (Agilent) have some nifty ics that do all the hard work (HCTL1000 methinks??).



List of 21 messages in thread
TopicAuthorDate
Direction Bit for Encoder            01/01/70 00:00      
   RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
      RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
         RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
            Search - Steve            01/01/70 00:00      
               RE: Search - Steve            01/01/70 00:00      
                  Alternate solutions - Steve, Erik            01/01/70 00:00      
                     RE: Alternate solutions - Steve, Erik            01/01/70 00:00      
                     RE: Alternate solutions - Steve, Erik            01/01/70 00:00      
                        RE: Pot solution - Steve            01/01/70 00:00      
                           RE: Pot solution - Steve            01/01/70 00:00      
                              RE: This is the way to go - Steve            01/01/70 00:00      
                                 RE: This is the way to go - Steve            01/01/70 00:00      
                                    RE: This is the way to go - Steve            01/01/70 00:00      
                                       RE: This is the way to go - Steve            01/01/70 00:00      
                     RE: Alternate solutions - Steve, Erik            01/01/70 00:00      
         RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
            RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
               RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
                  RE: Direction Bit for Encoder_RPM            01/01/70 00:00      
                     RE: Direction Bit for Encoder_RPM            01/01/70 00:00      

Back to Subject List