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, Accuron,
dsPIC, K
EE
L
OQ
, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
SEEVAL, SmartSensor 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, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active
Thermistor, Mindi, MiWi, MPASM, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel, Total
Endurance, UNI/O, 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
Tempe, Arizona, Gresham, Oregon and Mountain View, California. The
Company’s quality system processes and procedures are for its PIC
®
8-bit MCUs, K
EE
L
OQ
®
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.
DSxxxxx-page ii
©
2009 Microchip Technology Inc.
28-PIN LIN DEMO BOARD
USER’S GUIDE
Chapter 1. 28-Pin LIN Demo Board Overview
1.1
INTRODUCTION
The 28-Pin LIN Demo Board is a small and simple demonstration PCB for Microchip’s
28-pin Dual Inline Package (DIP) PIC
®
Microcontroller Units (MCU). It is populated with
a PIC16F886 MCU, a MCP2021 LIN Transceiver with voltage regulator, four LEDs, 2
push buttons and a potentiometer. The demo board has several test points to access
the I/O pins of the MCU and a generous prototyping area. The MCU can be
programmed with the PICkit™ 2 Microcontroller Programmer or the MPLAB
®
ICD 2
using the RJ-11 to 6-pin inline adapter (AC164110).
1.2
HIGHLIGHTS
This chapter discusses:
• 28-Pin LIN Demo Board Supported Devices
• The 28-Pin LIN Demo Board Overview
• Running the Default Demonstration
1.3
28-PIN LIN DEMO BOARD SUPPORTED DEVICES
The 28-Pin LIN Demo Board can be used with virtually any 28-pin Dual Inline Package
(DIP) PIC MCU. The assembled 28-Pin LIN Demo Board is populated with a
PIC16F886-I/P microcontroller.
Additional 28-Pin LIN Demo Boards can be ordered from Microchip Technology and
distributors. Part number, DM164120-3, comes with one assembled and two blank
28-Pin LIN Demo Boards. The blank demo board can be used for evaluating or proto-
typing circuits using any of the 28-pin devices listed below.
PIC16CR63
PIC16CR76
PIC16C63A
PIC16C745
PIC16C773
PIC16F737
PIC16F767
PIC16F870
PIC16F872
PIC16F873A
PIC16F876A
PIC16F882
PIC16F883
PIC16F886
PIC18F2220
PIC18F2221
PIC18F2320
PIC18F2321
PIC18F2331
PIC18F2410
PIC18F2420
PIC18F2423
PIC18F2431
PIC18F2450
PIC18F2455
PIC18F2480
PIC16F913
PIC16F916
PIC18F2510
PIC18F2520
PIC18F2515
PIC18F2523
PIC18F2525
PIC18F2550
PIC18F2580
PIC18F2585
PIC18F2610
PIC18F2620
PIC18F2680
PIC18F2682
PIC18F2685
PIC18F24J10
PIC18F25J10
©
2009 Microchip Technology Inc.
DSxxxxx-page 4
28-Pin LIN Demo Board Overview
1.4
28-PIN LIN DEMO BOARD OVERVIEW
The 28-Pin LIN Demo Board is populated with a PIC16F886 MCU (U1), a MCP2021
LIN Transceiver with Voltage Regulator (U2), four LEDs (DS1-DS4), Two push buttons
(SW1 and SW2), 32 KHz crystal (X2) and potentiometer (RP1). The board layout is
shown in Figure 1-1. The demo board has several test points to access the I/O pins of
the MCU and a generous prototyping area. The MCU can be programmed with the
PICkit™ 2 Microcontroller Programmer from header P1.
FIGURE 1-1:
28-PIN LIN DEMO BOARD
PICkit™ 2 or 3
Programming Header
Aux Power
Connector
Crystal
Mounting Pads
LIN Analyzer
Connectors
32 KHz Crystal
Push Button
SW2
Push Button
SW1
GND
LIN
+9-18V
Generous
Prototyping
Area
Potentiometer
RP1
LEDs DS1-DS4
1.5
RUNNING THE DEFAULT DEMONSTRATION
The assembled 28-Pin LIN Demo Board comes preprogrammed with a demonstration
program. To use this program, power the demo board (9.0-18.0 V
DC
) using a LIN
Network Analyzer and/or a bench power supply connected to header P3 or P4. To use
the PICkit™ 2 Microcontroller Programmer, connect it to a PC USB port using the USB
cable. The demo board will blink the LEDs in the Reset pattern. The Reset pattern
consists of three different LED blink patterns. First, the LEDs will “ping pong” (LED1, 2,
3 and 4, then LED 4, 3, 2 and 1). Second, the LEDs will blink on and off in unison. Third,
the LEDs will perform the ADC display where values 0x0A, 0x0D and 0x0C display in
sequence followed by the Most Significant 4 bits of the ADC result measuring channel
1, which is the on-board potentiometer. After this sequence, the EAUSART is initialized
for LIN communcation.
Sending an ID of 0x2F will request a four-byte data response as follows:
Data byte 1 = ADC result
©
2009 Microchip Technology Inc.
DSxxxxx-page 5