Quadrature output(dsPIC)

Hi Can anybody help me out with the problem below. i am supposed to create standard quadrature o/p (2 or 3 oututs, A B and RM) from PWM or outputcompare pins of a dsPIC 30F3010 or dsPIC 30f3011 The preferred frequency could be in the range of 1Mhz or a bit lesser. The timing parameters for these outputs will be obtained to 2 Inputcapture modules in the dsPIC from the outside analogue world. Can we create this output at good resolution (around 0.1um resolution) when the linear change is around 1m/s? dsPIC is running at 30Mhz Fcy

Many thanks

Sandeep

Reply to
Spider_mce
Loading thread data ...

Hi Can anybody help me out with the problem below. i am supposed to create standard quadrature o/p (2 or 3 oututs, A B and RM) from PWM or outputcompare pins of a dsPIC 30F3010 or dsPIC 30f3011 The preferred frequency could be in the range of 1Mhz or a bit lesser. The timing parameters for these outputs will be obtained to 2 Inputcapture modules in the dsPIC from the outside analogue world. Can we create this output at good resolution (around 0.1um resolution) when the linear change is around 1m/s? dsPIC is running at 30Mhz Fcy

Many thanks

Sandeep

Reply to
Spider_mce

Can anybody help me out please!!

Reply to
Sandeep

I am not sure I understand what you are trying to do.

Do you want to

  1. simulate quadrature output - generate quadrature A/B output signals?

  1. Read

- two quadrature encoders

- linear change 1 m/s

- 1 MHz sample rate

- interpolate changes to 0.1 m/s

- simulate quadrature A/B outputs from the interpolated 0.1 m/s

To figure out how to simulate quadrature outputs, look at and understand the methods for decoding quadrature encoder decoding in software. There are software encoder algorithms either in a Microchip application note or a posting on piclist.

Try using google or your favorite search engine to search on "software quadrature encoder decoding"

Reply to
Anchor

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.