Quantcast
Channel: Cypress Semiconductor - PSoC 4 Architecture
Viewing all articles
Browse latest Browse all 761

Quadrature Decoder not working

$
0
0

Using the PSoC4 Pioneer Kit and a 500 PPR encoder I am trying to get it to count up when I turn the encoder in one direction then count down hen turned it the other direction; but it is not working correctly.

When I turn the encoder in what I believe to be the count-up direction (A leads B) it does count up.

When I turn the encoder in the count-down direction (B leads A) it does NOT count down.

It just toggle back-and-forth between two values.

I capture the counts through Hyper Terminal and log them to a .txt file.

My project and the text file are attached.

I manually edited the .txt file to give indicators when I changed encoder direction.

 

Thank you,

Doug


Viewing all articles
Browse latest Browse all 761

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>