HCS361 HCS361 KEELOQ Code Hopping Encoder FEATURES DESCRIPTION Security The HCS361 is a code hopping encoder designed for Programmable 28/32-bit serial number secure Remote Keyless Entry (RKE) systems. The Programmable 64-bit encryption key HCS361 utilizes the KEELOQ code hopping technology, Each transmission is unique which incorporates high security, a small package 67-bit transmission code length outline and low cost, to make this device a perfect 32-bit hopping code solution for unidirectional remote keyless entry sys- 35-bit fixed code (28/32-bit serial number, tems and access control systems. 4/0-bit function code, 1-bit status, 2-bit CRC) Encryption keys are read protected PACKAGE TYPES PDIP, SOIC Operating 2.0-6.6V operation 8 S0 VDD 1 Four button inputs 7 LED 2 - 15 functions available S1 Selectable baud rate 6 DATA 3 S2 Automatic code word completion Battery low signal transmitted to receiver VSS S3 4 5 Nonvolatile synchronization data PWM and VPWM modulation Other HCS361 BLOCK DIAGRAM Easy to use programming interface Oscillator Power On-chip EEPROM latching and On-chip oscillator and timing components Controller RESET circuit switching Button inputs have internal pull-down resistors LED Current limiting on LED output LED driver Minimum component count Enhanced Features Over HCS300 EEPROM Encoder 48-bit seed vs. 32-bit seed 2-bit CRC for error detection DATA 28/32-bit serial number select 32-bit shift register Two seed transmission methods PWM and VPWM modulation VSS Wake-up signal in VPWM mode Button input port IR Modulation mode VDD Typical Applications S S S S 3 2 1 0 The HCS361 is ideal for Remote Keyless Entry (RKE) applications. These applications include: DESCRIPTION Automotive RKE systems Automotive alarm systems The HCS361 combines a 32-bit hopping code Automotive immobilizers generated by a nonlinear encryption algorithm, with a Gate and garage door openers 28/32-bit serial number and 7/3 status bits to create a Identity tokens 67-bit transmission stream. Burglar alarm systems 2002 Microchip Technology Inc. DS40146E-page 1HCS361 The crypt key, serial number and configuration data are Learn Learning involves the receiver calculating stored in an EEPROM array which is not accessible via the transmitters appropriate crypt key, decrypting any external connection. The EEPROM data is pro- the received hopping code and storing the serial grammable but read protected. The data can be veri- number, synchronization counter value and crypt fied only after an automatic erase and programming key in EEPROM. The KEELOQ product family facil- operation. This protects against attempts to gain itates several learning strategies to be imple- access to keys or manipulate synchronization values. mented on the decoder. The following are The HCS361 provides an easy-to-use serial interface examples of what can be done. for programming the necessary keys, system parame- - Simple Learning ters and configuration data. The receiver uses a fixed crypt key, common to all components of all systems by the same manufacturer, to decrypt the received code 1.0 SYSTEM OVERVIEW words encrypted portion. Key Terms - Normal Learning The receiver uses information transmitted The following is a list of key terms used throughout this during normal operation to derive the crypt data sheet. For additional information on KEELOQ and key and decrypt the received code words Code Hopping, refer to Technical Brief 3 (TB003). encrypted portion. RKE - Remote Keyless Entry - Secure Learn Button Status - Indicates what button input(s) The transmitter is activated through a special activated the transmission. Encompasses the 4 button combination to transmit a stored 60-bit button status bits S3, S2, S1 and S0 (Figure 3-2). seed value used to generate the transmitters Code Hopping - A method by which a code, crypt key. The receiver uses this seed value viewed externally to the system, appears to to derive the same crypt key and decrypt the change unpredictably each time it is transmitted. received code words encrypted portion. Code word - A block of data that is repeatedly Manufacturers code A unique and secret 64- transmitted upon button activation (Figure 3-2). bit number used to generate unique encoder crypt Transmission - A data stream consisting of keys. Each encoder is programmed with a crypt repeating code words (Figure 8-1). key that is a function of the manufacturers code. Crypt key - A unique and secret 64-bit number Each decoder is programmed with the manufac- used to encrypt and decrypt data. In a symmetri- turer code itself. cal block cipher such as the KEELOQ algorithm, The HCS361 code hopping encoder is designed specif- the encryption and decryption keys are equal and ically for keyless entry systems primarily vehicles and will therefore be referred to generally as the crypt home garage door openers. The encoder portion of a key. keyless entry system is integrated into a transmitter, Encoder - A device that generates and encodes carried by the user and operated to gain access to a data. vehicle or restricted area. The HCS361 is meant to be Encryption Algorithm - A recipe whereby data is a cost-effective yet secure solution to such systems, scrambled using a crypt key. The data can only be requiring very few external components (Figure 2-1). interpreted by the respective decryption algorithm Most low-end keyless entry transmitters are given a using the same crypt key. fixed identification code that is transmitted every time a Decoder - A device that decodes data received button is pushed. The number of unique identification from an encoder. codes in a low-end system is usually a relatively small Decryption algorithm - A recipe whereby data number. These shortcomings provide an opportunity scrambled by an encryption algorithm can be for a sophisticated thief to create a device that grabs unscrambled using the same crypt key. a transmission and retransmits it later, or a device that quickly scans all possible identification codes until the correct one is found. The HCS361, on the other hand, employs the KEELOQ code hopping technology coupled with a transmission length of 66 bits to virtually eliminate the use of code grabbing or code scanning. The high security level of the HCS361 is based on the patented KEELOQ technol- ogy. A block cipher based on a block length of 32 bits and a key length of 64 bits is used. The algorithm obscures the information in such a way that even if the transmission information (before coding) differs by only one bit from that of the previous transmission, the next DS40146E-page 2 2002 Microchip Technology Inc.