56F8323 Quadrature Decoder Setup

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

56F8323 Quadrature Decoder Setup

2,232 Views
v_dave
Contributor IV
Hello All,
 
As you may have seen from some of my earlier posts I am working on a Motor Control project.  I am using the 56F8323 and I plan to use the Quadrature Decoder module.
 
In section 12.1 of the 56F8300 Peripheral User Manual Rev 9 it states that the maximum count resolution is 4x the input signal.  Does this mean it will work as a 4x Quad Decoder?  i.e. if I have a decode wheel with 360 marks then in 4x mode it would count to 1440.
 
How do I set the Quad Decoder module to the different resolutions (1x, 2x, 4x)?  I don't see any reference in chapter 12 or Chapter 16 Quad Timer.  I also don't see any settings in the Bean when using CodeWarrior.
 
Does anyone have any good tips on how to set this up?
 
Labels (1)
Tags (1)
0 Kudos
2 Replies

295 Views
admin
Specialist II
QuadDecoder is a module changed internal state on the both edges (falling and raising) of two out-of-phase pulses. So its resulting resolution is 4.
If you need different resolutions you can use timers for counting external signals. For example - using Edge Count Mode - resulting resolution will be 2x. Using simple Count Mode - resolution will be 1x.
0 Kudos

295 Views
v_dave
Contributor IV
Hello,
 
Thanks for the response.
 
My questions stems from using a Qudrature decoder module in a competitors MCU.  With thiers you select 1x, 2x or 4x mode.  so when I didn't see that option spelled out with the 56F8323 then I just wanted to make sure what mode is the default. 
 
0 Kudos