Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
rfPIC and UNI/O are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
logo, REAL ICE, rfLAB,
Select Mode, Total Endurance, TSHARC, WiperLock and
ZENA are trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
T empe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memo ry and
analog products. In addition, Microchip’s quality system for the desig n
and manufacture of development systems is ISO 9001:2000 certified.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
®
IDE on-line help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP4728 Evaluation Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
DOCUMENT LAYOUT
This document describes how to use the MCP47 28 Evalu a tio n Boa rd with PICkitTM
Serial Analyzer. The manual layout is as follows:
• Chapter 1. “Quick Start Instructions” – this chapter provide s an overview of the
MCP4728 Evaluation Board and instructions on how to use the MCP4728
Evaluation Board with the PICkit
• Appendix A. “Schematic and Layouts” – shows the schematic and layout
diagrams for the MCP4728 Evaluation Board.
• Appendix B. “Bill Of Materials (BOM)” – lists the parts used to build the
MCP4728 Evaluation Board.
• Appendix C. “MCP4728 Read/Write Commands” – shows the read/write commands for the MCP4728 Evaluation Board.
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Code (Courier font):
Plain charactersSample code
Filenames and paths
Angle brackets: < >Variables<label>, <exp>
Square brackets [ ]Optional argumentsMPASMWIN [main.asm]
Curly brackets and pipe
character: { | }
Lowercase characters in
quotes
Ellipses...Used to imply (but not show) addi-
0xnnnA hexadecimal number where n is a
Italic charactersA variable argument; it can be either a
Interface (Arial font):
Underlined, italic text
with right arrow
Bold charactersA window or dialog button to clickOK, Cancel
Characters in angle
brackets < >
Documents (Arial font):
Italic charactersReferenced booksMPLAB
Choice of mutually exclusive argu-
ments; An OR selection
Type of data
tional text that is not relevant to the
example
hexadecimal digit
type of data (in lowercase characters)
or a specific example (in uppercase
characters).
A menu selection from the menu barFile > Save
A key on the keyboard<Tab>, <Ctrl-C>
#define START
c:\autoexec.bat
errorlevel {0|1}
“filename”
list
[“list_option...,
“list_option”]
0xFFFF, 0x007A
char isascii (char,
ch);
®
IDE User’s Guide
RECOMMENDED READING
This user's guide describes how to use MCP4728 Evaluation Board. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
PICkit™ Serial Analyzer User’s Guide, DS51647
Consult this document for instructions on how to use the PICkit Serial Analyzer
hardware and software.
MCP4728 Data Sheet, “12-Bit, Quad Digital-to-Analog Converter with EEPROM
Memory” DS22187
This data sheet provides detailed information regarding for the MCP4728
Digital-to-Analog Converter.
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser , the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listing
• Business of Microchip – Product Selector Guide, latest Microchip press
releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Lo cal sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
The following sections provide an overview of the MCP4728 Evaluation Board and
instructions on how to program the DAC register and the EEPROM of the MCP4728
using the PICkit
• Description of the MCP4728 Evaluation Board
• How to use the MCP4728 Evaluation Board with the PICkit Serial Analyzer
1.2DESCRIPTION OF THE MCP4728 EVALUATION BOARD
The purpose of the MCP4728 Evaluation Board is to provide an easy way o f evaluating
the MCP4728’s performance and functionality with a minimum of work.
The MCP4728 Evaluation Board contains a MCP4728 (which is a 4-channel, 12-bit
Digital-to-Analog Converter), an interface conn ector for the PICkit Serial Analyzer, and
2
I
C test point terminals.The user can evaluate this board by using the PICkit Serial
Analyzer or by providing the I
terminals.
Using the MCP4728 Evaluation Board, the user can evaluate the functionality of the
MCP4728 device, such as: (a) Writing and reading the DAC registers and EEPROM of
each channel, (b) Selecting the reference voltage, (c) Measuring the DAC output
voltage, (d) Checking the LDAC
The MCP4728 Evaluation Board is designed to work friendly with the PICkit Serial
Analyzer (DV164122). The PICkit Serial Analyzer (P/N: DV164122) is used for writing
and reading the DAC configuration and register data. The PICkit Serial Analyzer
consists of hardware and PC GUI. It is highly recommended that the users order this
MCP4728 Evaluation Board and the PICkit Serial Analyze r at same tim e.
• The MCP4728 supports sta ndard mode (100kHz), fast mode (400 kHz), and high
speed mode (3.4 MHz) of the I
has 5 kΩ for the I
needs to evaluate the device with high speed mode (3.4 MHz), please replace the
R1 and R2 with lower values (less than 1 kΩ).
TM
Serial Analyzer. The following sections cover the topics:
2
C serial communication signals through the I2C test
pin feature, etc.
2
2
C pull-up resistors and supports up to the fast mode. If the user
C serial communications. This evaluation boar d
Note:The MCP4728 Evaluation Board can be used without the PICkit Serial
Analyzer as long as the V
connector. This board does not include MCU.
The MCP4728 Evaluation Board has test points for SDL, SDA, and DAC outputs. By
connecting an oscilloscope to these I
communications through the I
V
terminals) using a multimeter. Refer to Appe ndix A. “Schematic and Layouts”.
7. Select the VDD voltage of the MCP4728 Evaluation Board and click the Next
button.
Case 1: When you use VDD from the PICkit Serial Analyzer:
If you choose PICkit Serial will power your device and 5 V olt s as shown below,
the MCP4728 Evaluation Board is powered by the 5V DC from the PICkit Serial
Analyzer through the JP1 jumper. In this case, make sure that the JP1 jumper on
the MCP4728 Evaluation Board is connected.
Case 2: When you use your own VDD:
You can also provide your own VDD voltage by applying a VDD voltage at VD1
test point. In this case, make sure that the JP1 jumper is disconnected.
FIGURE 1-7:Step 4 - Voltage Source Selection Window.