Clicky

Altera MAX II EPM240 – Using the 7 Segment LED with a Counter (and a Debouncer!)

Quick aside regarding the video below…admittedly, my second video attempt using KDEnlive (which I really like) was kind of so-so .  My video editing quality is definitely bush league, but like I said, it was my second attempt.  Watch it if you like. Both the content here in this post and the video is pretty much the same. This is a quick tutorial for a Quartus Prime block schematic that uses a 7490 decade counter to “count” from 0 to 9, and then uses a 7447 BCD to seven segment decoder to display the number on the EPM240’s on-board seven segment display.  Typically, the circuit uses a clock signal coming into the decade counter that drives the “counting” of the […]

Altera MAX II EPM240 Development Board – Simple Binary Counter Tutorial

This is part 5 in a series of very beginner tutorials for the Altera MAX II EPM240 CPLD Development Board included with HackerBoxes #12.  In this tutorial, I will make a very simple binary counter  that increments at 1 Hz.  For now, I’m just going to use the 8 LEDs on the M240 Development Board to display a binary representation of counting from 0-255 (incrementing the count at 1Hz).  The LED at PIN_51 represents bit 0 and PIN_58 represents the high bit.  Keep in mind that the LEDs on the M240 board are turned on when the output pins they are connected to are pulled low. Setting Up Set up a new Project in Quartus Prime Lite as described in […]

Altera C-M240 Tutorial – Using Verilog Code with Block Schematics

This is part four in a series of beginner tutorials for the C-M240 Development Board that was included with HackerBoxes #12.  For a complete beginner like myself, figuring out how to use the Verilog code with the block schematics in Quartus Prime Lite was a bit of a pain, but once I figured out the correct procedure, it was really pretty easy.  Also, as a side benefit, I can now save my commonly used Verilog code blocks in a directory which I can then include as symbols with new projects, thus saving me the time of recreating them again. My original problem was that I wanted to include a clock signal which I had created using Verilog into my block […]

Altera C-M240 – Blinking LED Tutorial using Verilog (HackerBox #12)

This is part 3 of the tutorials and examples I have been trying to put together for the Altera Max II C-M240 CPLD Development Board included with HackerBoxes #12.  Other than the board itself, I’m using the Linux version of Quartus Prime Lite version 16.0.2 to code, compile, and program the board. Part 1 – Tutorial covering the basics of project setup and basic schematic design. Part 2 – Tutorial covering lighting up onboard LEDs and buzzer with pushbuttons. I’ve been playing with Verilog and the Altera EPM240T100C5N (the Altera CPLD chip included on the board) for about a week now, and I have to say I am really digging it.  There have been quite a few moments where I […]

Basic Schematic Examples for Altera EPM240T100C5N (HackerBox #12)

Here are a few more Schematic examples for the C-M240 CPLD Development Board included with HackerBox #12.  Part one of the basic schematics was for a simple circuit hooking-up one of the onboard LEDs.  As mentioned in the prior post, there are 8 LEDs that need to be connected to a low output for them to illuminate – PIN_51 – PIN_58.  Checking the schematics for the M240 shows that the five onboard push-buttons are similarly setup so that they are normally held high, and when they are pushed, they are connected to ground.  The push-buttons are connected to PIN_26 – PIN_29, and PIN_44. Setting Up the Schematic So I want to illuminate the LED connected to PIN_53 by pushing the […]

HackerBoxes #12 – Fun with the Altera EPM240T100C5N

I signed up for HackerBoxes back in November of 2015, so I’ve been with them for their monthly electronics boxes almost from the beginning.  Some of the boxed electronics kits have been better than others.  Some have had fairly well-defined projects.  Others, like #12, seemed to leave some folks scratching their heads on how to proceed. At least so it seemed on HackerBox’s  official Instructable page. The #12 HackerBox is all about digital logic, and included in the kit (among other components) are digital ICs as well as an Altera Max II EPM240T100C5N CPLD Development Board aka “CPLD C-M240”.  Other than some links to Altera’s free version of the development software and a link to a PDF for the MAX II’s […]