Microchip Technology MCP2030 Bidirectional Communication Demo Kit User guide

MCP2030
Bidirectional Communication
Demo Kit
User’s Guide
© 2006 Microchip Technology Inc. DS51637A
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
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, 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.
© 2006, 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, 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.
®
code hopping devices, Serial EEPROMs,
DS51637A-page ii © 2006 Microchip Technology Inc.
®
MCP2030 BIDIRECTIONAL
COMMUNICATION DEMO KIT
USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 1
Introduction............................................................................................................ 1
Document Layout .................................................................................................. 1
Conventions Used in this Guide ............................................................................ 2
Recommended Reading........................................................................................ 2
The Microchip Web Site ........................................................................................ 3
Customer Support ................................................................................................. 3
Document Revision History ................................................................................... 4
Chapter 1. Quick Start .................................................................................................. 5
1.1 Introduction ..................................................................................................... 5
Chapter 2. System Overview ........................................................................................ 7
2.1 Overview ........................................................................................................ 7
2.2 Operational Overview ..................................................................................... 8
2.3 Features ....................................................................................................... 10
Chapter 3. Hardware and Firmware Overview .......................................................... 11
3.1 Introduction ................................................................................................... 11
3.2 MCP2030 Base Station Demo Board ........................................................... 11
3.3 MCP2030 Transponder Demo Board ........................................................... 14
Appendix A. Schematic and Layouts ........................................................................ 19
A.1 Introduction .................................................................................................. 19
A.2 Transponder Demo Board - Schematic ...................................................... 20
A.3 Transponder Demo Board - Top Layer and Silk Screen ............................ 21
A.4 Transponder Demo Board - Bottom Layer ................................................. 21
A.5 Base Station Demo Board - Schematic (Page 1) ..................................... 22
A.6 Base Station Demo Board - Schematic (Page 2) ..................................... 23
A.7 Base Station Demo Board - Top Layer and Silk Screen .......................... 24
A.8 Base Station Demo Board - Bottom Layer ............................................... 24
Appendix B. Bill of Materials (BOM) .......................................................................... 25
B.1 Introduction .................................................................................................. 25
Worldwide Sales and Service .................................................................................... 30
© 2006 Microchip Technology Inc. DS51637A-page iii
MCP2030 Bidirectional Communication Demo Kit User’s Guide
NOTES:
DS51637A-page iv © 2006 Microchip Technology Inc.
MCP2030 BIDIRECTIONAL
COMMUNICATION DEMO 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 on-line help files.
®
IDE on-line help.

INTRODUCTION

This chapter contains general information that will be useful to know before using the MCP2030 Bidirectional Communication Demo Kit. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Customer Support

DOCUMENT LAYOUT

This document describes the MCP2030 Bidirectional Communication Demo Kit. The manual layout is as follows:
Chapter 1. “Quick Start” – Describes the MCP2030 Bidirectional
Communication Demo Kit set-up instructions.
Chapter 2. “System Overview” – A system overview of the MCP2030
Bidirectional Communication Demo Kit is discussed.
Chapter 3. “Hardware and Firmware Overview” – Describes the MCP2030
Bidirectional Communication Demo Kit hardware and firmware.
Appendix A. “Schematic and Layouts” – Shows the schematic and board
layouts for the MCP2030 Bidirectional Communication Demo Kit.
Appendix B. “Bill of Materials (BOM)” - Lists the parts used to build the demo
boards that make up MCP2030 Bidirectional Communication Demo Kit.
© 2006 Microchip Technology Inc. DS51637A-page 1
MCP2030 Bidirectional Communication Demo Kit User’s Guide

CONVENTIONS USED IN THIS GUIDE

This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description Represents Examples
Code (Courier font):
Plain characters Sample code
Filenames and paths
Angle brackets: < > Variables <label>, <exp>
Square brackets [ ] Optional arguments MPASMWIN [main.asm]
Curly brackets and pipe character: { | }
Lowercase characters in quotes
Ellipses... Used to imply (but not show) addi-
0xnnn A hexadecimal number where n is a
Italic characters A variable argument; it can be either a
Interface (Arial font):
Underlined, italic text with right arrow
Bold characters A window or dialog button to click OK, Cancel
Characters in angle brackets < >
Documents (Arial font):
Italic characters Referenced books MPLAB
Choice of mutually exclusive argu­ments; An OR selection
Type of data
tional text that is not relevant to the example
hexadecimal digit
type of data (in lowercase characters) or a specific example (in uppercase characters).
A menu selection from the menu bar File > Save
A key on the keyboard <Tab>, <Ctrl-C>
#define START c:\autoexec.bat
errorlevel {0|1}
filename
list [list_option...,
list_option]
0xFFFF, 0x007A
char isascii (char, ch);
®
IDE User’s Guide

RECOMMENDED READING

It is recommended that you become familiar with the documents listed below, prior to using the MCP2030 Bidirectional Communication Demo Kit.
Telecontrolli Data Sheet, “AMHRRQ3-433” , www.telecontrolli.com, (DS.0015-1.pdf)
Telecontrolli Data Sheet, “AMHRR3-433”, www.telecontrolli.com, (DS.0016-9.pdf)
Application Note AN710, “Antenna Circuit Design”, (DS00710)
Application note describing LF antenna circuit design for RFID applications.
Application Note AN959, “Using the PIC16F639 MCU for Smart Wireless Communications” (DS00959)
Application note describing the PIC16F639 as a suitable microcontroller for bidirectional communications and low-frequency sensing applications.
Application Note AN1024, “PKE System Design Using the PIC16F639” (DS01024)
Application note describing the PIC16F639 for bidirectional communication applications.
DS51637A-page 2 © 2006 Microchip Technology Inc.
MCP2030 Bidirectional Communication Demo Kit User’s Guide
PICkit™ 2 Microcontroller Programmer User’s Guide (DS51553)
Consult this document for instructions on how to use the PICkit 2 Microcontroller Programmer hardware and software.
PIC12F635/PIC16F636/639 Data Sheet (DS41232)
Data sheet for the PIC12F635/PIC16F636/639 8/14-pin Flash-based, 8-bit CMOS microcontrollers with nanoWatt technology.
PIC18F2585/2680/4585/4680 Data Sheet (DS39625)
Data sheet for the PIC18F2585/2680/4585/4680 28/40/44-pin enhanced Flash microcontrollers with ECAN
MCP2030 Data Sheet, “Three-Channel Analog Front-End Device“ (DS21981)
Data sheet for the MCP2030 device.
TC4421/TC4422 Data Sheet, “High-Speed MOSFET Drivers” (DS21420)
Data sheet for the TC4421/TC4422 9A High-Speed MOSFET Driver. Gives an overview of the device including electrical characteristics.
MCP3421 Data Sheet, “18-Bit Delta-Sigma Analog-to-Digital Converter with I Interface and On-Board Referece” (DS22003)
Data sheet for the MCP3421 18-Bit Delta-Sigma Analog-to-Digital Converter.
technology, 10-bit A/D and nanoWatt technology.
2
C

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 Guide, latest Microchip press
releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives

CUSTOMER SUPPORT

Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line
Customers should contact their distributor, representative or field application engineer 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
© 2006 Microchip Technology Inc. DS51637A-page 3
MCP2030 Bidirectional Communication Demo Kit User’s Guide

DOCUMENT REVISION HISTORY

Revision A (December 2006)
• Initial Release of this Document.
DS51637A-page 4 © 2006 Microchip Technology Inc.

1.1 INTRODUCTION

This section provides the user a quick step-by-step instruction guide on how to set-up the MCP2030 Bidirectional Communication Demo Kit.
1.1.1 Transponder Unit
Connect power to the Transponder unit by inserting a 3V NiHM (CR2032) battery to the battery holder in the bottom side of the Transponder. When the Transponder is powered on, it is waiting for a 125 kHz low frequency (LF) command from the Base Station unit. On the PCB, there are three LF antenna coils: One large air-core coil on the bottom side and two ferrite-core coils on the top side. These three coils detect 125 kHz low frequency (LF) signals from x, y, and z directions. The Transponder also has a SAW (Surface Acoustic Wave) based UHF transmitter. A rectangular loop trace on the PCB is the UHF antenna. The Transponder has two LED diodes. A green LED (D6) will blink when the Transponder receives a valid LF command, and a red LED (D7) will blink when it transmitting an UHF response.
MCP2030 BIDIRECTIONAL
COMMUNICATION DEMO KIT
USER’S GUIDE

Chapter 1. Quick Start

Top Sid e
UHF
Antenna
125 kHz
Air Core
Antenna Coil
PICkit™ 2 Debug Express
Bottom Side
3V Lithium Battery
© 2006 Microchip Technology Inc. DS51637A-page 5
MCP2030 Bidirectional Communication Demo Kit User’s Guide
1.1.2 Base Station Unit:
Supply power to the Base Station unit with a 9V - 18V power supply. As soon as the power is supplied, the LED D2 will light on, and the unit starts transmitting an LF command.The unit also waits for the responses from the Transponder at any time, except during the transmission of the LF command. When the unit receives a valid response from the Transponder, the LED D3 will blink and the received Transponder ID and RSSI (Received Signal Strength Indicator) value will be displayed on the LCD.
MPLAB® ICD 2
Programming Jack
9V Power Supply
UHF Antenna
UHF Receiver Module
125 kHz LF
Antenna
1.1.3 When both the Base Station and Transponder units are powered-on:
When the two units are powered-on, they will communicate by themselves. The Base Station sends a 125 kHz LF command and the Transponder responds to the command. When the Transponder is placed within about 2 meters to the Base Station unit, the two units may have a successful communication with each other and the Base Station unit will display the received Transponder ID and RSSI value on the LCD. This is called a bidirectional communication. User can test the RSSI by moving the Transponder within the Base Station’s LF field. The RSSI value will increase as the Transponder comes closer to the Base Station antenna and decrease as moves away from it. The two units are communicating with each other as long as the boards are powered. You can also test one directional communication from the Transponder to the Base Station unit by pressing button switch (SW3 or SW4) on the Transponder. The range of the one directional communication is about 20 meters.
This MCP2030 Bidirectional Communication Demo Kit shows you how to create a smart hands-free bidirectional communication system using the stand-alone MCP2030 and microcontroller. All MCU firmware used for both the Transponder and Base Station units are included in the CD ROM provided with the MCP2030 Bidirectional Communi­cation Demo Kit. The user can easily modify the firmware for their own applications.
DS51637A-page 6 © 2006 Microchip Technology Inc.
2.1 OVERVIEW
This section describes how to use the MCP2030 Bidirectional Communication Demo Kit.
The MCP2030 Bidirectional Communication Demo Kit consists of two Transponders and a Base Station unit. The Transponder consists of an MCP2030 (stand-alone three-axis analog front-end device), a PIC16F636, and an MCP3421(18-bit delta-sigma analog-to-digital converter). Unlike the existing PKE Reference Design System (P/N: APGRD001) from Microchip Technology Inc., this Transponder uses stand-alone devices for the bidirectional passive keyless entry (PKE) operation. This system also demonstrates the received signal strength indicator (RSSI) function using the MCP3421 delta-sigma ADC. When the Transponder receives a Base Station com­mand, it transmits its ID and sampled RSSI value. By monitoring or mapping the RSSI values, the user can estimate location or motion of the transponder with respect to the Base Station unit. For example, for the automotive passive keyless entry (PKE) appli­cations, the Base Station mounted inside the vehicle can determine whether the tran­sponder is located inside or outside of the vehicle, or in the front or back seat in the vehicle.
The Base Station unit consists of a PIC18F4680, a low frequency (LF) power amplifier, an LF receiver section, a 434 MHz UHF receiver module, an LCD display, and CAN/LIN transceiver sections. The components in the LF receiver section and the CAN/LIN transceiver sections are populated on the PCB for future use, but their functions are not utilized for this demo version. Any user who needs these features can contact Microchip Technology Inc. for further information.
The MCP2030 Bidirectional Communication Demo Kit has been designed for easy modification by customers. The firmware of both the Transponder and Base Station units can be easily modified using the MPLAB
MCP2030 BIDIRECTIONAL
COMMUNICATION DEMO KIT

Chapter 2. System Overview

®
in-circuit serial programmers.
USER’S GUIDE
Response
LCD
434 MHz AM
Receiver
(PIC18F4680)
Microcontroller
Base Station Transponder
LF
Transmitter/
Receiver
LED
125 kHz LC Series Resonant Circuit
LF Command
(125 kHz)
(UHF)
Ant. X
Ant. Y
Ant. Z
125 kHz LC Parallel Resonant Circuit
434 MHz
Transmitter
(PIC16F636)
(MCP2030)
Analog Front-End
LED
Button
SW
MCU
ADC
(MCP3421)
FIGURE 2-1: MCP2030 Bidirectional Communication System Block Diagram.
© 2006 Microchip Technology Inc. DS51637A-page 7
Loading...
+ 23 hidden pages