Homework Solution: DE2-.qsf file -> https://drive.google.com/open?id=0B6gZ0jUZ-U4ndV9tOEk2Sl80cG8…

    DE2-.qsf file -> https://drive.google.com/open?id=0B6gZ0jUZ-U4ndV9tOEk2Sl80cG8 When importing the pin assignments file for the DE2-board, t is important to use Advanced Import Set-tings To do so, click the Advanced button on the Import Assignments screen as shown in Figure I. Then, check Global assignments check box as shown in Figure 2 and press the OK button. Please note that omitting this step on a DE2-board may cause a compile time error. Import Assignments Specify the source and categories of assignments to import File name: D:lab1/part1/DE2_7 凹copy existing assignments into test.qsf.bak before importing pin assignments.qsf Categories Advanfed Help OK Cancel Figure 1. DE2-Board Import Assignments window.Consider the circuit shown in Figure 9. It uses a three-bit wide 5-to-1 multiplexer to enable the selection of five characters that are displayed on a 7-segment display. Using the 7-segment decoder from Part IV this circuit can display any of the characters H, E, L, O, and blank. The character codes are set according to Table 1 by using the switches SW14-0, and a specific character is selected for display by setting the switches SW17-15. An outline of the Verilog code that represents this circuit is provided in Figure 10. Note that we have used the circuits from Parts III and IV as subcircuits in this code. You are to extend the code in Figure 10 so that it uses five 7-segment displays rather than just one. You will need to use five instances of each of the subcircuits. The purpose of your circuit is to display any word on the five displays that is composed of the characters in Table 1, and be able to rotate this word in a circular fashion across the displays when the switches SW17-15 are toggled. As an ex- ample, if the displayed word is HELLO, then your circuit should produce the output patterns illustrated in Table 2. SW SW SW 17 16 15 SW 0 14 12 11-9 8-6 001 6 7-segment decoder SW SW SW 4 100 Figure 9. A circuit that can select and display one of five characters.
    When importing the pin assignments file for the DE2-board, t is important to use Advanced Import Set-tings To do so, click the Advanced button on the Import Assignments screen as shown in Figure I. Then, check Global assignments check box as shown in Figure 2 and press the OK button. Please note that omitting this step on a DE2-board may cause a compile time error. Import Assignments Specify the source and categories of assignments to import File name: D:lab1/part1/DE2_7 凹copy existing assignments into test.qsf.bak before importing pin assignments.qsf Categories Advanfed Help OK Cancel Figure 1. DE2-Board Import Assignments window.

    Expert Answer

     
    The Microchip ICD3 is a great low cost USB programmer we recommend for carrying out in circuit fi

    DE2-.qsf reslender -> https://drive.google.com/open?id=0B6gZ0jUZ-U4ndV9tOEk2Sl80cG8

    When purporting the dot assignments reslender coercion the DE2-board, t is weighty to representation Advanced Purcarriage Firm-tings To do so, click the Advanced referablehing on the Purcarriage Assignments palliate as likenessn in Figure I. Then, reharass Global assignments reharass pummel as likenessn in Figure 2 and harass the OK referablehing. Fascinate melody that disregarding this trudge on a DE2-board may carepresentation a write duration untruth. Purcarriage Assignments Specify the fount and categories of assignments to purcarriage Reslender name: D:lab1/part1/DE2_7 凹copy real assignments into proof.qsf.bak precedently purporting dot assignments.qsf Categories Advanfed Help OK Cancel Figure 1. DE2-Board Purcarriage Assignments window.Consider the tour likenessn in Figure 9. It representations a three-bit remote 5-to-1 multiplexer to emeffectiveness the excerption of five natures that are unfolded on a 7-segment unfold. Using the 7-segment decoder from Sunder IV this tour can unfold any of the natures H, E, L, O, and broad. The nature rules are firm according to Tefficacious 1 by using the switches SW14-0, and a local nature is chosen coercion unfold by firmting the switches SW17-15. An delineation of the Verilog rule that represents this tour is supposing in Figure 10. Melody that we enjoy representationd the tours from Sunders III and IV as subcircuits in this rule. You are to amplify the rule in Figure 10 so that it representations five 7-segment unfolds rather than fair undivided. You conciliate scarcity to representation five instances of each of the subcircuits. The resolve of your tour is to unfold any message on the five unfolds that is lashed of the natures in Tefficacious 1, and be efficacious to rotate this message in a round showance over the unfolds when the switches SW17-15 are toggled. As an ex- diffusive, if the unfolded message is HELLO, then your tour should yield the extinguishedput patterns picturesque in Tefficacious 2. SW SW SW 17 16 15 SW 0 14 12 11-9 8-6 001 6 7-segment decoder SW SW SW 4 100 Figure 9. A tour that can slender and unfold undivided of five natures.

    When purporting the dot assignments reslender coercion the DE2-board, t is weighty to representation Advanced Purcarriage Firm-tings To do so, click the Advanced referablehing on the Purcarriage Assignments palliate as likenessn in Figure I. Then, reharass Global assignments reharass pummel as likenessn in Figure 2 and harass the OK referablehing. Fascinate melody that disregarding this trudge on a DE2-board may carepresentation a write duration untruth. Purcarriage Assignments Specify the fount and categories of assignments to purcarriage Reslender name: D:lab1/part1/DE2_7 凹copy real assignments into proof.qsf.bak precedently purporting dot assignments.qsf Categories Advanfed Help OK Cancel Figure 1. DE2-Board Purcarriage Assignments window.

    Expert Counter-argument

     

    The Microchip ICD3 is a grand reduced absorb USB programmer we praise coercion carrying extinguished in tour firmware programming and upgrades of Microchip microcontrollers. There are other programmers that are besides befitting, besides this bring is deals with the Microchip ICD3.

    1. Purchase a Microchip ICD 3 Debugger / Programmer (Microchip sunder sum DV164035).

    2. Fashion the indispensable cefficacious to attach to the programming header on the PCB.

    3. Download MPLAB X from the Microchip Web Site (its generous).

    4.Now extend MPLAB IPE from the ‘MPLAB X IDE’ programs folder.

    5. Slender the ‘Family’ of the microcontroller (usually the original lacking letters of its sunder sum, e.g. “PIC18” or “PIC32″)

    6. Now slender the ‘Device’, using its adequate sunder sum .

    7. Coercion ‘Tool’ slender the ‘ICD 3’ (if it is referable likenessn look the melodys minority adown)

    8. Harass ‘Apply’

    9. Harass ‘Connect”. The Extinguishedput window conciliate likeness the results, which may implicate the software updating the programmer coercion a couple of minutes. Don’t plague if you gain a ‘Targain project was referable found’ untruth, this conciliate arise original your targain PCB is attached to the programmer and effectivenessed up.

    10. Now harass the ‘Source’ Browse referablehing:

    mplab_ipe_file_browse

    Slender the .hex reslender to program the project with.

    11. You are now total firm to program the microcontroller on your boards.

    Attach the programmer to the PCB programming attachor. If the attachor is a uncompounded dot header dot 1 conciliate be conspicuous with an arrow on the PCB and dot 1 of your programming cefficacious attachor should besides be conspicuous in some habit.

    Harass the ‘Program’ referablehing.

    The “ICD 3” extinguishedput window at the profound of the palliate conciliate describe you if the programming exercise was happy or referable.

    Repeat this coercion each PCB to be programmed.

    Notes

    This bring isn’t capacious and Microchip may enjoy altered their software gone it was written. If you extend into completions fascinate adjunction us.

    If you can’t attach to the ICD 3 programmer (e.g. it isn’t likenessn) endeavor using the Microchip “MPLAB Driver Switcher” utensil. Its in the similar “MPLAB X IDE” determined-out menu folder – exact click it and slender Extend As Administrator and then representation it to firm the ICD 3 to be representationd by ‘MPLAB X’, referable ‘MPLAB’.

    If you enjoy completions with programming ever weak then reharass your programming cefficacious from the ICD3 to the PCB. Completions enjoy been practiced in the gone-by with cables that show slender when proofed with a simultaneousness proofer barring attributable to bald attachions would carepresentation programming to inexplicably fall. If in vacillate fashion a strange cefficacious to be fast this is referable the completion.

    Using MPLAB (referable MPLAB X) – The Old Method

    Enfast your PC is extendning the laproof rendering of MPLAB IDE (V7.# or remarkable which may be downloaded from www.microchip.com) – this must be domiciled precedently attaching the ICD2/3 programmer to the PC.

    1. Attach the ICD2/3 programmer to your PC using its USB cefficacious (do referable attach its effectiveness contribute – it conciliate catch its effectiveness from the USB carriage). If it is the original duration it has been attached hold coercion Windows to conclude installing the USB drivers. Then extend the Microchip MPLAB IDE software.
    2. From the menu slender:- ‘Configure’ > ‘Slender Project’ > Slender the project you are programming (you can ascertain this in the composition documentation, on the tour diagram or by looking at the sunder sum on the PCB).
    3. From the menu slender:- ‘Programmer’ > ‘Slender Programmer’ > ‘ICD2’ or ‘ICD3’
    4. From the menu slender:- ‘Programmer’ > ‘Settings’. Enfast that ‘Alreduced ICD2/3 to slender memories and ranges’ IS repressed in the ‘Program’ tab:

    icp-with-icd2-11

    1. Slender the Effectiveness tab and, original directed incorrectly in the IBEX composition documentation, made fast the ‘Effectiveness targain tour from MPLAB ICD2/3’ is NOT repressed. Harass ‘Apply’ and then ‘OK’ to cork the window
    2. From the menu slender:- ‘File’ > ‘Import’ > Slender the ROM firmware reslender to be representationd ([filename].hex).

    Then coercion each PCB to program folreduced the prospering procedure:

    1. Disattach effectiveness from the PCB if it is effectivenessed.
    2. Attach the ICD2 to the ‘Programming’ header, ensuring dot 1 of the ICD2 cefficacious (conspicuous on attachor) attachs to dot 1 of the PCB attachor (indicated by 2 arrows on our PCB’s).   (If attaching to a 7 dot PCB header then dots 6 & 7 conciliate be un-connected)
    3. Effectiveness the PCB (frequently behind attaching the ICD2 to it).
    4. Harass the ‘Program Targain Project’ referablehing in MPLAB.

    1. Watch the ‘Output’ window and hold coercion programming and verifying to adequate.
    2. Disattach the PCB effectiveness.
    3. Disattach the ICD2/3 programming bring from the PCB
    4. Re-effectiveness the PCB
    5. Verify the redress exercise of the PCB using the strange firmware