slow
06-07-04, 12:09 PM
I am confused on how to use the ISOPOD quadrature decoders. My understanding is that the DSP56F805 has two built in high performance quadrature decoders. My application requires three quadrature decoders. My hope is to use the the two hardware decoders and implement a third decoder in software.
In the TMR_QUAD_32 bit example on the 'Pod download page I see six channels of quadrature decoders. TEST displays two counters for channels A and B and one for C and D. It looks like A is channel 0 and 1, B is 2 and 3, C is the first channel 4, and D is the second channel 4.
1) Are channels A and B the hardware quadrature decoders?
How do I use these? Can I just run INIT and then read counters?
Can I simply set counters if I want to initialize them to a particular value?
2) Are channels C and D quadrature decoders? Are the inputs simply TMRC0/1 and TMRD0/1 on the J6 connector? Are these implemented in software? What is the performance of these decoders?
I appreciate any help or advice or example code that you can give me.
Thank you kindly,
slow
In the TMR_QUAD_32 bit example on the 'Pod download page I see six channels of quadrature decoders. TEST displays two counters for channels A and B and one for C and D. It looks like A is channel 0 and 1, B is 2 and 3, C is the first channel 4, and D is the second channel 4.
1) Are channels A and B the hardware quadrature decoders?
How do I use these? Can I just run INIT and then read counters?
Can I simply set counters if I want to initialize them to a particular value?
2) Are channels C and D quadrature decoders? Are the inputs simply TMRC0/1 and TMRD0/1 on the J6 connector? Are these implemented in software? What is the performance of these decoders?
I appreciate any help or advice or example code that you can give me.
Thank you kindly,
slow