Mcp3912 Adc Evaluation Board For 16-Bit Mcus User'S Guide: 2014 Microchip Technology Inc. Ds50002308A
Mcp3912 Adc Evaluation Board For 16-Bit Mcus User'S Guide: 2014 Microchip Technology Inc. Ds50002308A
• 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.
QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
CERTIFIED BY DNV 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
== ISO/TS 16949 == are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
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.
VP Development Tools
Table of Contents
Preface ........................................................................................................................... 5
Introduction............................................................................................................ 5
Document Layout .................................................................................................. 5
Conventions Used in this Guide ............................................................................ 6
Recommended Reading........................................................................................ 7
The Microchip Web Site ........................................................................................ 7
Customer Support ................................................................................................. 7
Document Revision History ................................................................................... 7
Chapter 1. Product Overview
1.1 Overview ........................................................................................................ 8
1.2 What the MCP3912 ADC Evaluation Board for 16-Bit MCUs Contains ......... 9
Chapter 2. Hardware Description
2.1 PIM Module/MCP3912 Connection and Peripheral Usage Overview .......... 10
2.2 Analog Input Structure .................................................................................. 11
2.3 Universal Serial Bus (USB) .......................................................................... 12
Chapter 3. Firmware
3.1 PIC24FJ256GA110 Firmware Description ................................................... 13
3.2 Data Acquisition ........................................................................................... 13
3.3 UART Communication Protocol ................................................................... 14
Appendix A. Schematics and Layouts
A.1 Introduction .................................................................................................. 15
A.2 Board – Power Schematic ........................................................................... 16
A.3 Board – ADC Schematic .............................................................................. 17
A.4 Board – Microcontroller (MCU) Schematic .................................................. 18
A.5 Board – PIM Module Schematic ................................................................. 19
A.6 Board – Top Silk .......................................................................................... 20
A.7 Board – Top Copper and Silk ....................................................................... 20
A.8 Board – Top Copper .................................................................................... 21
A.9 Board – Internal Plane 1 and Assembly Top ............................................... 22
A.10 Board – Internal Plane 2 and Assembly Top ............................................. 22
A.11 Board – Bottom Copper ............................................................................. 23
A.12 Board – Bottom Copper and SILK ............................................................. 23
A.13 Board – Bottom Silk ................................................................................... 24
Appendix B. Bill of Materials (BOM)
Worldwide Sales and Service .................................................................................... 28
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
“DSXXXXXXXXA”, where “XXXXXXXX” 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® IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
MCP3912 ADC Evaluation Board for 16-Bit MCUs. Items discussed in this chapter
include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the MCP3912 ADC Evaluation Board for 16-Bit
MCUs as a development tool to emulate and debug firmware on a target board. The
manual layout is as follows:
• Chapter 1. “Product Overview” – Provides important information about the
MCP3912 ADC Evaluation Board for 16-Bit MCUs hardware.
• Chapter 2. “Hardware Description” – Provides information about the evaluation
board software.
• Chapter 3. “Firmware” – Describes the MCP3912 ADC Evaluation Board for
16-Bit MCUs firmware.
• Appendix A. “Schematics and Layouts”– Shows the schematic and board
layouts for the MCP3912 ADC Evaluation Board for 16-Bit MCUs.
• Appendix B. “Bill of Materials (BOM)” – Lists the parts used to build the
MCP3912 ADC Evaluation Board for 16-Bit MCUs.
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB® IDE User’s Guide
Emphasized text ...is the only compiler...
Initial caps A window the Output window
A dialog the Settings dialog
A menu selection select Enable Programmer
Quotes A field name in a window or “Save project before build”
dialog
Underlined, italic text with A menu path File>Save
right angle bracket
Bold characters A dialog button Click OK
A tab Click the Power tab
N‘Rnnnn A number in verilog format, 4‘b0010, 2‘hF1
where N is the total number of
digits, R is the radix and n is a
digit.
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Filenames autoexec.bat
File paths c:\mcc18\h
Keywords _asm, _endasm, static
Command-line options -Opa+, -Opa-
Bit values 0, 1
Constants 0xFF, ‘A’
Italic Courier New A variable argument file.o, where file can be
any valid filename
Square brackets [ ] Optional arguments mcc18 [options] file
[options]
Curly brackets and pipe Choice of mutually exclusive errorlevel {0|1}
character: { | } arguments; an OR selection
Ellipses... Replaces repeated text var_name [, var_name...]
Represents code supplied by void main (void)
user { ...
}
RECOMMENDED READING
This user’s guide describes how to use MCP3912 ADC Evaluation Board for 16-Bit
MCUs. Another useful document is listed below. The following Microchip document is
available and recommended as a supplemental reference resource:
• MCP3912 Data Sheet – “3V Four-Channel Analog Front End” (DS20005348A)
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
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.
1.2 WHAT THE MCP3912 ADC EVALUATION BOARD FOR 16-BIT MCUS
CONTAINS
This MCP3912 ADC Evaluation Board for 16-Bit MCUs kit includes:
• MCP3912 ADC Evaluation Board for 16-Bit MCUs (Part number ADM00499)
• PIC24FJ256GA110 PIM
• USB Cable
• Important Information Sheet
RF4/U2RX
UART SERIAL TO PC COMMUNICATION
RF5/U2TX
OC1/RG6
Clock Generation/
Phase Correction
RESET
Digital Filter
RA5/ADC_RESET
Delta Sigma + CH0+
DR Multi-Level PGA
RA14/ADC_DR
SINC3
Modulator - CH0-
CS
RG9/ADC_CS
SCK SPI Serial
RG6/ADC_SCK Interface
Digital Filter
SDO
RG7/ADC_MISO
Delta Sigma + CH3+
SDI Multi-Level PGA
SINC3
CLKOUT XTAL
CLKIN XTAL
CLKIN PIM OC1
CLKOUT XTAL
CLKIN XTAL
CLKIN PIM OC1
The frequency of the OC1 output is based on the PR1 bit settings in the firmware.
USB
TX RG6/SCK1 SCK
RX RF5/U2TX
RG7/ADC_MISO SDO
RG8/ADC_MOSI SDI
RS-232 Driver RF4/U2RX
RS-232
RX
TX
Chapter 3. Firmware
3.1 PIC24FJ256GA110 FIRMWARE DESCRIPTION
3.1.1 MCU Initialization
The microcontroller used for the code example is the 16-bit XLP with 16 MIPS
PIC24FJ256GA110. The MCU has remappable pins and output compare with a
dedicated time base.
The MCU uses a 7.3278 MHz crystal for the clock and the internal PLL to increase the
frequency by four times. The uncommon crystal value was chosen to obtain the correct
baud rate, even for high baud rates. The remappable pins are configured to make the
PIM compatible with the Explorer 16 development board. The MCP3912 is linked with
the MCU through the SPI1 port. The ADC clock is given by OC1. The DR pin of the
MCP3912 is tied to external Interrupt 2.
Serial data transmission is carried out through the UART2 module. For transmission,
OC2 interrupt is used; for receiving, the _U1RX Interrupt is used. The UART communi-
cation speed is 921.6 kbaud. OC2 is used for the serial transmission to create short
bursts of data that can be processed by the MCP2200. Sending too many characters,
with no time between them at the current baud rate, will cause the MCP2200 to lose data.
Note: The PIC24FJ256GA110 must be Rev. A5 or newer in order for this code
example to work.
32:(5
5V_USB 5V_USB 5V 8
MCP1825S-3.3V
5 1 3
VIN VOUT 3.3D
10k 73 73 3.3D
S
0603 GND Via_2.5x1.5 Via_2.5x1.5
5 0603 G 4 & & &
USB_EN
2
1k SI1307EDL 10uF & 0.1uF 10uF
16V 0.1uF 0603 1206
86%6WDQGE\3URWHFWLRQ 5
D
& 1206 0603
1k
0.1uF GND GND
0603 GND GND GND
0603
U3 GND GND
MCP1754S-3.3V
1
1 3
VIN VOUT 3.3A
/ /'
32:(5 GND GREEN
9,1
2
9V & & &
- 8 - 0.1uF 10uF 0.1uF
2
' LM1117-5V 986%
0603 1206 0603
3 1
4 2
1 3 2
VIN VOUT 9,1
3 GND GND GND GND
2 MRA4005 GND 2x2 GND
&
3 1
3$'
$'&
-
1 2 3.3D
5 0603
1k 1%
5 5 &
1k 1% -
- 0603 1k 1% 0.1uF
&+ GNDA 0603 0603
5 3 1
1 2 3
6 4 2
3.3A 3.3D
*1' GNDA GNDA GNDA
&+ GNDA
5 &
1x3 5
1k 1% 2x3 1k 1% 0.1uF
0603 5 5
5 0603 0603 0603
10R 10R
1k 1%
0603 0603
& 0603 & 0603 -
5 0603 0.1uF 0.1uF
RA5/3912_RESET
15 13 11 9 7 5 3 1
16 14 12 10 8 6 4 2
1k 1%
5 5 & RG8/3912_SDI
1k 1% - GNDA GND
- 0603 1k 1% 0.1uF RG7/3912_SDO
&+ GNDA 0603 0603 RG6/3912_SCK
5 3 1
1 2 3
6 4 2
6 4 2
2 4 6
1 3 5
1k 1% - & 10 (&&3
10R
- 0603 1k 1% 0.1uF NC ;7$/
;
0.1uF
&+ GNDA 0603 0603
5 3 1
1 2 3
6 4 2
;7$/
;
0603
*1' GNDA GNDA GNDA
GNDA GNDA 2x3 & 0603
&+ GNDA GND
5 & SF
1x3 5
1k 1% 2x3 1k 1% 0.1uF
0603 ;
5 0603 0603 0603
5 10MHz
1k 1%
1M 1%
0603
& 0603
GND
SF
DS50002308A-page 17
A.4 BOARD – MICROCONTROLLER (MCU) SCHEMATIC
2014 Microchip Technology Inc.
/&'
NHD-C0216CIZ-FSW-FBW-3V3
3.3D
RA10/PMPA6
5
RA9/PMPA7
0603
A 5V
1k
K
VOUT
VDD
SDA
5
VSS
SCL
RST
C1+
GND
C1-
4.7k
0603
1 6: 4
GND
8
7
6
4
3
2
1
1
0.1uF 9 10 9 10
RA2/SCL2 GND GND GND GND
5 0603 /' /' 0603 11 12 11 12
3.3D RA3/SDA2 RB0/AN0 RB1/AN1 RB0/AN0 RB1/AN1
10R GREEN RED GND 13 14 13 14
RB3/AN3 RB4/AN4 RB3/AN3 RB4/AN4
GND 5 0603 15 16 15 16
3.3D GND GND GND GND
1k 17 18 17 18
RE9 RE8/INT1 RE9 RE8/INT1
5 0603 3.3D 19 20 19 20
3.3D RD14/U1CTS RD15/U1RTS RD14/U1CTS RD15/U1RTS
2
1k 21 22 21 22
3.3D 3.3D 3.3D 3.3D
23 24 23 24
5V 5V 5V 5V
GND GND 25 26 25 26
5 9V 9V 9V 9V
27 28 27 28
4.7k RG0 RF0 RG0 RF0
29 30 29 30
0603 RG1 RF1 RG1 RF1
GND 1 6: 4
GND
5 0603 33 34 33 34
RD11 RG9/3912_CS RF4/PMPA9/U2RX RG9/3912_CS RF4/PMPA9/U2RX
2 3 1k 35 36 35 36
GND RG6/3912_SCK RF5/PMPA8/U2TX RG6/3912_SCK RF5/PMPA8/U2TX
37 38 37 38
SPST RG7/3912_SDO RA2/SCL2 RG7/3912_SDO RA2/SCL2
& 39 40 39 40
RG8/3912_SDI RA3/SDA2 RG8/3912_SDI RA3/SDA2
8 0.1uF & 41 42 41 42
GND GND GND GND
1 20 0603 0.1uF 43 44 43 44
RC13 EN FORCE_OFF 3.3D RB8/AN8 RB9/AN9 RB8/AN8 RB9/AN9
2 19 0603 45 46 45 46
C1+ VCC 3.3D RA9/PMPA7 RA10/PMPA6 RA9/PMPA7 RA10/PMPA6
& 0603 3 18 GND 47 48 47 48
GND V+ GND GND GND GND GND GND
0.1uF & 0603 4 17 49 50 49 50
C1- T1OUT RA15/INT4 RA14/3912_DR RA15/INT4 RA14/3912_DR
0.1uF 5 16 51 52 51 52
C2+ R1IN RF12/U2CTS RF13/U2RTS RF12/U2CTS RF13/U2RTS
& 0603 6 15 GND 3.3D 53 54 53 54
C2- R1OUT RX 3.3D 3.3D 3.3D 3.3D
0.1uF 7 14 55 56 55 56
V- FORCE_ON GND 5V 5V 5V 5V
8 13 57 58 57 58
T2OUT T1N TX 9V 9V 9V 9V
9 12 1 - 59 60 59 60
R2IN T2IN RD15/U1RTS 5 RG0 RG0
& 10 11 6 9 61 62 61 62
RD14/U1CTS R2OUT
R2OUTI
TIINVALID
NVALID RC14 4.7k RG1 RG1
0.1uF 2
0603
0603 SN75C3223PWR 7 1 6: 4 65 66 65 66
GND RG15 RG13 RG15 RG13
3 5 0603 67 68 67 68
RD12 RG12 RG14 RG12 RG14
GND 8 2 3 1k 69 70 69 70
GND RA0/TMS RA1/TCK RA0/TMS RA1/TCK
4 71 72 71 72
SPST RA4/TDI RA5/3912_RESET RA4/TDI RA5/3912_RESET
5 0603 9 73 74 73 74
U8-RX RX RA6 RA7 RA6 RA7
1k 5 & 75 76 75 76
GND RB6/AN6/PGC RB7/AN7/PGD RB6/AN6/PGC RB7/AN7/PGD
12MHz 9 12
GP3 RX
10 11 GND GND MEC1-160-02-L-D-A MEC1-160-02-X-D
TX RTS
- Edge Card
RF4/PMPA9/U2RX
MCP2200 8
5 5
1 8 1
1k 1k B2 B1 5V_USB VBUS
S
GND 2 7
GND GND VCCB 5V_USB
DS50002308A-page 18
3 6 USB_N 2
0603 0603 /' 3.3D VCCA OE 3.3D D-
U8-RX
4 5
U9-RX A2 A1 RF5/PMPA8/U2TX
USB_P 3
D+
3
TXS0102
4
U9-RX ID
RED, GREEN
*5((1
5('
5
1 2 3
GND GND
4
0&3 -
0
5V_USB 1x3 5
A.5 BOARD – PIM MODULE SCHEMATIC
2014 Microchip Technology Inc.
RG3/SDA1
RB7/AN7/PGD
RG2/SCL1
5 5
5 0603 & &
RB6/AN6/PGC 5 1k 1k
1M 1% 0.1uF 10uF
10R 0603 0603
0603 1206
OSC2 0603
1x6 5 0603
3.3D OSC1
1M 1%
GND 3.3D GND GND GND
U10 3,002'8/(
PIC32MX775
13 17
MCLR MCLR TMS/RA0 RA0/TMS
38
TCK/RA1 RA1/TCK
54 58
RF7 VBUS SCL2/RA2 RA2/SCL2
59
SDA2/RA3 RA3/SDA2
55 60
RF6/INT0/SCK1 VUSB TDI/RA4 RA4/TDI
61
TDO/RA5 RA5/3912_RESET
85 91
VDDCORE VCAP/VDDCORE TRCLK/RA6 RA6
92
TRD3/RA7 RA7
2 28
3.3D VDD VREF-/CVREF-/AERXD2/PMA7/RA9 RA9/PMPA7
16 29
3.3D VDD VREF+/CVREF+/AERXD3/PMA6/RA10 RA10/PMPA6 RD5 38/6(2873876 RD4
37 66
3.3D VDD AETXCLK/SCL1/INT3/RA14 RA14/3912_DR
46 67
3.3D VDD AETXEN/SDA1/INT4/RA15 RA15/INT4 5 5 5 5
62
3.3D VDD 1k 1k 1k 1k
86 25
ENVREG VDD PGED1/AN0/CN2/RB0 RB0/AN0 0603 0603 0603 0603
1
30 24
3.3D AVDD PGEC1/AN1/CN3/RB1 RB1/AN1 5($&7,9(3:5 $&7,9(3:5
23 /' /'
AN2/C2IN-/CN4/RB2 RB2/SS1/AN2
15 22 RED RED
GND VSS AN3/C2IN+/CN5/RB3 RB3/AN3 8 8
36 21 - 4 1 - 4 1
GND VSS AN4/C1IN-/CN6/RB4 RB4/AN4
45 20
GND VSS AN5/C1IN+/VBUSON/CN7/RB5 RB5/AN5
1 2
1 2
65 26 3 2 3 2
GND VSS PGEC2/AN6/OCFA/RB6 RB6/AN6/PGC
2
75 27
GND VSS PGED2/AN7/RB7 RB7/AN7/PGD HCPL-181 HCPL-181
31 32 1x2 1x2
GND AVSS AN8/C1OUT/RB8 RB8/AN8
33 GND GND GND GND
AN9/C2OUT/RB9 RB9/AN9
34
AN10/CVREFOUT/PMA13/RB10 RB11/PMPA12
35
AN11/ERXERR/AETXERR/PMA12/RB11 RB10/PMPA13
41
AN12/ERXD0/AECRS/PMA11/RB12 RB12/PMPA11
42
AN13/ERXD1/AECOL/PMA10/RB13 RB13/PMPA10
89
RG1 C2TX/ETXERR/PMD9/RG1
57 93
RG2/SCL1 D+/RG2 PMD0/RE0 RE0/PMPD0
56 94 3.3D 3.3D 3.3D 3.3D 3.3D 3.3D
RG3/SDA1 D-/RG3 PMD1/RE1 RE1/PMPD1
10 98
RG6/3912_SCK ECOL/SCK2/U6TX/U3RTS/PMA5/CN8/RG6 PMD2/RE2 RE2/PMPD2
11 99
RG7/3912_SDO ECRS/SDA4/SDI2/U3RX/PMA4/CN9/RG7 PMD3/RE3 RE3/PMPD3
12 100
RG8/3912_SDI ERXDV/AERXDV/ECRSDV/AECRSDV/SCL4/SDO2/U3TX/PMA3/CN10/RG8 PMD4/RE4 RE4/PMPD4
14 3 & & & & & &
RG9/3912_CS ERXCLK/AERXCLK/EREFCLK/AEREFCLK/SS2/U6RX/U3CTS/PMA2/CN11/RG9 PMD5/RE5 RE5/PMPD5
96 4 0.1uF 0.1uF 0.1uF 0.1uF 0.1uF 0.1uF
RG12 TRD1/RG12 PMD6/RE6 RE6/PMPD6
97 5 0603 0603 0603 0603 0603 0603
RG13 TRD0/RG13 PMD7/RE7 RE7/PMPD7
95 18
RG14 TRD2/RG14 AERXD0/INT1/RE8 RE8/INT1
1 19 GND GND GND GND GND GND
RG15 AERXERR/RG15 AERXD1/INT2/RE9 RE9
MCP3912 ADC Evaluation Board for 16-Bit MCUs User’s Guide