• Channels
Part Inventory
Go
 
powered by:

 
  • Quick Poll
What Social Networking site do you use the most?



VOTE VIEW RESULTS
Previous Polls

Premium Content

New Signal Chain Technical Papers from Texas Instruments:

 

 

 

Single-Chip Quadrature Generator


Contributing Author

February 09, 1998

Print
Reprints Comment Subscribe

A quadrature generator can be useful in a number of applications, such as motion control and signal processing. The idea presented here describes a very simple and inexpensive implementation of a quadrature generator using a single 8-pin IC, the Microchip PIC12C508 (see the figure).

This also represents one of the first published examples of proven assembler code for the new PIC12C508 microprocessor, and can be used as a basis for other programs (see the listing).

The algorithm for generating the quadrature signal is quite simple. The process is initiated by starting a free-running binary counter (COUNT) and by incrementing this register in an endless loop. Bits 1 and 2 (Bin 1 and Bin 2 in the Timing Diagram) of the 8-bit counter register are then used to directly generate the quadrature outputs.

Bin 2 of the counter is transferred directly to quadrature output Quad 2. Bin 1 and Bin 2 of the counter are then logically exclusive-OR’ed to generate the quadrature output, Quad 1. Quad 1 and Quad 2 are clocked to the output simultaneously to prevent the creation of any output glitches due to intermediate logic states.

The frequency of the quadrature outputs in this program is approximately 10 kHz, using the internal 4-MHz clock of the PIC12. The output frequency can be increased by utilizing bits 0 and 1 of the counter register. Decreasing output frequency involves either operating on the higher bits of the counter register or by adding firmware delays to the program’s counter loop. A sinusoidal output can be generated by adding a low-pass filter to each of the output signals.

Average (0 Ratings):

Subscribe
Subscribe to Electronic Design and start receiving more articles like this one
Filed Under:

Check for price and availability on Source ESB:

Go
powered by  
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
Acceptable Use Policy

Sponsored Links