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 Digit al Millennium Copyright A ct. 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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, 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, SmartT el, Total
Endurance, UNI/O, WiperLock and ZENA are trademarks of
Microchip Technology I ncorporat ed 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 Mountain View, California. The
Company’s quality system processes and procedures are for its PIC
8-bit MCUs, KEELOQ
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.
The 28-Pin LIN Demo Board is a small and simple demonstration PCB for Microchip’s
28-pin Dual Inline Package (DIP) PIC
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
using the RJ-11 to 6-pin inline adapter (AC164110).
®
Microcontroller Units (MCU). It is populated with
1.2HIGHLIGHTS
This chapter discusses:
• 28-Pin LIN Demo Board Supported Devices
• The 28-P in LIN Demo Board Overview
• Running the Default Demonstration
1.328-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 prototyping circuits using any of the 28-pin devices listed below.
The 28-Pin LIN Demo Board is populated with a PIC16F886 MCU (U1), a MCP2021
LIN Tr ansceive r with V o ltag e Regulat or (U2), f our LEDs ( DS1-DS4) , T wo pus h button s
(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
32 KHz Crystal
Push Button
SW2
Push Button
SW1
LEDs DS1-DS4
1.5RUNNING 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.0V
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
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Techn ical Su pport:
http://support.microchip.com
Web Address:
www.microchip.com
Atlanta
Alpharetta, GA
Tel: 770-640-0034
Fax: 770-640-0307
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
Kokomo, IN
Tel: 765-864-8360
Fax: 765-864-8387
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445