Quadrature Inputs

Started by Paul Johnson in 68HC1220 years ago 23 replies

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there...

I'm surprised, given the number of embedded applications involving motor control or data capture, that almost no micros out there support quadrature input. On our products, we use Xilinx FPGA's that provide 8 sets of quadrature input and handle all the accumulation, etc. Howev


Encoder Integration

Started by Paul Williams in 68HC1216 years ago 2 replies

I am having trouble integrating an encoder into my code for a MC9S12D64. I am using ICC12 and am using a combination of C and assembly. I have...

I am having trouble integrating an encoder into my code for a MC9S12D64. I am using ICC12 and am using a combination of C and assembly. I have tried using a timer interrupt with a table lookup and have got less than adequate results. Ie < 20 Hz I am looking to get a quadrature encoder input of approx 2Khz. My question is will a HCTL 2020 or equivalent using a PWM output (8Mhz CPU CLK) fro


DC motor PID controller

Started by waks_up in 68HC1214 years ago 1 reply

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal...

Hi, Im doing a dc motor PID controller. Im using Nanocore12DX. I have an enocoder. It is a quadrature encoder. I have generated PWM signal from HC12 to drive the motor. The question I wanted to ask is how do i implement the PID controller in Codewarrior? Regards, Chai ------------------------------------


Re: 9S12DG256 Quadrature Encoder Support.

Started by linktek in 68HC1218 years ago 17 replies

Hi, You can implement a simple "no missing states" QD using a 74XX74 D-type latch. Feed sya a into D and input B into CLK and...

Hi, You can implement a simple "no missing states" QD using a 74XX74 D-type latch. Feed sya a into D and input B into CLK and also to a interrupt pin on your micro. Feed Q into a input pin on your micro. Connect PRE and CLR on the 74XX74 to Vcc. This way