Digital Design and Computer Architecture 2nd Edition Harris Solutions Manualpdf download
Digital Design and Computer Architecture 2nd Edition Harris Solutions Manualpdf download
https://testbankdeal.com/product/digital-design-and-computer-
architecture-2nd-edition-harris-solutions-manual/
https://testbankdeal.com/product/computer-systems-design-and-
architecture-2nd-edition-heuring-solutions-manual/
https://testbankdeal.com/product/computer-organization-and-
architecture-10th-edition-stallings-solutions-manual/
https://testbankdeal.com/product/computer-organization-and-
architecture-9th-edition-william-stallings-solutions-manual/
https://testbankdeal.com/product/physics-for-the-life-sciences-3rd-
edition-allmang-solutions-manual/
Fit and Well Core Concepts and Labs in Physical Fitness
and Wellness 12th Edition Fahey Test Bank
https://testbankdeal.com/product/fit-and-well-core-concepts-and-labs-
in-physical-fitness-and-wellness-12th-edition-fahey-test-bank/
https://testbankdeal.com/product/sell-canadian-2nd-edition-ingram-
test-bank/
https://testbankdeal.com/product/human-sexuality-4th-edition-hock-
test-bank/
https://testbankdeal.com/product/in-conflict-and-order-understanding-
society-14th-edition-eitzen-test-bank/
https://testbankdeal.com/product/feedback-control-systems-5th-edition-
phillips-solutions-manual/
Research Methods Concepts and Connections 2nd Edition
Passer Test Bank
https://testbankdeal.com/product/research-methods-concepts-and-
connections-2nd-edition-passer-test-bank/
Digital Design and Computer Architecture
Lab 6: C Programming
Introduction
In this lab, you will learn to program a PIC32 microcontroller in C by following a tutorial and
then writing several of your own programs.
The µMudd32 Board
In this lab and the next two, you will be using the µMudd32 board developed by Leo Altmann
and Christian Jolivet at HMC in 2010. The board contains a PIC32MX675F-512H
microcontroller, LEDs, switches, a port for programming the microcontroller, a row of male
header pins for connecting to a breadboard, and many other goodies that you’ll explore if you
take E155. <Note: for Digital Design and Computer Architecture textbook users, the lab can be
completed through simulation without the board.>
We will be using the PIC32-series microcontroller because PIC is one of the market-leading
microcontroller vendors, their development tools are fairly good, and because the PIC32-series
of processors is based on the MIPS architecture that we will study later.
Your particular PIC32 microcontroller has 512 KB of Flash memory for programs, 64 KB of
static RAM for data, dozens of digital input/output pins, 16 analog input pins, and oodles of
special peripherals such as counters, comparators, timers, serial ports, and Ethernet ports. It is
rated to operate up to 80 MHz, but runs at 40 MHz on this board. It costs about $7 in low
quantities; a version with less memory is available for $3.25 in quantities of 10,000.
You will use the In Circuit Debugger (ICD3) module, affectionately known as the hockey puck,
to program your PIC from a PC in the E85 lab. The ICD3 connects to the PC via a USB cable
and to the µMudd32 board via a short RJ-11 cable.
Be sure that the µMudd32 board is plugged into the ProtoBoard. The Vin and GND pins on the
µMudd32 board should be wired to 5V and Ground on the protoboard, respectively. The ICD3
should be connected to the PC and the board. The protoboard should be turned on. The ICD
power and status lights should be green and the active light should be blue. When you are all
done with the lab, turn off the protoboard.
You’ll be using the DIP switches and LEDs to interact with your program. The four DIP
switches in the lower left corner produce a 1 when the bottom side of the switch is down and a 0
when the top side is down. There are 10 LEDs on the right side of the board. The top one
indicates that power is ON. The next is always OFF. The remaining 8 display a byte of
information, with the least significant bit at the top and the most significant bit at the bottom.
Hints
If you are having trouble, check for the following common problems:
• Be sure your files are on your Charlie H drive and that there are no spaces or special
characters in the file name.
• Be sure you’ve included e85.c in each of your projects.
• Remember to follow each of the steps below to compile and test a new program:
o Check that the current program is halted
o Build All
o Program
o Run
• If printf() or scanf() isn’t working correctly, check that:
o The compiler settings should include -g -mappio-debug
o Your program must call initIO()
o View Application In/Out and set the format to text
o Even with this, part of the print statements may not display until the next print is
called – and sometimes they may not display at all. This is due to a bug in the
Microchip software and isn’t your fault.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.
testbankdeal.com