Microchip Technology MCP4728 User’s Guide

MCP4728
Evaluation Board
User’s Guide
© 2009 Microchip Technology Inc. DS51837A
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
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
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.
Analog-for-the-Digital Age, Application Maestro, CodeGuard, dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN, ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mTouch, nanoWatt XLP, Omniscient Code Generation, PICC, PICC-18, PICkit, PICDEM, PICDEM.net, PICtail, PIC
32
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.
© 2009, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS51837A-page ii © 2009 Microchip Technology Inc.
MCP4728 EVALUATION BOARD
USER ’S GUIDE
Table of Contents
Preface ...........................................................................................................................1
Introduction............................................................................................................1
Document Layout..................................................................................................1
Conventions Used in this Guide............................................................................2
Recommended Reading........................................................................................2
The Microchip Web Site........................................................................................ 3
Customer Support.................................................................................................3
Document Revision History...................................................................................3
Chapter 1. Quick Start Instructions
1.1 Introduction .....................................................................................................5
1.2 Description of the MCP4728 Evaluation Board ..............................................5
1.3 Getting Started with PICkit Serial Analyzer ....................................................7
Appendix A. Schematic and Layouts
A.1 Introduction ..................................................................................................35
A.2 Board – Schematic .......................................................................................36
A.3 Board – Top Silk, Top Pads and Top Copper .............................................. 37
A.4 Board – Top Copper and Pads .................................................................... 38
A.5 Board – Top Pads and Silk .......................................................................... 39
A.6 Board – Bottom Copper Layer ..................................................................... 40
Appendix B. Bill Of Materials (BOM) Appendix C. MCP4728 Read/Write Commands
C.1 Introduction ..................................................................................................43
Worldwide Sales and Service ....................................................................................46
© 2009 Microchip Technology Inc. DS51837A-page iii
MCP4728 Evaluation Board User’s Guide
NOTES:
DS51837A-page iv © 2009 Microchip Technology Inc.
MCP4728 EVALUATION BOARD
USER ’S GUIDE

Preface

NOTICE TO CUSTOMERS
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 com­mands for the MCP4728 Evaluation Board.
TM
Serial Analyzer.
© 2009 Microchip Technology Inc. DS51837A-page 1
MCP4728 Evaluation Board User’s Guide

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Code (Courier font):
Plain characters Sample code
Filenames and paths Angle brackets: < > Variables <label>, <exp> Square brackets [ ] Optional arguments MPASMWIN [main.asm] Curly brackets and pipe
character: { | } Lowercase characters in
quotes Ellipses... Used to imply (but not show) addi-
0xnnn A hexadecimal number where n is a
Italic characters A variable argument; it can be either a
Interface (Arial font):
Underlined, italic text with right arrow
Bold characters A window or dialog button to click OK, Cancel Characters in angle
brackets < >
Documents (Arial font):
Italic characters Referenced books MPLAB
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 bar File > 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.
DS51837A-page 2 © 2009 Microchip Technology Inc.

THE MICROCHIP WEB SITE

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
Preface

DOCUMENT REVISION HISTORY

Revision A (June 2009)
• Initial Release of this Document.
© 2009 Microchip Technology Inc. DS51837A-page 3
MCP4728 Evaluation Board User’s Guide
NOTES:
DS51837A-page 4 © 2009 Microchip Technology Inc.
MCP4728 EVALUATION BOARD
USER ’S GUIDE

Chapter 1. Quick Start Instructions

1.1 INTRODUCTION

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.2 DESCRIPTION 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”.
OUT
© 2009 Microchip Technology Inc. DS51837A-page 5
2C™
, SCL, and SDA are provided through the J1
DD
2
C test points, the user can examine the data
bus line and observe the resulting analog output (at
MCP4728 Evaluation Board User’s Guide
FIGURE 1-1: Front View of the MCP4728 Evaluation Board.
TABLE 1-1: TEST TERMINALS ON THE MCP4728 EVALUATION BOARD
Test
Terminals
A DAC channel A output
V
OUT
B DAC channel B output
V
OUT
V
C DAC channel C output
OUT
D DAC channel D output
V
OUT
SCL This terminal is connected to the I
SDA This terminal is connected to the I
RDY/BUSY
LDAC
This terminal is used to monitor the RDY/BUSY pin of the MCP4728 device.
Access terminal to the LDAC pin of the MCP4728.
S1 Switch to change the logic input to the LDAC
JP1 Jumper to select the V
connected, the V
DD
from the J1 connector is connected. If disconnected, it
DD
selects the V
JP2 Jumper to connect the LDAC pin to VSS. (You can disconnect this jumper
VDD1 V
If the V
is provided from J1 connector (PICkit Serial Analyzer), then this
DD
DD
test point monitors the V
GND Connected to common ground plane of the PC Board.
Note 1: This terminal is used to monitor the SCL or SDA signals. You can also provide the
SCL or SDA signals through these pins.
Description
2
C SCL pin of the MCP4728.
(See Note 1).
2
C SDA pin of the MCP4728.
(See Note 1).
input pin. It provides logic “low”
when pressed.
source to the MCP4728 Evaluation Board. If it is
source from VDD1 terminal.
DD
when S1 is used.)
monitoring or connection pin.
voltage. You can also connect a new VDD to this
DD
test terminal.
DS51837A-page 6 © 2009 Microchip Technology Inc.
Quick Start Instructions

1.3 GETTING STARTED WITH PICKIT SERIAL ANALYZER

Figure 1-1 shows the MCP4728 Evaluation Board, and Figure 1-2 shows the connection of the MCP4728 Evaluation Board and PICkit Serial Analyzer.
The following steps describe how to use them together:
1. Connect the MCP4728 Evaluation Board’s 6-pin socket to the PICkit Serial
Analyzer as shown in Figure 1-2.
2. Connect the oscilloscope probes to the SCL and SDA test terminals (optional).
3. Connect a multimeter to one of the DAC’s output test terminal.
4. V
• I
• A2, A1, A0 Address Bits: Pre-programmed to‘000’.
5. Connecting V
6. Use the PICkit Serial Analyzer PC GUI to send I
Selection: Y ou can use the VDD from the PICkit Serial Analyzer or use your
DD
own external V (a) Connect JP1, if using V (b) Disconnect JP1 and apply V
2
C device code of MCP4728: ‘1100’
Analyzer will provide V
. The JP1 connector selects the VDD path.
DD
from PICkit Serial Analyzer,
DD
at VDD1 pin, if you are using an external VDD.
DD
: LED D1 turns on when VDD is applied. The PICkit Serial
DD
automatically, if it is connected to the PC. Make sure
DD
LED D1 turns on.
2
C write and read commands.
© 2009 Microchip Technology Inc. DS51837A-page 7
MCP4728 Evaluation Board User’s Guide
MCP4728 Evaluation Board
Personal
Computer
Connected between the
PICkit Serial Analyzer
and Personal Computer
DAC Output (Channel B)
PICkit Serial Analyzer
USB Cable
.
FIGURE 1-2: MCP4728 Evaluation Board with the PICkit Serial Analyzer.
DS51837A-page 8 © 2009 Microchip Technology Inc.
Quick Start Instructions
1.3.1 PICkit Serial Analyzer PC Software Setup for the MCP4728
Evaluation Board
The following steps describe how to set up and use the PICkit Serial Analyzer PC Graphic User Interface (GUI).
1. Install the PICkit Serial Analyzer software onto your personal computer (PC).
2. Connect the USB cable between the PICkit Serial Analyzer and the PC.
3. Run the PICkit Serial PC Software: It will open to the following GUI. Click the
Next button and follow the instructions.
FIGURE 1-3: PICkit Serial Analyzer Configuration Wizard Welcome Window.
4. Select the Communication Mode type: I
2
C Master, and click the Next button.
FIGURE 1-4: Step 1 - Communication Mode Selection.
© 2009 Microchip Technology Inc. DS51837A-page 9
MCP4728 Evaluation Board User’s Guide
5. Select 100 kHz or 400 kHz. Either one will be fine. Click the Next button.
FIGURE 1-5: Step 2 - I2C Communication Speed Selection.
Note: The MCP4728 device supports the I2C bus data rate up to 3.4 MHz, but the
current version of the PICkit Serial Analyzer supports the I
2
C bus data rate
up to 400 kHz only.
6. Select No on Enable Pull-ups and click the Next button.
Note: The MCP4728 Evaluation Board has its own pull-up resistors.
FIGURE 1-6: Step 3 - Device Pull-Ups Window.
DS51837A-page 10 © 2009 Microchip Technology Inc.
Quick Start Instructions
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.
© 2009 Microchip Technology Inc. DS51837A-page 11
Loading...
+ 35 hidden pages