Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How do I invert a clock signal from counter

Status
Not open for further replies.

JacquesKleynhans

Member level 2
Joined
Jul 3, 2008
Messages
51
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,630
Hi Basic question, I have counter that generates a 400khz clock but I want both a normal an inverted clock. How can I do it. Code is below:

Code:
	process(clk, reset)
		begin
			if reset = '1' then
			   sccbclk <= '0';
			   sccb_div <= "1100011";
			elsif rising_edge(clk) then
				if sccb_div = "0000000" then
					sccbclk <= not(sccbclk);
					sccb_div <= "1100011";
				else	
					sccb_div <= sccb_div-1;
				end if;	
			end if;
	end process;
clock <= sccbclk; -- normal clock

Thx in advance

Added after 1 hours 12 minutes:

Never mind I got it, used a (not)

palm >>>> Face
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top