Microchip Technology DM182017-1, DM182017-2, DM182017-3 User Manual

Wireless Security Remote Control
Development Kit
User’s Guide
2012 Microchip Technology Inc. DS41646A
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.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC, K
EELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
32
PIC
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.
© 2012, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
QUALITY MANAGEMENT S
DS41646A-page 2  2012 Microchip Technology Inc.
ISBN: 9781620764145
Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and T empe, 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 memo ry and analog products. In addition, Microchip’s quality system for the desig n and manufacture of development systems is ISO 9001:2000 certified.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
Object of Declaration: Wireless Security Remote Control Development Kit
2012 Microchip Technology Inc. DS41646A-page 3
Wireless Security Remote Control Development Kit User’s Guide
NOTES:
DS41646A-page 4  2012 Microchip Technology Inc.
WIRELESS SECURITY REMOTE CONTROL
DEVELOPMENT KIT USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 7
Chapter 1. Overview
1.1 Introduction ................................................................................................... 13
1.2 Wireless Security Remote Control Development Kit Contents ..................... 13
1.3 Getting Started ............................................................................................. 13
Chapter 2. Getting Started
2.1 Introduction ................................................................................................... 15
2.2 Hardware Requirements .............................................................................. 15
2.3 Software Requirements ................................................................................ 15
2.4 Demo Setup ................................................................................................. 15
2.5 Demo Operation ........................................................................................... 16
2.6 Embedded Security Development Board Hardware Self-Check .................. 19
Chapter 3. PIC12LF1840T39A Wireless Remote Key Fob
3.1 Introduction ................................................................................................... 21
3.2 Hardware Description ................................................................................... 21
3.3 Printed Circuit Board Description ................................................................. 21
3.4 PCB Antenna Description ............................................................................. 22
Chapter 4. SX1239 Receiver PICtail™ Daughter Board
4.1 Introduction ................................................................................................... 25
4.2 Hardware Description ................................................................................... 25
Chapter 5. Embedded Security Development Board
5.1 Introduction ................................................................................................... 27
5.2 Hardware Description ................................................................................... 28
Chapter 6. Developing with the Wireless Security Remote Control Development Kit
6.1 Introduction ................................................................................................... 31
6.2 Developing with a Key Fob as Transmitter .................................................. 31
6.3 Developing with the Embedded Security Development Board as Receiver . 32
Appendix A. PIC12LF1840T39A Wireless Remote Key Fob Schematics Appendix B. SX1239 Receiver PICtail™ Daughter Board Schematics Appendix C. Embedded Security Development Board Schematics
Worldwide Sales and Service ....................................................................................50
2012 Microchip Technology Inc. DS41646A-page 5
Wireless Security Remote Control Development Kit User’s Guide
NOTES:
DS41646A-page 6  2012 Microchip Technology Inc.
WIRELESS SECURITY REMOTE CONTROL
DEVELOPMENT KIT 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 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 online help files.
®
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the Wireless Security Remote Control Development Kit User’s Guide. Items discussed in this chapter include:
Document Layout
Conventions Used in this Guide
Warranty Registration
Recommended Reading
The Microchip Web Site
Development Systems Customer Change Notification Service
Customer Support
Revision History
DOCUMENT LAYOUT
This document describes how to use the Wireless Security Remote Control Development Kit (WSRCDK) to evaluate and experiment with Microchip K Entry (RKE) solutions. The main layout is as follows:
Chapter 1. “Overview”This chapter describes the WSRCDK and how it works.
Chapter 2. “Get ti ng Started”This chapter describes the procedures to
demonstrate Microchip K
Chapter 3. “PIC12LF1840T39A Wireless Remote Key Fob” – This chapter
provides the hardware details of the wireless key fob.
Chapter 4. “SX1239 Receiver PICtail™ Daughter Board” – This chapter
provides the hardware details of the Receiver PICtail Daughter Board.
Chapter 5. “Embedded Security Development Board” – This chapter provides
the hardware details of the Embedded Security Development Board.
EELOQ
EELOQ RKE solution on WSRCDK.
®
Remote Keyless
2012 Microchip Technology Inc. DS41646A-page 7
Wireless Security Remote Control Development Kit User’s Guide
Chapter 6. “Developing with the Wireless Security Remote Control
Development Kit” – This chapter provides suggestions on the development based
on Microchip RKE solution.
Appendix A. “PIC12LF1840T39A Wireless Remote Key Fob Schematics”
This appendix provides the PCB layout, BOM and schematics.
Appendix B. “SX1239 Receiver PICtail™ Daughter Board Schematics” – This
appendix provides the PCB layout, BOM and schematics.
Appendix C. “Embedded Security Development Board Schematics” – This
appendix provides the PCB layout, BOM and schematics.
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Arial font:
Italic characters Referenced books MPLAB
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
dialog
Underlined, italic text with right angle bracket
Bold characters A dialog button Click OK
N‘Rnnnn A number in verilog format,
Text in angle brackets < > A key on the keyboard Press <Enter>, <F1>
Courier New font:
Plain Courier New Sample source code #define START
Italic Courier New A variable argument file.o, where file can be
Square brackets [ ] Optional arguments mcc18 [options] file
Curly brackets and pipe character: { | }
Ellipses... Replaces repeated text var_name [,
A menu path File>Save
A tab Click the Power tab
where N is the total number of digits, R is the radix and n is a digit.
Filenames autoexec.bat File paths c:\mcc18\h Keywords _asm, _endasm, static Command-line options -Opa+, -Opa- Bit values 0, 1 Constants 0xFF, ‘A’
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)
{ ... }
®
IDE User’s Guide
DS41646A-page 8  2012 Microchip Technology Inc.
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site.
RECOMMENDED READING
This user’s guide describes how to use the Wireless Security Remote Control Development Kit User’s Guide. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
Readme Files
Preface
For the latest information on using other tools, read the tool-specific Readme files in the Readme subdirectory of the MPLAB
®
IDE installation directory. The Readme files contain update information and known issues that may not be included in this user’s guide.
Application Notes
There are several application notes available from Microchip that help in understanding Microchip K
AN1259 “K
AN1265 “K
•AN743 “Modular PIC
•AN745 “Modular Mid-Range PIC
• AN1275 “K
EELOQ applications. These include:
®
EELOQ EELOQ
EELOQ
Microcontroller-based Code Hopping Encoder”
®
with AES Microcontroller-based Code Hopping Encoder”
®
Mid-Range MCU Code Hopping Decoder
®
Decoder in C
®
with AES Receiver/Decoder
2012 Microchip Technology Inc. DS41646A-page 9
Wireless Security Remote Control Development Kit User’s Guide
THE MICROCHIP WEB SITE
Microchip provides online support via 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
DEVELOPMENT SYSTEMS CUSTOMER 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 web site at www.microchip.com, click on Customer Change Notification and follow the registration instructions.
The Development Systems product group categories are:
Compilers – The latest information on Microchip C compilers, assemblers, linkers
and other language tools. These include all MPLAB C compilers; all MPLAB assemblers (including MPASM™ assembler); all MPLAB linkers (including MPLINK™ object linker); and all MPLAB librarians (including MPLIB™ object librarian).
Emulators – The latest information on Microchip in-circuit emulators.This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes MPLAB ICD 3 in-circuit debuggers and PICkit™ 3 debug express.
MPLAB
Integrated Development Environment for development systems tools. This list is focused on the MPLAB IDE, MPLAB IDE Project Manager, MPLAB Editor and MPLAB SIM simulator, as well as general editing and debugging features.
Programmers – The latest information on Microchip programmers. These include
production programmers such as MPLAB REAL ICE in-circuit emulator, MPLAB ICD 3 in-circuit debugger and MPLAB PM3 device programmers. Also included are nonproduction development programmers such as PICSTART PICkit 2 and 3.
®
IDE – The latest information on Microchip MPLAB IDE, the Windows
®
Plus and
®
DS41646A-page 10  2012 Microchip Technology Inc.
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://www.microchip.com/support.
REVISION HISTORY
Revision A (July 2012)
• Initial Release of this Document.
Preface
2012 Microchip Technology Inc. DS41646A-page 11
Wireless Security Remote Control Development Kit User’s Guide
NOTES:
DS41646A-page 12  2012 Microchip Technology Inc.
WIRELESS SECURITY REMOTE CONTROL
DEVELOPMENT KIT USER’S GUIDE

Chapter 1. Overview

1.1 INTRODUCTION

The Wireless Security Remote Control Development Kit is a demonstration and development platform for wireless security remote control applications. The kit demos two security protocols, K
The kit contains a four-button key fob transmitter based on the PIC12LF1840T39A, SX1239 Receiver PICtail™ Daughter Board, and the Embedded Security Development Board. The kits can be purchased in one of three transmit frequencies. See the next section for ordering part numbers.
• Wireless Security Remote Control Development Kit Contents
• Getting Started

1.2 WIRELESS SECURITY REMOTE CONTROL DEVELOPMENT KIT CONTENTS

The Wireless Security Remote Control Development Kits have three frequency choices:
• Wireless Security Remote Control Development Kit – 433.92 MHz (DM182017-1)
• Wireless Security Remote Control Development Kit – 868 MHz (DM182017-2)
• Wireless Security Remote Control Development Kit – 915 MHz (DM182017-3)
Each kit contains:
• PIC12LF1840T39A Wireless Remote Key Fob (
Wireless Remote Key Fob”
• SX1239 Receiver PICtail Daughter Board (
Daughter Board”
• Embedded Security Development Board (
Development Board”
• USB Cable
• CR2032 Coin Cell Battery
,
Appendix B
®
EELOQ
Classic and KEELOQ® AES.
,
Appendix A
,
Appendix C
Chapter 3. “PIC12LF1840T39A
)
Chapter 4. “SX1239 Receiver PICtail™
)
Chapter 5. “Embedded Security
)

1.3 GETTING STARTED

Chapter 2. “Get ti ng Started” provides a getting started tutorial to familiarize users
with the Wireless Security Remote Control Development Kit.
2012 Microchip Technology Inc. DS41646A-page 13
Wireless Security Remote Control Development Kit User’s Guide
NOTES:
DS41646A-page 14  2012 Microchip Technology Inc.
WIRELESS SECURITY REMOTE CONTROL
DEVELOPMENT KIT USER’S GUIDE

Chapter 2. Getting Started

2.1 INTRODUCTION

This chapter provides a getting started tutorial to familiarize users with the Wireless Security Remote Control Development Kit.
The following topics are discussed in this chapter:
• Hardware Requirements
• Software Requirements
•Demo Setup
• Demo Operation

2.2 HARDWARE REQUIREMENTS

The following hardware is required to run the pre-programmed demo application:
• PIC12LF1840T39A Wireless Remote Key Fob
• SX1239 Receiver PICtail™ Daughter Board
• Embedded Security Development Board
• USB A to Mini-B Cable (to power the Embedded Security Development Board or
power can also be provided by a bench power supply)

2.3 SOFTWARE REQUIREMENTS

The PIC12LF1840T39A Key Fob and Embedded Security Development Board are pre-programmed with a remote control demo program. The demo setup and operation are explained in the following sections.
The source code for the demo is available from the Wireless Security Remote Control Development Kit product web page at http://www.microchip.com/security

2.4 DEMO SETUP

This section describes how to set up the kit contents to operate the remote control demo program.
1. Obtain a CR2032 coin battery (if not included in the development kit)
2. Open the plastic enclosure of the red key fob by carefully prying apart the two
halves. Remove the PCB board from the plastic enclosure carefully. Observe the correct battery polarity and insert the CR2032 coin battery into the battery holder. Put the PCB board back in the plastic enclosure and close the enclosure.
3. To verify that the key fob is properly installed, press any button and the LED
should be flashing when the button is pressed.
4. Plug in the RF receiver daughter board on the PICtail slot of the Embedded
Security Development Board. Make sure that the RF receiver daughter board has the side with RF receiver chip face the center, as shown in Figure 2-1.
.
2012 Microchip Technology Inc. DS41646A-page 15
Wireless Security Remote Control Development Kit User’s Guide
FIGURE 2-1: PLUG THE SX1239 RECEIVER PICtail™ DAUGHTER CARD
INTO THE EMBEDDED SECURITY DEVELOPMENT BOARD
5. Power-up the Embedded Security Development Board.
To power the Embedded Security Development Board from the USB port, connect the USB A to mini-B cable to the development board and an available USB port or USB power source. Set jumper J6 to pins 1-2. When using a USB port for power, there is no requirement to load the USB drivers.
To power the Embedded Security Development Board from an external power supply, connect test points labeled +V Place jumper J6 to pins 2-3.
EXT and GND to a bench power supply set to 3.3 VDC.

2.5 DEMO OPERATION

The pre-programmed demo is used to demonstrate the basic operation of Microchip Remote Keyless Entry (RKE) solutions. The demo highlights capabilities of transmitting and receiving data that is secured over the air. Two different methods, K and K
EELOQ

2.5.1 Key Fob as Transmitter

The pre-programmed demonstration shows how to secure information during data transmission. Pressing any one of four buttons on the red key fob, the information about the pressed button will be encrypted and transmitted. When data is being transmitted, the LED on the key fob will flash. Two ways to secure the information have been shown in this demo: K
Figure 2-2) is pressed, the information is secured with K
transmission; when button 3 or 4 (see Figure 2-2) is pressed, the information is secured with K
EELOQ AES before the transmission.
For details on K
notes AN1259, “KK
The key fob has four push buttons and is powered by a CR2032 coin battery. The key fob is shown in Figure 2-2, where the four buttons are labeled individually.
EELOQ
®
with AES Microcontroller-Based Code Hopping Encoder”.
®
®
AES, are used in this demo.
EELOQ Classic and KEELOQ AES. When button 1 or 2 (see
EELOQ Classic before the
EELOQ Classic and KEELOQ AES, please refer to Microchip application
EELOQ
®
Microcontroller-Based Code Hopping Encoder” and AN1265
EELOQ
Classic
DS41646A-page 16  2012 Microchip Technology Inc.
Loading...
+ 35 hidden pages