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
logo, 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, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, 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
Tempe, 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 memory and
analog products. In addition, Microchip’s quality system for the design
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 the general information that will be useful to know before using
the PIC18F87J72 Evaluation Board. Items discussed in this chapter include:
This document describes how to use the PIC18F87J72 Evaluation Board as a
development tool to emulate and debug firmware on a target board. The manual layout
is as follows:
• Chapter 1. “Product Overview” – Provides a brief overview of the PIC18F87J72
Evaluation Board, its features and uses.
• Chapter 2. “Hardware Description” – Provides a detailed description of the
This user's guide describes how to use PIC18F87J72 Evaluation Board. Other useful
documents are listed below. The following Microchip documents are available and
recommended as supplemental reference resources.
MPLAB
Refer to this document for more information on installation and implementation of the
MPLAB Integrated Development Environment (IDE) software.
®
IDE Simulator, Editor User's Guide (DS51025)
THE MICROCHIP WEB SITE
Microchip provides online support through 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 and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
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. Local 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
This chapter provides an overview of the PIC18F87J72 Evaluation Board. This board
is used as a development tool and as evaluation kit for PIC18F87J72 based
applications.
Topics discussed in this chapter include:
• Development Kit Contents
• Evaluation Board Functionality and Features
1.2PIC18F87J72 EVALUATION BOARD FUNCTIONALITY AND FEATURES
The PIC18F87J72 Evaluation Board provides a platform for developing and evaluating
applications which are based on the PIC18F87J72 device. These applications can
range from accurate measurement of low signals like an output signal of a load cell to
processing of information for metering and other metrology applications like energy
metering, heatmeter and so on.
The PIC18F87J72 microcontroller has an 8-bit core processor along with many
advanced peripherals like 12-bit SAR-based ADC, two 24-bit delta sigma ADCs and
Charge Time Measurement unit (CTMU) for temperature measurement or
implementation of touch keys.
PIC18F87J72 also has built-in Real Time Clock and Calendar (RTCC) with calibration
registers for time stamping the measured data, and a Liquid Crystal Display (LCD)
driver for a display up to 132 pixels.
The PIC18F87J72 Evaluation Board has the following features to develop and test user
applications:
• Easy connection for low and high voltage signals. Signals from variety of sensors
can be connected to this board.
• Touch keys to select different parameters of the of the 24-bit Delta Sigma ADC,
like Over Sampling Ratio (OSR), Resolution, and Channel gain.
• Direct LCD display, driven from the COM/SEG pins of PIC18F87J72
• Real Time Clock
• Temperature Measurement option with CTMU
The PIC18F87J72 Evaluation Board can be connected to the GUI, supplied along with
the board, to analyze the synchronous sampling, 24-bit, delta sigma ADCs. The ADCs
have 90 dB SINAD and -104dB THD (up to the 35th harmonic) for each channel,
enabling highly accurate energy metering and other low signal level designs. With less
than 10 mVRMS output noise and a programmable gain amplifier of up to 32 V/V, these
24-bit ADCs are capable of interfacing to a large variety of small signal sensors, as well
as voltage and current sensors, including shunts, Current Transformers (CT),
Rogowski coils, Hall Effect sensors and load cells.
This chapter describes the various sections of the hardware present on the evaluation
board. It also describes the different configurations possible for operating the
evaluation board, depending upon the input voltage and current specifications.
Figure 2-1 shows the overall layout of the PIC18F87J72 Evaluation Board where the
different hardware sections are indicated by numbers. Table 2-1 lists the descriptions
for each hardware component.
PIC18F87J72 EVALUATION BOARD
USER’S GUIDE
11
10
3
5
2
4
1
13
8
6
7
Legend:
9
1PIC18F87J72 microcontroller89V battery connector
2Seven segment LCD9MCP2200 – USB to Universal Asynchronous receiver/transmitter (UART)
3High voltage section with connectors10 Mini B USB receptacle
4RJ11 connector11 9V power supply jack
5Load Cell connector12 32.768 kHz crystal
6PICtail
7Touch sensitive keys
™
connector13 10 MHz crystal
serial converter
12
FIGURE 2-1:Layout of the PIC18F87J72 Evaluation Board.
1PIC18F87J72 microcontrollerMain controller for all functions on the board
2Seven segment LCDTo display time and other configuration features like OSR,
3High voltage section with connectorsFor connecting universal input voltage to the board (when not
4RJ11 connectorFor debugging and programming purpose
5Load Cell connectorOptional provision to connect an external load cell output to the
6PICtail™ connectorTo connect to other application-specific daughter cards
7Touch sensitive keysTouch sense switches for changing configuration of
89V battery connectorTo connect a 9V battery when powering the board through it
9MCP2200 – USB to UART serial converterTo communicate with the GUI
10Mini B USB receptacleTo connect the USB port of the computer to the evaluation
119V power supply jack9V power supply to the board
1232.768 kHz crystalClock to the internal Real-Time Clock and Calendar (RTCC)
1310 MHz crystalExternal Clock to the main controller
Section or ComponentFunctionality
Gain, Bit Width
using 9V supply or battery)
ADC input channels
Sigma-Delta ADC
board
2.1.1PIC18F87J72 Evaluation Board Jumper Settings
Table 2-2 shows the various jumpers available on the PIC18F87J72 Evaluation Board.
By connecting the jumper pins appropriately, different configurations can be achieved
on the board. Care must be taken regarding the voltage level before placing these
jumpers. Further sections in this document describe what precautions need to be
ensured while connecting these jumpers.
TABLE 2-2:JUMPERS ON THE EVALUATION BOARD
SI NODeviceDescription
1JP1Selection between high voltage and low voltage input on channel CH0
2JP2To ground Pin 1 of J4
3JP3Used for burden connections when CT output is connected to J4
4JP4To ground Pin 3 of J4
5JP5To ground Pin 1 of J5
6JP6Used for burden connections when CT output is connected to J5
7JP7To ground Pin 3 of J5
8JP8Selection between high voltage and low voltage input on channel CH1
The circuit diagrams in the schematics section of Appendix A. “Schematics and Layouts”, provide details on the resistor values used for dividing the network of the input
voltage. Table 2-3 provides a quick reference to resistor values in the high voltage section.
TABLE 2-3:RESISTORS FOR HIGH VOLTAGE MEASUREMENT
RegisterValue (KΩ)
R23 and R30 330
R24 and R31330
R25 and R32120
R33 and R35 1
R37 and R39 1
When measuring a high voltage signal on the input terminals of channels CH0 and
CH1, refer to Table 2-4 and Table 2-5. These tables provide the configuration of jumpers, along with the amplitude of the voltage available at the various points. The high
voltage can be in the universal range of input voltage ranging from85-265 Volts
(Vrms) at 50 Hz or 60 Hz.
rms
TABLE 2-4:JUMPER SETTINGS FOR HIGH VOLTAGE MEASUREMENT ON CH0
CH0 Jumper PositionADC
Voltage
(Vrms)
80Short 1-2OpenOpenShort0.102300.14468Internal Gain of 2 can be used
110Short 1-2OpenOpenShort0.140660.19893
220Short 1-2OpenOpenShort0.281330.39786
270Short 1-2OpenOpenShort0.345270.48828
280Short 1-2OpenOpenShort0.358060.50637Max Differential ADC I/P is 0.5V
JP1JP2JP3JP4
ADC I/P
(Vrms)
ADC I/P
(Vpeak)
for better resolution
Remark
TABLE 2-5:JUMPER SETTINGS FOR HIGH VOLTAGE MEASUREMENT ON CH1
CH1 Jumper PositionADC
Volta ge
(Vrms)
80Short 1-2OpenOpenShort0.102300.14468Internal Gain of 2 can be used
110Short 1-2OpenOpenShort0.140660.19893
220Short 1-2OpenOpenShort0.281330.39786
270Short 1-2OpenOpenShort0.345270.48828
280Short 1-2OpenOpenShort0.358060.50637Max Differential ADC I/P is 0.5V
Note 1:The precautions given need to be strictly adhered to, in order to avoid any damage to the evaluation
2:Input high voltage AC signal can be applied between pins 1 and 2 of the connector J4 or J5.
3:The resistors R26 and R27 should not be populated when pins 1 and 2 of J4 are connected to a high
4:The resistors R28 and R29 should not be populated when pins 1 and 2 of J5 are connected to a high
5:The resistors R26, R27, R28 and R29 can be used only when CT outputs are connected to the
JP8JP5JP6JP7
board and prevent electric shock hazard.
voltage.
voltage.
connectors J4 and J5. In this case, these resistors act as a burden resistor to the CT secondary winding.
The circuit diagrams in the schematics section of Appendix A. “Schematics and Layouts”, provide details on the resistor values used for the low voltage circuit. Table 2-6
provides a quick reference to resistor values in the low voltage section.
TABLE 2-6:RESISTORS FOR LOW VOLTAGE MEASUREMENT
RegisterValue (KΩ)
R34 and R36 1
R33 and R35 1
R37 and R391
R38 and R401
When measuring a low voltage signal on the input terminals of channels CH0 and CH1,
refer to Table 2-7 and Table 2-8. These tables provide the configuration of jumpers,
along with the amplitude of the voltage available at the various points. The low voltage
signal can be either an AC signal, a DC signal or a signal of any arbitrary wave shape.
TABLE 2-7:JUMPER SETTINGS FOR LOW VOLTAGE MEASUREMENT ON CH0
CH0 Jumper PositionADC
Voltage
(Vrms)
0.1Short 2-3OpenOpenShort0.050000.05000Internal Gain of 2 can be used for
0.2Short 2-3OpenOpenShort0.100000.10000
0.5Short 2-3OpenOpenShort0.250000.25000
1Short 2-3OpenOpenShort0.500000.50000
1.1Short 2-3OpenOpenShort0.550000.55000Max Differential ADC I/P is 0.5V
JP1JP2JP3JP4
ADC I/P
(Vrms)
ADC I/P
(Vpeak)
better resolution
Remark
TABLE 2-8:JUMPER SETTINGS FOR LOW VOLTAGE MEASUREMENT ON CH1
CH1 Jumper PositionADC
Volta ge
(Vrms)
0.1Short 2-3 OpenOpenShort0.050000.05000Internal Gain of 2 can be used for
0.2Short 2-3 OpenOpenShort0.100000.10000
0.5Short 2-3 OpenOpenShort0.250000.25000
1Short 2-3OpenOpenShort0.500000.50000
1.1Short 2-3 OpenOpenShort0.550000.55000Max Differential ADC I/P is 0.5V
Note 1:Input low voltage signal can be applied between pins 1 and 2 of the connector J4 or J5.
The circuit diagrams in the schematics section of Appendix A. “Schematics and
Layouts”, provide details on the resistor values used for the current measurement
circuit. Table 2-9 provides a quick reference to resistor values while measuring the
current signals. The output of Current Transformers (CTs) can be connected to the
input connector pins.
TABLE 2-9:RESISTORS FOR LOW VOLTAGE MEASUREMENT
RegisterValue (KΩ)
R26 and R28 0.063
R27 and R290.063
R34 and R361
R33 and R351
R37 and R391
R38 and R401
When measuring a current signal on the input terminals of channels CH0 and CH1,
refer to Table 2-10 and Table 2-11. These tables provide the configuration of jumpers,
along with the amplitude of the voltage available at the various points.
TABLE 2-10:JUMPER SETTINGS FOR CURRENT MEASUREMENT ON CH0
CH0 Jumper PositionADC
CT Primary
Current
(Irms-A)
0.1Short 2-3OpenShortOpen0.000630.00089Internal Gain of 2 can be used for
0.5Short 2-3OpenShortOpen0.003150.00445
1Short 2-3OpenShortOpen0.00630.00891
10Short 2-3OpenShortOpen0.0630.08910
20Short 2-3OpenShortOpen0.1260.17819
30Short 2-3OpenShortOpen0.1890.26729Max Differential ADC I/P is 0.5V
TABLE 2-11:JUMPER SETTINGS FOR CURRENT MEASUREMENT ON CH1
CH1 Jumper PositionADC
CT Primary
Current
(Irms-A)
0.1Short 2-3OpenShortOpen0.000630.00089
0.5Short 2-3OpenShortOpen0.003150.00445
1Short 2-3OpenShortOpen0.00630.00891
10Short 2-3OpenShortOpen0.0630.08910
20Short 2-3OpenShortOpen0.1260.17819
30Short 2-3OpenShortOpen0.1890.26729
Note 1:The precautions given need to be strictly adhered to, in order to avoid any damage to the evaluation board
and prevent electric shock hazard.
2:I/P CT Secondary is connected between pins 1 and 3 of J4 and J5.
3:The resistors R26, R27, R28 and R29 need to be populated. These resistors act as burden resistors for
CT secondary.
4:The calculations given in
resistance of 31.5(Ω).
JP1JP2JP3JP4
Ta bl e 2 - 10 and Table 2-11are true for a CT ratio of 1:2500 and a burden
ADC I/P
(Vrms)
ADC I/P
(Vpeak)
Internal Gain of 2 can be used for
better resolution