Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•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 unless otherwise stated.
Microchip received ISO/TS-16949:2009 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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
QUALITY MANAGEMENT S
Trademarks
The Microchip name and logo, the Microchip logo, AnyRate, AVR,
AVR logo, AVR Freaks, BitCloud, chipKIT, chipKIT logo,
CryptoMemory, CryptoRF, dsPIC, FlashFlex, flexPWR, Heldo,
JukeBlox, KeeLoq, Kleer, LANCheck, LINK MD, maXStylus,
maXTouch, MediaLB, megaAVR, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, picoPower, PICSTART, PIC32 logo, Prochip
Designer, QTouch, SAM-BA, SpyNIC, SST, SST Logo,
SuperFlash, tinyAVR, UNI/O, and XMEGA are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
and other countries.
ClockWorks, The Embedded Control Solutions Company,
EtherSynch, Hyper Speed Control, HyperLight Load, IntelliMOS,
mTouch, Precision Edge, and Quiet-Wire are registered
trademarks of Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any
Capacitor, AnyIn, AnyOut, BodyCom, CodeGuard,
CryptoAuthentication, CryptoAutomotive, CryptoCompanion,
CryptoController, dsPICDEM, dsPICDEM.net, Dynamic Average
Matching, DAM, ECAN, EtherGREEN, In-Circuit Serial
Programming, ICSP, INICnet, Inter-Chip Connectivity,
JitterBlocker, KleerNet, KleerNet logo, memBrain, Mindi, MiWi,
motorBench, MPASM, MPF, MPLAB Certified logo, MPLIB,
MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation,
PICDEM, PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon,
QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial Quad I/O,
SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, Total
Endurance, TSHARC, USBCheck, VariSense, ViewSpan,
WiperLock, Wireless DNA, 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.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology
Germany II GmbH & Co. KG, a subsidiary of Microchip
Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
dsPIC33CK Curiosity Development Board User’s Guide
NOTES:
DS50002859A-page 4 2019 Microchip Technology Inc.
dsPIC33CK CURIOSITY
DEVELOPMENT 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 website
(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
Select the Help menu, and then Topics to open a list of available online help files.
®
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
dsPIC33CK Curiosity Development Board. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Website
• Product Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This user’s guide provides an overview of the dsPIC33CK Curiosity Development
Board. The document is organized as follows:
• Chapter 1. “Overview” – This chapter introduces the dsPIC33CK Curiosity
Development Board and provides a brief overview of its various features.
• Chapter 2. “Hardware” – This chapter describes how to program/debug the
board using the on-board programmer and the main circuit elements of the board.
• Appendix A. “Board Layout and Schematics” – This appendix provides
schematic diagrams for the dsPIC33CK Curiosity Development Board.
• Appendix B. “Bill of Materials (BOM)” – This appendix provides the component
Choice of mutually exclusive
arguments; an OR selection
Represents code supplied by
user
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
DS50002859A-page 6 2019 Microchip Technology Inc.
RECOMMENDED READING
This user’s guide describes how to use the dsPIC33CK Curiosity Development Board.
The device-specific data sheets contain current information on programming the
specific microcontroller or Digital Signal Controller (DSC) devices. The following
Microchip documents are recommended as supplemental reference resources:
MPLAB
This comprehensive guide describes the usage, operation and features of Microchip’s
MPLAB XC16 C compiler (formerly MPLAB C30) for use with 16-bit devices.
MPLAB
This document describes the installation and implementation of the MPLAB X IDE
software.
dsPIC33CK256MP508 Family Data Sheet (DS70005349)
Refer to this document for detailed information on the dsPIC33CK single core Digital
Signal Controllers (DSCs). Reference information found in this data sheet includes:
• Device memory maps
• Device pinout and packaging details
• Device electrical specifications
• List of peripherals included on the devices
and are available for download from the Microchip website (www.microchip.com).
®
XC16 C Compiler User’s Guide (DS50002071)
®
X IDE User’s Guide (DS50002027)
Preface
THE MICROCHIP WEBSITE
Microchip provides online support via our website at www.microchip.com. This website
is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the website 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; and listings of Microchip sales
offices, distributors and factory representatives
PRODUCT CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip website at www.microchip.com, click on Product Change Notification and follow the registration instructions.
dsPIC33CK Curiosity Development Board User’s Guide
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Corporate Application Engineer (CAE)
• Embedded Solutions Engineer (ESE)
• Field Application Engineer (FAE)
Customers should contact their distributor, representative or Embedded Solutions
Engineer (ESE) 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 website at:
http://www.microchip.com/support.
DOCUMENT REVISION HISTORY
Revision A (April 2019)
This is the initial release of this document.
DS50002859A-page 8 2019 Microchip Technology Inc.
1.1INTRODUCTION
2
3
3
1
9
7
10
5
6
8
4
12
11
13
14
10
The dsPIC33CK Curiosity Development Board (DM330030) is intended as a
cost-effective development and demonstration platform for the dsPIC33CK256MP508
family of single core, high-performance Digital Signal Controllers (DSCs). The main
hardware features of the board are highlighted in Figure 1-1.
FIGURE 1-1:dsPIC33CK CURIOSITY DEVELOPMENT BOARD
dsPIC33CK CURIOSITY
DEVELOPMENT BOARD
USER’S GUIDE
Chapter 1. Overview
1. dsPIC33CK256MP508 single core, 16-bit Digital Signal Processor (DSP) target
device.
FIGURE 1-2:dsPIC33CK CURIOSITY DEVELOPMENT BOARD BLOCK DIAGRAM
FIGURE 1-3:PKOB MAIN SYSTEM INTERCONNECT
Overview
dsPIC33CK Curiosity Development Board User’s Guide
NOTES:
DS50002859A-page 12 2019 Microchip Technology Inc.
Chapter 2. Hardware
2.1POWERING THE BOARD
2.1.1USB Power
This board is intended to be primarily powered from the USB Micro-B connector, J7.
The official “USB 2.0 Specification” restricts USB applications to consuming no more
than 500 mA of USB V
2.1.2External Power
An external +5 VDC may optionally be connected through the J2, J4 100 mil connector,
and the 2-pin jumper should be moved from +5V USB to +5V external power on the J11
3-pin connector.
An external +3.3 V
connector to power an external circuit from the dsPIC33CK LDO. However, a maximum
of 50 mA consumption is recommended.
dsPIC33CK CURIOSITY
DEVELOPMENT BOARD
USER’S GUIDE
BUS power from the host.
DC may optionally be connected through the J1, J3 100 mil
2.1.3mikroBUS™ Power
An external +5 VDC may optionally be connected through the J2, J4 100 mil connector.
In this case, the 2-pin jumper should be moved from +5V USB to +5V external power
on the J11 3-pin connector. A maximum of 400 mA is recommended to be supplied to
the mikroBUS click boards™.
The mikroBUS +3.3 V
can supply up to 500 mA.
DC power is connected to the +3V3PK on the PKOB4 LDO, which
2.2USING THE PROGRAMMED DEMO FIRMWARE
The development board comes programmed with some basic demo firmware, which
exercises several of the board hardware features. The demo project for the dsPIC33CK
Curiosity Development Board implements an RGB color mixing application. In the
demo, the potentiometer can be used to adjust each color channel intensity
independently, while the push buttons are used to select the channel to be adjusted.
The source code for the demo can be obtained from:
www.microchip.com/dspic33ckcuriosity
2.3REPROGRAMMING AND DEBUGGING THE dsPIC33CK256MP508 DEVICE
The board has a PICkit™ On-Board (PKOB) programmer/debugger circuit, which can
be used to program and debug the dsPIC33CK256MP508 target device (U1).
Alternatively, an external programmer/debugger tool can be connected to the board via
the 6-pin in-line connector J8, using a male-male 100 mil pitch 6-pin header.
dsPIC33CK Curiosity Development Board User’s Guide
The PKOB circuit should automatically enumerate and be recognized by the
MPLAB
the host via the USB Micro-B connector, J7. No custom USB driver installation is
necessary as the PKOB circuit relies on standard OS provided Human Interface Device
(HID) drivers, and therefore, the driver installation should be fully automatic. When
plugged in, the PKOB programmer/debugger tool can be selected from the MPLAB X
project properties page by selecting the device under: Hardware Tools>Microchip Kits>Starter Kits (PKOB)>Curiosity/Starter Kits (PKOB4), as shown in Figure 2-1.
X IDE, v5.05 or later, when the dsPIC33CK Curiosity Board is connected to
2.4USING THE USB-UART INTERFACE
The board is equipped with a USB-UART interface based around the MCP2221A chip.
The MCP2221A chip implements the standard Communication Device Class (CDC) –
Abstract Control Model (ACM) protocol, and therefore, can use standard USB drivers
that are provided with modern Windows
most operating systems, the USB driver installation will be fully automatic. Under certain older operating systems, or if the device is attached to an older than Windows 10
machine without an active Internet connection, manual installation of the drivers may
be necessary. In this case, the driver package can be downloaded from:
www.microchip.com/mcp2221a
Details on how to access the serial port from Mac and Linux operating systems can also
be found in the associated collateral for the MCP2221A. Under Windows, after
successful USB driver installation, the device will appear as a “COMx” port object,
which standard serial terminal programs can open/read/write to and from.
DS50002859A-page 14 2019 Microchip Technology Inc.
®
, Mac® and Linux® operating systems. Under
2.5CIRCUIT DETAILS
This section highlights some of the circuit elements and provides an explanation for
their intent and function.
2.5.1Jumpers/Headers/Connectors
J1, J3 – These are populated 2x25-pin, 100 mil jumper headers, in which a power
module or any other custom designed board may optionally be inserted to access the
microcontroller’s digital pins. Use the triangle alignment mark on J1, pin 1 (underneath
V
REF, see Figure 1-1) to connect the dsPIC33CK Curiosity Development Board to other
boards.
J2, J4 – These are populated 2x25-pin, 100 mil jumper headers, in which a power
module or any other custom designed board may optionally be inserted to access the
microcontroller’s analog and digital pins.
J5, J6 – These are female headers that implement the mikroBUS Interfaces A and B,
which are used to attach hardware daughter boards to expand the functionality of the
development board.
J7 – This is a standard female USB Micro-B connector, which connects to the
MCP2221A USB-UART converter chip and the on-board MPLAB PKOB4
programmer/debugger. This USB interface has a data interface and supplies power to
the rest of the board, as well as to the mikroBUS A and B, up to 400 mA.
J8 – This is an unpopulated 6-pin staggered header interface that can optionally be
used to connect an external programmer/debugger to the target microcontroller, U1.
The J8 header connects to the debug port, PGx3. The holes are slightly staggered,
which provides some friction retention force without requiring physical soldering when
a straight male-male or right-angle male-male header is installed into J8.
J9 – This is an unpopulated 2-pin, 100 mil jumper header, which may optionally be used
to insert a current meter in series with the U1 V
microcontroller’s current consumption. In order to measure the U1 current, the trace
(NT1) on the bottom of the PCB, that shorts the two pins of J1, should be cut and a
2-pin jumper should be soldered into J9.
J10, J12 – These are populated 2x2-pin, 100 mil jumper headers, which may optionally
be used to insert GND_D of a power module or any other custom designed boards that
access the microcontroller’s analog and digital pins. Also, it has the purpose of a
mechanical key that will prevent reverse connection.
DD current path to measure the
2.5.2User Interface (UI)
The dsPIC33CK Curiosity Board contains a User Interface (UI), easily accessible on
the right side (see Figure 1-1). The UI has the following elements:
• One RGB LED
• A 10K Potentiometer
• Three Push Buttons
• Two Debug Orange LEDs
Each element can be programed for any purpose to create the desired interaction
between the user and the board behavior.
dsPIC33CK Curiosity Development Board User’s Guide
F
c
1
2RC
-------------- -=
t
r
2.197=
2.5.3ADC Op Amp Analog RC Section
The board contains three RC filter components for each individual ADC core of the
microcontroller, U1. They are identical; the only difference is that one connects to the
dedicated ADC Core 1, another to the dedicated ADC Core 0 and the third one to the
shared ADC core.
The default configuration is the internal op amp variant, in which all passive
components, R and C, are populated for the filter, feedback and bias circuits.
To use the external op amp, remove R59, R75 and R81 resistors and populate C24,
C25 and C26 with 5600 pF, 50V, 0603, COG resistors to enable an RC filter of
F
C = 506 kHz.
There is an on-board MCP6021 op amp to power the internal V
op amps with 1.65V (V
V
REF_EXT can also be used from connector J2 by removing, R30, 75 Ohm, and moving
it into the R31 place (default DNP).
The RC filters have a cutoff frequency:
EQUATION 2-1:
DD/2) voltage reference.
REF for the three
where R is the resistance and C is the capacitor of the filter.
Example: R = 56 Ohms and C = 5600 pF, then F
Rise/fall time, with a steady state of 10% to 90%, is proportional to the time constant:
= RC.
EQUATION 2-2:
For example: R = 56 Ohms and C = 5600 pF, then t
C = 507509 [Hz] or 507 [kHz].
= 0.68 µs.
r
DS50002859A-page 16 2019 Microchip Technology Inc.
dsPIC33CK CURIOSITY
DEVELOPMENT BOARD
USER’S GUIDE
Appendix A. Board Layout and Schematics
This appendix contains the pinout, the schematics and the board layouts for the
dsPIC33CK Curiosity Board. The topics covered in this appendix include:
• Pinout
• dsPIC33CK Curiosity Development Board Schematics
• dsPIC33CK Curiosity Development Board PCB Layout
A.1PINOUT
Ta bl e A -1 and Tab le A -2 show the pinout and the electrical parameters for connectors,
J1 and J2, respectively.
TABLE A-1:PINOUT AND ELECTRICAL PARAMETERS, J1
NameJ1dsPIC® DSC PinFunction/DescriptionRemark
VREF_EXT1NC——
+3.3V212, 31, 51, 71dsPIC DSC VDD SupplyOutput Limit 50 mA
NC3NC——
GND_A426Analog Ground—
AN12_RP48515Analog Input—
IA_AN0_OA1OUT616Analog Input, 56R, Cap = DNP F
IB_AN1_OA2OUT741Analog Input, 56R, Cap = DNP FC = 507 kHz, tr = 0.68 μs
FIGURE A-8: dsPIC33CK CURIOSITY DEVELOPMENT BOARD SCHEMATICS, REV. 2.0 (PAGE 8 OF 8)
Board Layout and Schematics
dsPIC33CK Curiosity Development Board User’s Guide
Top Silkscreen
Top Copper
A.3dsPIC33CK CURIOSITY DEVELOPMENT BOARD PCB LAYOUT
The dsPIC33CK Curiosity Board is a four-layer FR4, 1.6 mm, Plated-Through-Hole (PTH) PCB
construction. Figure A-9 through Figure A-10 illustrate the PCB layers.
FIGURE A-9:dsPIC33CK CURIOSITY DEVELOPMENT BOARD TOP SILKSCREEN AND TOP COPPER
DS50002859A-page 28 2019 Microchip Technology Inc.
Board Layout and Schematics
Bottom Silkscreen
Bottom Copper
FIGURE A-10:dsPIC33CK CURIOSITY DEVELOPMENT BOARD BOTTOM SILKSCREEN AND