Altera CPLD Max II Blink Led

by MaryoriS in Circuits > Electronics

4355 Views, 2 Favorites, 0 Comments

Altera CPLD Max II Blink Led

Max II EPM240 CPLD Altera- Blink Leds
epm240.jpg
pin.jpg
3.jpg

Datasheet

-Materials:

-Leds

-Wires

For 1 Led, verilog code is:

module ledblink(clk,led);
input clk; output led; reg led;

reg[23:0] cnt;

always @(posedge clk) begin cnt<= cnt + 1'b1; led<=cnt[23];

end

endmodule

if you need more information about this tutorial, check my Blog