Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Quadrature squarewave generator 3

Status
Not open for further replies.

RICH535

Electrical
Jun 23, 2007
18
I need a CMOS circuit that will give me quadrature squarewave ouputs. Any suggestions?
 
Replies continue below

Recommended for you

A PIC is the standard solution. Their 8-leggers come to mind. What frequency or frequency range do you need? There are lots of app notes on the web. Make google your friend.

Gunnar Englund
--------------------------------------
100 % recycled posting: Electrons, ideas, finger-tips have been used over and over again...
 
You really want a 2-bit gray code generator. Xilinx has a nice N-bit generator VHDL template in their ISE software that is a free download:

Gray code w/ CE and async active high reset

-- Usage of Asynchronous resets may negatively impact FPGA resources
-- and timing. In general faster and smaller FPGA designs will
-- result from not using Asynchronous Resets. Please refer to
-- the Synthesis and Simulation Design Guide for more information.
<next_binary_count> <= <binary_count> + 1;

process(<clock>,<reset>)
begin
if ( <reset> = '1') then
<binary_count> <= (others => '0');
<gray_count> <= (others =>'0');
elsif ( <clock>'event and <clock> ='1') then
if <clock_enable>='1' then
<binary_count> <= <next_binary_count>;
<gray_count> <= (('0' & next_binary_count(<width-1> downto 1)) XOR <next_binary_count>);
end if;
end if;
end process;


You can simplify this down to a two bit counter and a couple of XOR gates if you want it in CMOS hardware.

John D
 
You may get perfect pulses of up to 200kHz with a PIC 10F200, SMD (SOT-23) pkg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor