Quadrature Inputs

Started by Paul Johnson in 68HC1214 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


OT Hybrid Controllers

Started by Shayne Rich in 68HC1212 years ago 5 replies

Hi, I know this is off-topic, but is there a group dedicated to the 56F family of hybrid controller? If there is not, has anyone...

Hi, I know this is off-topic, but is there a group dedicated to the 56F family of hybrid controller? If there is not, has anyone used them? I'm interested in them because of the quadrature decoding available on some of the higher-end devices. I'm also in need of interfacing compact flash cards to a microcontroller (rathe


Encoder Integration

Started by Paul Williams in 68HC1211 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 68HC129 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 68HC1213 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


Input Capture and Output Compare for MC9S12DP256

Started by yawjiun_84 in 68HC1210 years ago

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a...

Hi, Can I know where I can get the detail information on the basic steps to write program for the interrupt in C? Any sample code as a reference? Basically, I will use Output Compare function to generate a step pulse train to a stepper motor driver. Meanwhile, Input Capture function will be used to detect the quadrature encoder input as a feedback. Any reference or sample code on this? W...