Distributed: Oct. 14 - Due: Oct. 24, 4:30 PM
Your DesignKit contains a pair of long nose pliers. Please be very careful with these to avoid damaging the tip. You will find these invaluable for inserting and removing wires in crowded protoboards. They are also useful for straightening hook-up wire and bent pins on the chips. You may want to buy a small screwdriver. The screwdriver is an acceptable tool for carefully removing chips from the protoboard. (There is also a less effective chip puller in the DesignKit.)
Before doing any work on the protoboard such as wiring and inserting/removing chips, be sure the power is OFF. That it, unplug the power connector while you are constructing the circuit. After you have finished wiring up your design and before you turn on the power, double-check the power and ground connections. To be sure, you should measure the resistance between power and ground to check for a short circuit.
The logic probe is also used to "catch pulses". If the PULSE MEMORY switch is placed in the MEM position, the PULSE indicator will turn on as soon as a transition, high or low, occurs on the input. This convenient for determining if a signal changes when the change happens too fast to be visible. This is useful for detecting glitches and whether a wire is stuck at a fixed value or is, in fact, changing on occasion.
We will be using switches that come in packs of 8 and resistors that come in packs of 8. These can be easily connected as shown in the following picture to give 8 separate switches. First measure the resistance of the resistors in the resistor PAK to figure out which is pin 1 (common) and then connect the switches as shown. Choose an place like the first strip where you can leave these switches for the entire quarter.


The LED is a diode, and thus its two connections are electrically different. How can you tell them apart? Here are some hints; they do not always work, though. The longer lead of the LED is the cathode, i.e., the wire that goes to the lower voltage. If the plastic housing is not circular, the flat part corresponds to the cathode (the flat part in the symbol). You can prepare a simple "LED test station" on your superstrip, using a 330 ohm resistor connected to +5V and a grounded pin next to it. In this set-up, you can easily test any LED both ways and determine which lead is the cathode.
We also have LED's in paks of 8 or 12. The next figure shows how they look internally and how to connect them up conveniently on your protoboard. First measure the resistance of the resistors in the resistor PAK, then construct the LED circuit shown in figure using the LED Pak. Choose an place like the first strip where you can leave these switches for the entire quarter. You will want to install a 74LS05 or 74LS04 inverter chip (or perhaps a 74LS240 buffer chip) in order to have active high inputs to the LEDs. (For clarity, the connections between the inverter outputs and the LEDs are not shown in the figure.)



cd pilot spvThe Pilot U-84 programmer interface screen should now be displayed on the screen. The current menu of options is located on the top line of the interface screen. The
Configure option should be currently highlighted. Note that the sub-menu items for the Configure option are located on the line directly below.
Configure File Buffer PAL(device) Macro Extended Quit Device Port Security Color Others saVe ResetTo move from one menu option to the next use the left and right arrow keys. As you move from one menu option to the next the sub-menu items will also change. To access the sub-menu items of a given menu option use the down arrow key or press the hot-key for that menu option. The hot-key for a given menu option is the capital letter in its name. For example, pressing "C" in the above situation will take you to the sub-menu for
Configure. To return to the parent menu use the up arrow key or the ESC key.
Configure menu option by pressing "C". Next select Device from the list of sub-menu options by pressing "D". Finally select Lattice from the list of manufacturer names by pressing "L". You will see a list of Lattice PLDs that the Pilot programmer supports:
Description: Pins: Fuses: GAL18V10 20 3540 GAL20RA10 24 3210 GAL20RA10-UES 24 3274 GAL20XV10 24 1671 GAL20XV10-AS-20L10 24 1600 GAL20XV10-AS-20X10 24 1600 GAL20XV10-AS-20X4 24 1600 GAL20XV10-AS-20XB 24 1600 GAL22V10 24 5828 GAL22V10-UES 24 5892 GAL26CV12 28 6432 GAL6001 24 8294 GAL6002 24 8330We are using the Lattice GAL22V10 so select GAL22V10 from the list using the arrow keys and press enter to continue. Note that the device type listed in the status window at the bottom of the screen should now say Lattice GAL22V10.
File menu option. Then type "D" to choose the Directory sub-menu item. You will now be prompted to enter a directory to look for files. Enter the following and press enter:
File directory mask: A:\*.jedThis will bring up a listing of all Jedec files on the floppy disk in drive A:\. Use the arrow keys to select the appropriate file name and press enter to continue. Note that the file name listed in the status window at the bottom of the screen should now display the file name that you selected. Now that you have told the software which file to use you must load it into its buffer. Type "L" to choose
Load from the file sub-menu.
PAL(device) menu option. You should see a list of operations that you can perform on your device:
Blank eRase Program Verify Checksum Examine TestType "R" to choose the
eRase option from the list. This operation will electronically reset all of the fuses inside your PLD so that you can install your new fuse map in the following step. Once the erase operation is complete, the software automatically performs the Blank operation to verify that it was successful. You should see a "Blank-check OK" on the screen.
PAL(device) sub-menu shown in the previous step type "P" to choose the Program option. This operation will use the current contents of the buffer to program the device in the Pilot U-84 programmer. Once the operation is complete, the software automatically performs the Verify operation to make sure that the correct fuses were blown on the PLD. You should see the following on the screen (of course your checksum will be different):
Device programmed Device verified Device checksum = 6DC9 (No test vectors present)
To test your circuit, wire one of the 8-bit inputs to the constant value 0x56 (remember 0v is 0 and 5v is 1). Wire the other 8-bit input value to one of your switch paks. Use one of the push-button switches for the carry in input of your adder. Wire the outputs to the LED pak. To test your circuit, use the switches to count through the values 0xa5 through 0xb0 and check the resulting output. Use the push-button for each value to show that the carry in works correctly.