MCP2030 Bidirectional Communication Demo Kit User’s Guide © 2006 Microchip Technology Inc.
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.
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Table of Contents Preface ........................................................................................................................... 1 Introduction............................................................................................................ 1 Document Layout .................................................................................................. 1 Conventions Used in this Guide ...............................
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.
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 #define START c:\autoexec.bat Angle brackets: < > Variables
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.
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.
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Chapter 1. Quick Start 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.
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.
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Chapter 2. System Overview 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).
MCP2030 Bidirectional Communication Demo Kit User’s Guide 2.2 OPERATIONAL OVERVIEW When the MCP2030 Base Station unit is powered on using a 9 V power supply and the MCP2030 transponder demo board is powered-on using a 3V lithium battery, the system works as follows: (a) The Base Station unit transmits an LF command. Requesting the Transponder’s ID and RSSI data. (b) When the Transponder receives the LF command, it transmits its 32-bit ID and RSSI data via the UHF (434 MHz) link.
System Overview 10 bit LF Command from Base Station LF Command from Base Station Demodulated data output from MCP2030 Gap for 500 μ s Change back MCP2030 Configuration Wake-Up Filter Register Continuous LF for RSSI Sample Input Coil Voltage at pin 9 of U1 MCU SendsSPI Command a Soft Resetfor RSSI Output Command to MCP2030 2 I C Command for ADC AGC Stabilization time (4 ms) at pin 3 of U3 MCP3421 converts RSSI to digital values Demodulated Data: ADC conversion Completed here 1100-0011-Parity-Stop
MCP2030 Bidirectional Communication Demo Kit User’s Guide 2.3 FEATURES 2.3.1 MCP2030 Base Station Unit Features of the Base station Unit are as follows: • Send an LF command continuously requesting the Transponder ID and RSSI data • Display the received Transponder responses • MPLAB® ICD 2 In Circuit Serial Programming™ (ICSP™) Note: 2.3.2 LF talkback, CAN and LIN feature support: Components are populated, but not used for this demo version.
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Chapter 3. Hardware and Firmware Overview 3.1 INTRODUCTION The following section provides an overview of the hardware and MCU firmware algorithm used in the MCP2030 Bidirectional Communication Demo Kit. 3.2 MCP2030 BASE STATION DEMO BOARD 3.2.1 Technical Specifications Normal Operating Voltage: 9 - 18V, Current Rating > 500 mA LF Frequency (LF Command Frequency) 125 kHz UHF AM Receiving Frequency: 433.
MCP2030 Bidirectional Communication Demo Kit User’s Guide 3.2.5 125 kHz Low Frequency Command Initiator The 125 kHz PWM from the PIC18F4680 is power boosted by the MOS FET driver (TC4422). The PWM square pulse becomes a sine wave as the current passes through the LC series resonant circuit formed by L1 and C2, C3, and C4 on the Base Station Demo Board. The current that is passing through the L1 generates a magnetic field.
MCP2030 Bidirectional Communication Demo Kit User’s Guide The LF command Base Station Demo Board consists of a 125 kHz carrier modulated as follows: 1: 4 ms ON for AFE’s AGC stabilization. 2: 500 µs OFF. 3: 2 ms ON followed by a 2 ms OFF (AFE’s output enable filter). This pattern is dependant on the configuration setting of the receiving AFE. 4: 10 bit of command type (3C), parity, and Stop bit. The bits are transmitted Least Significant bits (LSb) first. The data is encoded with PWM method.
MCP2030 Bidirectional Communication Demo Kit User’s Guide 3.3 MCP2030 TRANSPONDER DEMO BOARD 3.3.1 Technical Specifications LF Input Frequency: 125 kHz LF Input Modulation Format: Amplitude Modulation Encoding Method: Pulse Width Modulation (PWM) Operating Voltage: 2 - 3.6V. See Note 1 LF Input Sensitivity: ~3 mVPP. See Note 2 LF Detection Range: Up to 3 meters Transmitting Frequency: 433.
MCP2030 Bidirectional Communication Demo Kit User’s Guide strength. This current output is fed into a resistor and the voltage across the resistor is fed into the MCP3421 ADC input pin. The converted16-bit ADC output is then fed into the MCU. The function of the MCP2030 is controlled by its configuration register settings. Highly intelligent signal detection and response (bidirectional communications) is possible by utilizing the MCP2030 configuration register settings.
MCP2030 Bidirectional Communication Demo Kit User’s Guide 3.3.6 Programming of the Transponder The Transponder Demo Board has a Programming Connector (J1) for In-Circuit Serial Programming™ (ICSP™). See Figure 3-3 for the J1 Programming Connector. The transmitter can therefore be re-programmed using the PICkit® 2 (or PICkit® 1) without removing the microcontroller from the board. FIGURE 3-3: 3.3.7 MCLR 1 VCC 2 VSS 3 ICSPDAT 4 ICSPCLK 5 no connection 6 J1 Programming Connector.
MCP2030 Bidirectional Communication Demo Kit User’s Guide Power-up MCU Programs the MCP2030 Configuration Registers No ALERT pin High? Yes MCU Configure the MCP3421 ADC for One-Shot and 16 bit Mode MCU in Sleep Mode while the MCP2030 detects input signals No No Button Pressed? Yes Input Signal in? Yes Input Signal Disappeared for > 16 ms? Yes Soft Reset No Meet wake-up filter? MCU wakes up Encode the SW event data SW3: Unlock Door SW4: Lock Door No Yes MCU wakes up Send I2C Read Command to the
MCP2030 Bidirectional Communication Demo Kit User’s Guide Ex: For the transponder ID = 04234567 and acquired RSSI value = C6CF Transponder ID = 04-23-45-67 = 00000100-00100011-01000101-01100111 Acquired RSSI Data = C6-CF = 11000110-11001111 Ex: Transmitting data with LSB first: 0010000P-11000100P-10100010P-11100110P-01100011P-1110011P Where P = Odd Parity bit of the byte Transponder ID (32 bits + 4 Parity bits) RSSI Data + Parity (16 bits + 2 Parity bits) Header: 4 ms high duration + 500 µs low duratio
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Appendix A. Schematic and Layouts A.1 INTRODUCTION This appendix contains the schematics and PCB layouts for the MCP2030 Bidirectional Communication Demo Kit.
MCP2030 Bidirectional Communication Demo Kit User’s Guide TRANSPONDER DEMO BOARD - SCHEMATIC M A.2 DS51637A-page 20 © 2006 Microchip Technology Inc.
MCP2030 Bidirectional Communication Demo Kit User’s Guide A.3 TRANSPONDER DEMO BOARD - TOP LAYER AND SILK SCREEN A.4 TRANSPONDER DEMO BOARD - BOTTOM LAYER © 2006 Microchip Technology Inc.
MCP2030 Bidirectional Communication Demo Kit User’s Guide BASE STATION DEMO BOARD - SCHEMATIC (PAGE 1) M A.5 DS51637A-page 22 © 2006 Microchip Technology Inc.
MCP2030 Bidirectional Communication Demo Kit User’s Guide BASE STATION DEMO BOARD - SCHEMATIC (PAGE 2) M A.6 © 2006 Microchip Technology Inc.
MCP2030 Bidirectional Communication Demo Kit User’s Guide A.7 BASE STATION DEMO BOARD - TOP LAYER AND SILK SCREEN A.8 BASE STATION DEMO BOARD - BOTTOM LAYER DS51637A-page 24 © 2006 Microchip Technology Inc.
MCP2030 BIDIRECTIONAL COMMUNICATION DEMO KIT USER’S GUIDE Appendix B. Bill of Materials (BOM) B.1 INTRODUCTION This appendix contains the bill of materials of the MCP2030 Bidirectional Communication Demo Kit.
MCP2030 Bidirectional Communication Demo Kit User’s Guide TABLE B-1: Qty TRANSPONDER DEMO BOARD - BILL OF MATERIALS (CONTINUED) Reference Designator Description Manufacturer Part Number 1 R3 RES 221 OHM 1/10W 1% 0603 SMD Panasonic - ECG 1 R4 RES 10.0 OHM 1/10W 1% 0603 SMD Panasonic - ECG ERJ-3EKF10R0V 4 R5, R7, R10, R12 RES 10.0K OHM 1/10W 1% 0603 SMD Panasonic - ECG ERJ-3EKF1002V 2 R6, R8 RES 475 OHM 1/10W 1% 0603 SMD Panasonic - ECG ERJ-3EKF4750V 1 R9 RES 10.
MCP2030 Bidirectional Communication Demo Kit User’s Guide TABLE B-2: Qty 2 BASE STATION DEMO BOARD - BILL OF MATERIALS (CONTINUED) Reference Designator C17, C18, Description Manufacturer Part Number CAP 1UF 16V CERAMIC 0805 X5R Panasonic - ECG ECJ-2FB1C105K 2 C22, C23 CAP CERAMIC 20PF 50V NP0 1206 Yageo Corporation CC1206JRNPO9BN200 1 D1 DIODE ULTRA FST SW 600V 1A DO-41 Diodes Inc UF1005-T 2 D2, D3 LED 2X3MM 565NM GRN WTR CLR SMD Lumex Opto/Components Inc SML-LX23GC-TR 4 D4, D9, D10
MCP2030 Bidirectional Communication Demo Kit User’s Guide TABLE B-2: Qty BASE STATION DEMO BOARD - BILL OF MATERIALS (CONTINUED) Reference Designator Description Manufacturer Part Number 2 R28,R29 RES 4.75K OHM 1/4W 1% 1206 SMD Panasonic - ECG ERJ-8ENF4751V 2 S1, S2 SWITCH LT TOUCH 6X3.
MCP2030 Bidirectional Communication Demo Kit User’s Guide NOTES: © 2006 Microchip Technology Inc.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.