AN1322. PIC MCU KEELOQ /AES Receiver System with Acknowledge TRANSMITTER LEARNING INTRODUCTION SYSTEM OVERVIEW RECEIVER FUNCTIONALITY

Similar documents
AN1328. KEELOQ with XTEA Microcontroller-Based Transmitter with Acknowledge INTRODUCTION DUAL TRANSMITTER OPERATION BACKGROUND RECEIVER ACKNOWLEDGE

AN1321. KEELOQ Microcontroller-Based Transmitter with Acknowledge DUAL TRANSMITTER OPERATION INTRODUCTION RECEIVER ACKNOWLEDGE SAMPLE BUTTONS/WAKE-UP

TC53. Voltage Detector. Not recommended for new designs Please use MCP111/2 TC53. General Description: Features: Typical Applications:

MTCH810. Haptics Controller Product Brief. Description: Features: Pin Description: Package Type: DESCRIPTION MTCH810

AN1476. Combining the CLC and NCO to Implement a High Resolution PWM BACKGROUND INTRODUCTION EQUATION 2: EQUATION 1: EQUATION 3:

MTCH112. Dual Channel Proximity Touch Controller Product Brief FEATURES PACKAGE TYPE SOIC, DFN GENERAL DESCRIPTION 8-PIN SOIC, DFN DIAGRAM FOR MTCH112

AN1312. Deviations Sorting Algorithm for CSM Applications INTRODUCTION DESCRIPTION. The Second Concept Most Pressed Button

AN1085. Using the Mindi Power Management Simulator Tool INTRODUCTION ACCESSING MINDI ON MICROCHIP S WEB SITE

TABLE 1: REGISTERS ASSOCIATED WITH SLOPE COMPENSATOR MODULE

AN763. Latch-Up Protection For MOSFET Drivers INTRODUCTION. CONSTRUCTION OF CMOS ICs PREVENTING SCR TRIGGERING. Grounds. Equivalent SCR Circuit.

Low Cost Single Trip Point Temperature Sensor. Part Number Voltage Operation Package Ambient Temperature

AN1291. Low-Cost Shunt Power Meter using MCP3909 and PIC18F25K20 OVERVIEW HARDWARE DESCRIPTION

TC620/TC621. 5V, Dual Trip Point Temperature Sensors. Features: Package Type. Applications: Device Selection Table. General Description:

PIC16F506. PIC16F506 Rev. C0 Silicon Errata and Data Sheet Clarification. Silicon Errata Issues

TB3121. Conducted and Radiated Emissions on 8-Bit Mid-Range Microcontrollers INTRODUCTION ELECTROMAGNETIC COMPATIBILITY CONDUCTED EMISSIONS

MCP2515. MCP2515 Rev. B Silicon Errata. 3. Module: CAN Module. 1. Module: Oscillator Module. 4. Module: CAN Module. 2. Module: RAM Module

New Peripherals Tips n Tricks

PIC16F506. PIC16F506 Rev. B1 Silicon Errata and Data Sheet Clarification. Silicon Errata

2, 5 and 8-Channel Proximity/Touch Controller Product Brief

Low-Power Techniques for LCD Applications RTH = (2R*R)/(2R+R) RTH = 2R 2 /3R RTH = 2R/3 RSW = 4.7K RCOM = 0.4K

TC mA CMOS LDO TC1108. General Description. Features. Applications. Typical Application. Device Selection Table. Package Type SOT-223

PIC16(L)F72X Family Silicon Errata and Data Sheet Clarification

TC1272A. 3-Pin Reset Monitor. General Description. Features. Applications. Package Type. Typical Application Circuit TC1272A TC1272A.

MIC5528. High Performance 500 ma LDO in Thin and Extra Thin DFN Packages. General Description. Features. Applications.

TC4426AM/TC4427AM/TC4428AM

High-Speed N-Channel Power MOSFET

Voltage Detector. TC54VC only

PIC16F87/88. PIC16F87/88 Rev. B1 Silicon Errata. 1. Module: Internal RC Oscillator

PIC18F2420/2520/4420/4520

AN1213. Powering a UNI/O Bus Device Through SCIO INTRODUCTION CIRCUIT FOR EXTRACTING POWER FROM SCIO

TCM828/TCM829. Switched Capacitor Voltage Converters. Features. Description. Applications. Package Type. Typical Application Circuit

TC mA Fixed Output CMOS LDO. Features. Package Type. Applications. Device Selection Table. General Description. Typical Application

High-Speed N-Channel Power MOSFET. PDFN 5 x 6 S

PIC18F24J10/25J10/44J10/45J10

TC59. Low Dropout, Negative Output Voltage Regulator TC59. Features. General Description. Applications. Functional Block Diagram

AN1332. Current Sensing Circuit Concepts and Fundamentals CURRENT SENSING RESISTOR INTRODUCTION. Description. Microchip Technology Inc.

TC1240/TC1240A. Positive Doubling Charge Pumps with Shutdown in a SOT-23 Package. Features. General Description. Applications

TB003. An Introduction to KEELOQ Code Hopping INTRODUCTION. Remote Control Systems. The Solution. Code Scanning. Code Grabbing

TC7662A. Charge Pump DC-to-DC Converter. Features. Package Type. General Description. Applications. Device Selection Table. 8-Pin PDIP 8-Pin CERDIP

High-Speed N-Channel Power MOSFET

High-Speed N-Channel Power MOSFET

PIC16F818/819. PIC16F818/819 Rev. B0 Silicon Errata Sheet

PIC12(L)F1822/PIC16(L)F1823

TC57. Line Regulator Controller TC57. General Description. Features. Applications. Functional Block Diagram. Device Selection Table.

TC682. Inverting Voltage Doubler. General Description: Features: Applications: Functional Block Diagram. Device Selection Table. Package Type TC682

AN1292 Tuning Guide 1.1 SETTING SOFTWARE PARAMETERS. STEP 1 Fill in the tuning_params.xls Excel spreadsheet with the following parameters:

AN1259. KEELOQ Microcontroller-based Code Hopping Encoder INTRODUCTION DUAL ENCODER OPERATION TRANSMITTER OVERVIEW FUNCTIONAL INPUTS AND OUTPUTS

TC1047/TC1047A. Precision Temperature-to-Voltage Converter. General Description. Applications. Block Diagram. Features.

PIC32MX450F256L 100-pin to 100-pin TQFP USB Plug-In Module (PIM) Information Sheet

Programmable Gain Amplifier (PGA)

TC32M. ECONOMONITOR 3-Pin System Supervisor with Power Supply Monitor and Watchdog. Features: General Description: Applications:

TC7660. Charge Pump DC-to-DC Voltage Converter. Package Types. Features. General Description. Applications. Functional Block Diagram TC7660

AN1266. KEELOQ with XTEA Microcontroller-Based Code Hopping Encoder INTRODUCTION DUAL ENCODER OPERATION BACKGROUND FUNCTIONAL INPUTS AND

TC1275/TC1276/TC1277. Obsolete Device. 3-Pin Reset Monitors for 3.3V Systems. Features. General Description. Applications. Device Selection Table

PIC24FJ128GC010 FAMILY

RE46C100. Piezoelectric Horn Driver Circuit HORNS HRNEN HORNB. Package Types. Features: General Description: Functional Block Diagram

TC mA CMOS LDO with Shutdown ERROR Output and Bypass. Features. General Description. Applications. Typical Application. Device Selection Table

TB3126. PIC16(L)F183XX Data Signal Modulator (DSM) Technical Brief INTRODUCTION

DN2470. N-Channel, Depletion-Mode, Vertical DMOS FET. Features. Description. Applications

TC620/TC621. 5V, Dual Trip Point Temperature Sensors. Features: Package Type. Applications: Device Selection Table. General Description:

PIC16F/LF1826/1827 Family Silicon Errata and Data Sheet Clarification. (1) Revision ID for Silicon Revision (2)

TC1121. Obsolete Device. 100mA Charge Pump Voltage Converter with Shutdown. Features: Package Type. Applications: General Description:

TB090. MCP2030 Three-Channel Analog Front-End Device Overview INTRODUCTION MCP2030. Youbok Lee, Ph.D. Microchip Technology Inc.

AN1739. Improving Battery Run Time with Microchip s 4 µa Quiescent Current MCP16251/2 Boost Regulator PRIMARY BATTERY CONSIDERATIONS INTRODUCTION

TC Bit Digital-to-Analog Converter with Two-Wire Interface TC1320. General Description. Features. Applications.

High-Precision 16-Bit PWM Technical Brief MODE<1:0> PWM Control Unit. Offset Control OFM<1:0> E R U/D PWMxTMR. PHx_match. Comparator.

PIC12LF1840T39A. PIC12LF1840T39A Product Brief. High-Performance RISC CPU: Low-Power Features: RF Transmitter: Flexible Oscillator Structure:

Configurable Logic Cell Tips n Tricks

Section 45. High-Speed Analog Comparator

1.5A Dual High-Speed Power MOSFET Drivers. Temp. Range

MCP1401/02. Tiny 500 ma, High-Speed Power MOSFET Driver. General Description. Features. Applications. Package Types

TB3103. Buck Converter Using the PIC16F753 Analog Features PERFORMANCE SPECIFICATIONS INTRODUCTION ELECTRICAL SPECIFICATIONS

Integrated Temperature Sensor & Brushless DC Fan Controller with FanSense Detect & Over-Temperature

HV825. High-Voltage EL Lamp Driver IC. General Description. Features. Applications. Typical Application Circuit

DN2450. N-Channel, Depletion-Mode, Vertical DMOS FET. Features. Description. Applications

PIC16F818/819. PIC16F818/819 Rev. A4 Silicon Errata Sheet. 2. Module: PORTB FIGURE 1: 1. Module: Internal RC Oscillator

TC7660S. Super Charge Pump DC-to-DC Voltage Converter. Features: Package Types. General Description: Applications:

9A High-Speed MOSFET Drivers. 8-Pin 6x5 DFN-S (2) INPUT EP 9

MCP1406/07. 6A High-Speed Power MOSFET Drivers. General Description. Features. application.

TC913A/TC913B. Dual Auto-Zeroed Operational Amplifiers. Features: Package Type. General Description: Applications: Device Selection Table

MTD6501C/D/G. 3-Phase Brushless DC Sinusoidal Sensorless Fan Motor Driver. Features. Description. Package Types

PIC16(L)F1526/1527 Family Silicon Errata and Data Sheet Clarification DEV<8:0>

GS004. Driving an ACIM with the dspic DSC MCPWM Module INTRODUCTION MCPWM MODULE FILTERED BY THE MOTOR'S WINDINGS

RE46C317/18. Piezoelectric Horn Driver with Boost Converter. Features: Description: Applications: Package Types. Typical Application

PIC18F1XK22/LF1XK22 Family Silicon Errata and Data Sheet Clarification

TC1070/TC1071/TC ma, 100 ma and 150 ma Adjustable CMOS LDOs with Shutdown. Features: Description: Applications: Typical Application

PIC16(L)F1782/ Pin 8-Bit Advanced Analog Flash Microcontroller Product Brief. High-Performance RISC CPU: Analog Peripheral Features:

TC1410/TC1410N. 0.5A High-Speed MOSFET Drivers. Features. General Description. Package Type. Applications. 8-Pin MSOP/PDIP/SOIC TC1410N TC1410

ATA6570. ATA6570 Silicon Errata and Data Sheet Clarification. 2. Module: CAN Bus Wake-Up Detection System Reinitialization

TC1232. Microprocessor Monitor. General Description: Features: Block Diagram. Package Types. Device Features

TB3073. Implementing a 10-Bit Digital Potentiometer using a Quad 8-Bit Digital Potentiometer Technical Brief INTRODUCTION.

ISOLATOR UNIT SPECIFICATION Isolator Unit DANGER INTRODUCTION DEVICE SUPPORT HARDWARE SETUP

dspic33ep256mc506 Plug-In Module (PIM) Information Sheet for Internal Op amp Configuration

AN1202. Capacitive Sensing with PIC10F IMPLEMENTATION INTRODUCTION + - BASIC OSCILLATOR SCHEMATIC. Microchip Technology Inc.

PIC12F1822/16F182X. 8/14/20-Pin 8-Bit Flash Microcontroller Product Brief. High-Performance RISC CPU: Peripheral Features:

PIC12(L)F1501/PIC16(L)F150X

AN2092. Using the Temperature Indicator Module INTRODUCTION. Constants. Application Limits. Equations. Variables. Microchip Technology Inc.

MCP16301 High Voltage Buck-Boost Demo Board User s Guide

PIC12(L)F1571/2 Family Silicon Errata and Data Sheet Clarification

PIC16F716 Silicon Errata and Data Sheet Clarification. (1) Revision ID for Silicon Revision (2)

Transcription:

PIC MCU KEELOQ /AES Receiver System with Acknowledge Author: INTRODUCTION Cristian Toma Microchip Technology Inc. A number of remote access applications rely on the user verifying if the access point (gate, door, vehicle, etc.) has been properly closed or opened. This application note describes a system by which the access point (receiver) responds back to the remote transmitter with a status message. SYSTEM OVERVIEW The system is implemented using the KEELOQ 3 base station board. To add the described functionality to the KEELOQ 3 Development Kit, an add-on kit is used, consisting of a PICtail daughter board module, which features the MRF49XA transceiver and a key fob transmitter module. Both of these modules feature an integrated PCB loop antenna. The system uses a two-way key fob with open and close functions, which simulates the basic functions of a garage door or vehicle lock system. In addition, the key fob has the ability to query the receiver status over-the-air and display the status via the onboard LEDs. The KEELOQ 3 receiver decodes the key fob transmission and displays the command issued by the key fob. The receiver will respond back to the key fob with the operation result (opened or closed). TRANSMITTER LEARNING The receiver will respond only to known transmitters. This means that, before a transmitter can be used with a receiver, it must be learned. By learning, we define the process by which the receiver gathers and stores information about a transmitter. This will typically include the serial number and the synchronization counter. If the receiver has this information, then it will be able to generate the key required to decrypt the received message. Learning is done in two phases. The first phase needs a simple press of a button on the transmitter. This is to get information regarding the serial number and the synchronization counter. A second transmission is required in order to check the validity of the first transmission. If the two synchronization values are consecutive numbers, the transmitter is valid and its data is stored into the EEPROM transmitter database. Starting with the next transmission, the receiver will respond to the transmitter commands. Please note that the receiver will not send any Acknowledge during the learning phase, since the receiver has not yet learned the transmitter. If the automatic retry is enabled, then the second button press is not necessary, since the transmitter will retry automatically. If the feature is not enabled, a second button press is necessary. RECEIVER FUNCTIONALITY The receiver implements the main part of the system. It receives commands from the transmitter and sends back Acknowledges or response messages. It implements standard Open and Close functions, plus an additional Status function, which reports back to the transmitter the last known status of the receiver. Upon receiving a data packet from the transmitter, the receiver will first verify if it is a known (learned) transmitter. If it is a known transmitter, the data packet is then decrypted. The receiver will acknowledge the received command or send a response. 2010-2011 Microchip Technology Inc. DS01322B-page 1

FIGURE 1: RECEIVER FIRMWARE FLOWCHART START Init Device Setup RF Transceiver RF MSG Received? NO YES Learn mode? YES KEELOQ w/aes NO Decode Message Learn Routine Send Back Acknowledge Display on LCD RECEIVER ACKNOWLEDGE After receiving a valid packet, the receiver will respond with another data packet. This will consist of either an Acknowledge or a response message. The receiver will send an Acknowledge message to commands, such as OPEN or CLOSE. The command that reads the last known status will cause the receiver to respond with the appropriate information, such as (successfully) OPENED or CLOSED. The receiver must respond to the transmitter as soon as possible. After the transmitter has sent a command, it goes to Reception TABLE 1: Non-encrypted Portion 32 bits Serial Code AES KNOWLEDGE FORMAT Function 16 bits Serial 32 bits mode and waits for a period of time for a valid response. As soon as the receiver decodes and validates the data packet, it sends back an Acknowledge packet to the transmitter. If a valid response is received by the transmitter, it is displayed using the onboard LEDs. It is important that this wait period be as short as possible, because keeping the transceiver in Reception mode adds to the overall power consumption. The time needed for encryption/decryption must also be taken into account. The Acknowledge data format is slightly different from the one used by the transmitter (Table 1). Encrypted Portion User Value 32 bits Counter 32 bits CRC 16 bits DS01322B-page 2 2010-2011 Microchip Technology Inc.

WORK IN PROGRESS STATUS INDICATION After the transmission of a packet, the transmitter will wait for acknowledge within a specified time period. If it does not receive any Acknowledge from the receiver (the base unit), it will resend a new packet (if this feature is activated). There are times when the receiver needs time to complete an action (such as a garage door open/close, or an electric door lock). Thus, the Acknowledge cannot be sent immediately, since the receiver needs time to complete the action. During this time, the receiver will send a work in progress status indication to the transmitter. Upon receiving this status indication, the transmitter will prolong the time it waits for acknowledge before going to Sleep. After the open/close operation has completed, the receiver will send an OPEN/CLOSE Acknowledge. For a more intuitive representation, refer to Figure 2. FIGURE 2: WORK IN PROGRESS STATUS INDICATION Transmitter Tx Rx ACK Wait 1s ACK Wait 1s ACK Sleep Close door Busy Busy Done! Door closed. Receiver Rx Tx Tx Tx Rx MRF49XA RADIO CONFIGURATION The radio link parameters in the MRF49XA are set to a default configuration that is adequate for the majority of applications. The baud rate is 9600 bps, using an FSK modulation with deviation of 60 khz. For a more detailed description on how to setup the MRF49xA, please refer to AN1252, Interfacing the MRF49XA Transceiver to PIC Microcontrollers. The following considerations were made to select the MRF49XA Configuration Words. The configuration considers the use of standard 30ppm crystal accuracy. Such a crystal will generate a frequency error of: EQUATION 1: Δf 0 The deviation can now be calculated: EQUATION 2: 30ppm = ---------------- 10 6 * 915 * 10 6 = 27.45kHz Δf FSK = 9600 + 2 * Δf 0 + 10 * 10 3 For the above values, we get a result of 74.5 khz. The closest deviation supported by the MRF49XA transceiver is 75 khz. For a maximum power output and a 75 Hz deviation, a value of 0x9840 is loaded into the TXCREG register. Now, we can calculate the baseband bandwidth: EQUATION 3: BBBW = deviation*2 10 * 10 3 Hz For the above values, we get a result of 140 khz. Picking a BBBW of 200 khz, an RSSI of minus 97 dbm, and a maximum LNA gain, we get a value of 0x9481 to be loaded into the RXCREG register. This code to configure the transceiver is contained in module MRF49XA.c. KEY GENERATION The KEELOQ encryption algorithm uses a 128-bit key to encrypt/decrypt 128 bits of message. The key generation algorithm uses the decryption routines to generate the key. To generate the encryption key, the manufacturer key and the serial number (received in plain text) are used as inputs to the receiver. The serial number is padded with 0xA5A5A5A5 and 0x5A5A5A5A (Equation 4). 2010-2011 Microchip Technology Inc. DS01322B-page 3

EQUATION 4: KEY = AESDescription( 0xA5A5A5A5 0x5A5A5A5A SerialCode 0x00000000 ) RECEIVER I 2 C COMMAND INTERFACE A standard I 2 C communication is provided. This allows the receiver to be controlled by an external master device. This allows the receiver to be integrated into a larger automation system. The receiver acts as a slave device on the I 2 C bus. A set of I 2 C registers is implemented to read and write data to the receiver (Table 2). TABLE 2: I 2 C REGISTERS IMPLEMENTED BY THE RECEIVER Register 0x01 0x02 0x03 0x04 Description The last received data packet (decoded). Sets the On/Off status of the LEDs. The length of the last received data packet. Used to determine the type of encryption used. Last error. This indicates the result of the most recent operation. Typical values will contain information such as: valid packet received, learn operation successful, learn operation fail, etc. FIRMWARE MODULES The following files make up the KEELOQ receiver firmware: - main.c: this file contains the main loop routine, as well as the wake-up, debounce, read configuration, load transmit buffer and transmit routines. - packet.c: this file loads the transmit buffer according to the encryption algorithm. - MRF49XA.c: this file contains all the functions that control the MRF49XA transceiver. - counter.c: this file loads the synchronization counter, checks its validity and automatically corrects any errors. - encryption.c: this file contains the functions that provide the encryption algorithm. Because of statutory export license restrictions on encryption software, the source code listings for the AES algorithms are not provided here. These applications may be ordered from Microchip Technology Inc. through its sales offices, or through the corporate web site: www.microchip.com. FIRMWARE CONFIGURATION The transmitter firmware is fully configurable. The encryption algorithm can be changed very easily. All the necessary functions and definitions are contained in the encryption.c and encryption.h modules. Changing the encryption algorithm is as simple as replacing the above module and recompiling the source code. AES (Advanced Encryption Standard) was developed in the 1990 s to replace the widely-used DES. AES algorithm is also called the Rijndael algorithm, after its designers. AES is currently adopted by the National Institute of Standards and Technology. Rijndael/AES is a symmetric block cipher that utilizes a single key to encrypt data. The implementation of AES in this application note is based on a 16-byte block of data and a 16-byte key size, as described in application note AN1044, Data Encryption Routines for PIC24 and dspic Devices. CONCLUSION The proposed transmitter/receiver system enables a two-way communication for the Remote Keyless Entry systems. The receiver acknowledges every command by sending back data to the key fob transmitter. The system is very flexible and allows different encryption algorithms to be used within the same receiver. The interface with the radio transceiver is also flexible, allowing easy modifications to suit different devices. The receiver is also controllable via the I 2 C port, enabling the receiver to be controlled by an external controller. Also, the firmware is modular, allowing fast new encryption algorithms implementation, adding new features and changing for another radio transceiver. DS01322B-page 4 2010-2011 Microchip Technology Inc.

ADDITIONAL INFORMATION Microchip s Secure Data Products are covered by some or all of the following: Code hopping encoder patents issued in European countries and U.S.A. Secure learning patents issued in European countries, U.S.A. and R.S.A. REVISION HISTORY Revision B (June 2011) Added new section Additional Information Minor formatting and text changes were incorporated throughout the document 2010-2011 Microchip Technology Inc. DS01322B-page 5

NOTES: DS01322B-page 6 2010-2011 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. 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, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART, PIC 32 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. 2010-2011, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. ISBN: 978-1-61341-255-8 Microchip received ISO/TS-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company s quality system processes and procedures are for its PIC MCUs and dspic DSCs, KEELOQ 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. 2010-2011 Microchip Technology Inc. DS01322B-page 7

Worldwide Sales and Service AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Cleveland Independence, OH Tel: 216-447-0464 Fax: 216-447-0643 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Farmington Hills, MI Tel: 248-538-2250 Fax: 248-538-2260 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 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 Toronto Mississauga, Ontario, Canada Tel: 905-673-0699 Fax: 905-673-6509 ASIA/PACIFIC Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2401-1200 Fax: 852-2401-3431 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 China - Beijing Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 China - Chongqing Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 China - Hangzhou Tel: 86-571-2819-3180 Fax: 86-571-2819-3189 China - Hong Kong SAR Tel: 852-2401-1200 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8203-2660 Fax: 86-755-8203-1760 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 ASIA/PACIFIC India - Bangalore Tel: 91-80-3090-4444 Fax: 91-80-3090-4123 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-2566-1512 Fax: 91-20-2566-1513 Japan - Yokohama Tel: 81-45-471-6166 Fax: 81-45-471-6122 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-6578-300 Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 UK - Wokingham Tel: 44-118-921-5869 Fax: 44-118-921-5820 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049 05/02/11 DS01322B-page 8 2010-2011 Microchip Technology Inc.