Microchip Technology Inc HCS360-I-SN, HCS360-I-P, HCS360T-I-SN, HCS360T-I-P Datasheet

FEATURES

Security

• Programmable 28/32-bit serial number
• Programmable 64-bit encryption key
• Each transmission is unique
• 67-bit transmission code length
• 32-bit hopping code
• 35-bit fixed code (28/32-bit serial number, 4/0-bit function code, 1-bit status, 2-bit CRC)
• Encryption keys are read protected

Operating

• 2.0-6.6V operation
• Four button inputs
- 15 functions available
• Selectable baud rate
• Automatic code word completion
• Battery low signal transmitted to receiver
• Nonvolatile synchronization data
• PWM and Manchester modulation

Other

• Easy to use programming interface
• On-chip EEPROM
• On-chip oscillator and timing components
• Button inputs have internal pull-down resistors
• Current limiting on LED
• Minimum component count
output
HCS360
Code Hopping Encoder

PACKA GE TYPES

PDIP, SOIC
S0
1 2
S1
3
S2
4
S3

HCS360 BLOCK DIAGRAM

Oscillator
Reset circuit
LED
PWM
LED driver
EEPROM
32-bit shift register
VSS
VDD
HCS360
Controller
Button input port
8
7 6
5
Encoder
DD
V
LED PWM
V
SS
Power latching and switching

Enhanced Features Over HCS300

• 48-bit seed vs. 32-bit seed
• 2-bit CRC for error detection
• 28/32-bit serial number select
• Two seed transmission methods
• PWM and Manchester modulation
• IR modulation mode

Typical Applications

The HCS360 is ideal for Remote Keyless Entry (RKE) applications. These applications include:
• Automotive RKE systems
• Automotive alarm systems
• Automotive immobilizers
• Gate and garage door openers
• Identity tokens
• Burglar alarm systems
EE
OQ
K
L
is a registered trademark of Microchip Technology Inc.
*Code hopping encoder patents issued in Europe, U. S. A., R. S. A. — US: 5,517,187; Europe: 0459781
1996 Microchip Technology Inc.
Preliminary

DESCRIPTION

The HCS360 is a code hopping encoder designed for secure Remote Keyless Entry (RKE) systems. The HCS360 utilizes the K which incorporates high security, a small package outline and low cost, to make this device a perfect solution for unidirectional remote keyless entry systems and access control systems.
The HCS360 combines a 32-bit hopping code generated by a nonlinear encryption algorithm, with a 28/32-bit serial number and 7/3 status bits to create a 67-bit transmission stream. The length of the transmission eliminates the threat of code scanning and the code hopping mechanism makes each transmission unique, thus rendering code capture and resend (code grabbing) schemes useless.
S
S
S1S
2
3
L
code hopping technology,
EE
OQ
DS40152C-page 1
0
HCS360
The encryption key, serial number, and configuration data are stored in EEPROM which is not accessible via any external connection. This makes the HCS360 a very secure unit. The HCS360 provides an easy to use serial interface for programming the necessary security keys, system parameters, and configuration data.
The encryption keys and code combinations are pro­grammable but read-protected. The keys can only be verified after an automatic erase and programming operation. This protects against attempts to gain access to keys and manipulate synchronization values .
The HCS360 operates over a wide voltage range of
2.0V to 6.6V and has four button inputs in an 8-pin configuration. This allows the system designer the freedom to utilize up to 15 functions. The only components required for device operation are the but­tons and RF circuitry, allowing a very low system cost.

1.0 SYSTEM OVERVIEW

1.1 K
• Manufacturer’s code – a 64-bit word, unique to each manufacturer, used to produce a unique encryption key in each transmitter (encoder).
• Encr and programmed into the encoder during the manufacturing process. The encryption key controls the encryption algorithm and is stored in EEPROM on the encoder device.
• Lear learning strategies to be implemented on the decoder. The following are examples of what can be done.
Normal Learning The receiver uses the same information that is
transmitted during normal operation to derive the transmitter’s secret k ey, decrypt the discrimination value and the synchronization counter.
Secure Learn* The transmitter is activated through a special but-
ton combination to transmit a stored 48-bit value (random seed) that can be used for key genera­tion or be part of the key. Transmission of the ran­dom seed can be disabled after learning is completed.
The HCS360 is a code hopping encoder device that is designed specifically for keyless entry systems, primarily for vehicles and home garage door openers. It is meant to be a cost-effective, yet secure solution to such systems. The encoder portion of a keyless entry system is meant to be held by the user and operated to gain access to a vehicle or restricted area. The HCS360 requires very few external components (Figure 2-1).
Most keyless entry systems transmit the same code from a transmitter every time a button is pushed. The relative number of code combinations for a lo w end sys-
*Secure Learning patents pending.
ey Terms
yption Key – a unique 64-bit key generated
n – The HCS product family f acilitates se v eral
tem is also a relatively small number. These shortcomings provide the means for a sophisticated thief to create a device that ‘grabs’ a transmission and retransmits it later or a device that scans all possible combinations until the correct one is found.
The HCS360 employs the K nology and an encryption algorithm to achieve a high level of security. Code hopping is a method by which the code transmitted from the transmitter to the receiver is different every time a button is pushed. This method, coupled with a transmission length of 67 bits, virtually eliminates the use of code ‘grabbing’ or code ‘scanning’.
As indicated in the block diagram on page one, the HCS360 has a small EEPROM array which must be loaded with several parameters before use. The most important of these values are:
• A 28/32-bit serial number which is meant to be unique for every encoder
• An encryption key that is generated at the time of production
• A 16-bit synchronization value
The serial number for each transmitter is programmed by the manufacturer at the time of production. The generation of the encryption key is done using a key generation algorithm (Figure 1-1). Typically, inputs to the key generation algorithm are the serial number of the transmitter or seed value, and a 64-bit manufac­turer’s code. The manufacturer’s code is chosen by the system manufacturer and must be carefully controlled. The manufacturer’s code is a pivotal par t of the overall system security.
The 16-bit synchronization value is the basis for the transmitted code changing for each transmission, and is updated each time a button is pressed. Because of the complexity of the code hopping encryption algo­rithm, a change in one bit of the synchronization value will result in a large change in the actual transmitted code. There is a relationship (Figure 1-2) between the key values in EEPROM and how they are used in the encoder. Once the encoder detects that a button has been pressed, the encoder reads the button and updates the synchronization counter. The synchroniza­tion value is then combined with the encryption key in the encryption algor ithm and the output is 32 bits of encrypted information. This data will change with every button press, hence, it is referred to as the hopping portion of the code word. The 32-bit hopping code is combined with the button information and the serial number to form the code word transmitted to the receiver. The code word format is explained in detail in Section 4.2.
EE
OQ
L
code hopping tech-
DS40152C-page 2
Preliminary
1996 Microchip Technology Inc.
HCS360
Any type of controller may be used as a receiver, but it is typically a microcontroller with compatible firmware that allows the receiver to operate in conjunction with a transmitter, based on the HCS360. Section 7.0 provides more detail on integrating the HCS360 into a total system.
Before a transmitter can be used with a particular receiver, the transmitter must be ‘learned’ by the receiver. Upon learning a transmitter, information is stored by the receiver so that it may track the transmitter, including the serial number of the
transmitter, the current synchronization value for that transmitter and the same encryption key that is used on the transmitter. If a receiv er receives a message of v alid format, the serial number is checked and, if it is from a learned transmitter, the message is decrypted and the decrypted synchronization counter is checked against what is stored. If the synchronization value is verified, then the button status is checked to see what operation is needed. Figure 1-3 shows the relationship between some of the values stored by the receiver and the val­ues received from the transmitter.
FIGURE 1-1: CREATION AND STORAGE OF ENCRYPTION KEY DURING PRODUCTION
HCS360 EEPROM Array
Serial Number
Encryption Key Sync Counter
. .
.
Manufacturer’s
Code
Transmitter
Serial Number or
Seed
Key
Generation
Algorithm
Encryption
Key
FIGURE 1-2: BASIC OPERATION OF TRANSMITTER (ENCODER)
Transmitted Information
EEPROM Array
Decryption Key
Sync Counter
Serial Number
KEELOQ
Encryption
Algorithm
32 Bits of
Encrypted Data
FIGURE 1-3: BASIC OPERATION OF RECEIVER (DECODER)
EEPROM Array
Decryption Key
Sync Counter
Serial Number
Manufacturer Code
Button Press Information
Check for
Match
Serial Number
Received Information
KEELOQ
Decryption
Algorithm
32 Bits of
Encrypted Data
Serial Number
Synchronization
Counter
Button Press
Information
Check for
Match
Decrypted
1996 Microchip Technology Inc.
Preliminary
DS40152C-page 3
HCS360

2.0 DEVICE OPERATION

As shown in the typical application circuits (Figure 2-1), the HCS360 is a simple device to use. It requires only the addition of buttons and RF circuitry for use as the transmitter in your security application. A description of each pin is described in Table 2-1.
FIGURE 2-1: TYPICAL CIRCUITS
VDD
B0
B1
B4 B3 B2 B1 B0
Note: Up to 15 functions can be implemented by
S0
S1 S2 S3
2 button remote control
5 button remote control (Note)
pressing more than one button simulta­neously or by using a suitable diode array.
S0 S1
S2 S3
VDD
LED
PWM
V
SS
VDD
LED
PWM
SS
V
Tx out
VDD
Tx out
The high security level of the HCS360 is based on the patented K
L
technology. A block cipher type of
EE
OQ
encryption algorithm 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) diff ers b y only one bit from the information in the previous transmis­sion, the next coded transmission will be totally differ­ent. Statistically, if only one bit in the 32-bit string of information changes, approximately 50 percent of the coded transmission will change. The HCS360 will wake up upon detecting a switch closure and then delay approximately 6.5 ms for s witch debounce (Figure 2-2). The synchronization information, fixed information, and switch information will be encrypted to form the hopping code. The encrypted or hopping code portion of the transmission will change every time a button is pressed, even if the same button is pushed again. Keeping a button pressed for a long time will result in the same code word being transmitted until the button is released or time-out occurs. A code that has been transmitted will not occur again for more than 64K transmissions. This will provide more than 18 years of typical use before a code is repeated based on 10 oper­ations per day. Overflow information programmed into the encoder can be used by the decoder to extend the number of unique transmissions to more than 128K.
If, in the transmit process, it is detected that a new but­ton(s) has been pressed, a reset will immediately be forced and the code word will not
be completed. Please note that buttons removed will not have any effect on the code word unless no buttons remain pressed in which case the current code word will be completed and the power down will occur.
TABLE 2-1 PIN DESCRIPTIONS
Name
S0 1 Switch input 0 S1 2 Switch input 1 S2 3 Switch input 2/Can also be clock
S3 4 Switch input 3/Clock pin when in
SS
V
PWM 6 Pulse width modulation (PWM)
LED
DD
V
DS40152C-page 4
Pin
Number
Description
pin when in programming mode
programming mode
5 Ground reference connection
output pin/Data pin for programming mode
7 Cathode connection for directly
driving LED
during transmission
8 Positive supply voltage
connection
Preliminary
1996 Microchip Technology Inc.
HCS360
FIGURE 2-2: ENCODER OPERATION
Power Up
(A button has been pressed)
Reset and Debounce Delay
(6.5 ms)
Sample Inputs
Update Sync Info
Encrypt With
Encryption Key
Load Transmit Register
Transmit
Yes
Buttons
Added
?
No
All
Buttons
Released
?
Yes
Complete Code
Word Transmission
Stop
No
3.0 EEPROM MEMORY ORGANIZATION
The HCS360 contains 192 bits (12 x 16-bit words) of EEPROM memory (Table 3-1). This EEPROM array is used to store the encryption key information, synchronization value, etc. Fur ther descriptions of the memory array is given in the following sections.
TABLE 3-1 EEPROM MEMORY MAP
WORD
ADDRESS
0 KEY_0 64-bit encryption
1 KEY_1 64-bit encryption
2 KEY_2 64-bit encryption
3 KEY_3 64-bit encryption
4 SYNC_A 16-bit synchroniza-
5 SYNC_B/SEED_2 16-bit synchroniza-
6 RESERVED Set to 0000H 7 SEED_0 Seed Value (word 0) 8 SEED_1 Seed Value (word 1) 7 SER_0 Device Serial
10 SER_1 Device Serial
11 CONFIG Configuration Word
MNEMONIC DESCRIPTION
key (word 0)
key (word 1)
key (word 2)
key (word 3)
tion value
tion or seed value (word 2)
Number (word 0)
Number (word 1)
3.1 K
The 64-bit encryption key is used by the transmitter to create the encrypted message transmitted to the receiver. This key is created and programmed at the time of production using a key generation algorithm. Inputs to the key generation algorithm are the serial number for the particular transmitter being used and a secret manufacturer’s code. While the key generation algorithm supplied from Microchip is the typical method used, a user may elect to create their own method of key generation. This may be done providing that the decoder is programmed with the same means of creat­ing the key for decryption pur poses. If a seed is used, the seed will also form part of the input to the key gen­eration algorithm.
ey_0 - Key_3 (64-Bit Encryption Ke y)
1996 Microchip Technology Inc.
Preliminary
DS40152C-page 5
HCS360
3.2 SYNC_A,
SYNC_B
(Synchronization Counter)
This is the 16-bit synchronization value that is used to create the hopping code for transmission. This value will be changed after every transmission. A second syn­chronization value can be used to stay synchronized with a second receiver.
3.3 SEED_0,
SEED_1, and SEED_2
(Seed Word)
This is the three word (48 bits) seed code that will be transmitted when seed transmission is selected. This allows the system designer to implement the secure learn feature or use this fixed code word as part of a different key generation/trac king process or purely as a fixed code transmission.
3.4 SER_0,
SER_1
(Encoder Serial Number)
SER_0 and SER_1 are the lower and upper words of the device serial number , respectively. There are 32 bits allocated for the serial number and a selectable config­uration bit determines whether 32 or 28 bits will be transmitted. The serial number is meant to be unique for every transmitter.
TABLE 3-2 CONFIGURATION WORD
Bit Number Symbol Bit Description
0 LNGRD Long Guard Time 1 FAST 0 Baud Rate Selection 2 FAST 1 Baud Rate Selection 3 NU Not Used 4 SEED Seed Transmission enable 5 DELM Delay mode enable 6 TIMO Time out enable 7 IND Independent mode enable 8 USRA0 User bit
9 USRA1 User bit 10 USRB0 User bit 11 USRB1 User bit 12 XSER Extended serial number
enable
13 TMPSD Temporary seed transmis-
sion enable
14 MANCH Manchester/PWM modula-
tion selection
15 OVR Overflow bit
3.5 CONFIG (Configuration Word)
The configuration word is a 16-bit word stored in EEPROM array that is used by the device to store information used during the encryption process, as well as the status of option configurations. Further explanations of each of the bits are described in the following sections.

3.5.1 LNGRD: LONG GUARD TIME LNGRD = 1 selects the encoder to extend the guard

time between code words. This can be used to reduce the average power transmitted over a 100ms window and thereby transmit a higher peak power.

3.5.2 FAST 1, FAST 0 BAUD RATE SELECTION FAST 1 and FAST 0 selects the baud rate according to

Table 3-3.
TABLE 3-3 BAUD RATE SELECTION
E
T
400 0 0 200 0 1 200 1 0 100 1 1
FAST 1 FAST 0
DS40152C-page 6
Preliminary
1996 Microchip Technology Inc.
HCS360

3.5.3 SEED: ENABLE SEED TRANSMISSION If SEED = 0, seed transmission is disabled. The inde-

pendent counter mode can only be used with seed transmission disabled since SEED_2 is shared with the second synchronization counter.
With SEED = 1, seed transmission is enabled. The appropriate button code(s) must be activated to trans­mit the seed information. In this mode, the seed infor-
FIGURE 3-1: SEED TRANSMISSION
All examples shown with XSER = 1, SEED = 1
When S[3:0] = 1001, delay is not acceptable.
CRC+VLOW SER_1 SEED_2 SEED_1 SEED_0
For S[3:0] = 0x3 before delay:
CRC+VLOW SER_1 SER_0 Encrypted Data
mation (SEED_0, SEED_1, and SEED_2) and the upper 12- or 16-bits of the serial number (SER_1) are transmitted instead of the hop code.
Seed transmission is available for function codes (Table 3-7) S[3:0] = 1001 and S[3:0] = 0011(delayed). This takes place regardless of the setting of the IND bit. The two seed transmissions are shown in Figure 3-1.
Data transmission direction
16-bit Data Word 16-bit Counter
Encrypt
Data transmission direction
For S[3:0] = 0011 after delay (Note 1, Note 2):
CRC+VLOW SER_1 SEED_2 SEED_1 SEED_0
Data transmission direction
Note 1: For Seed Transmission, SEED_2 is transmitted instead of SER_0.
2: For Seed Transmission, the setting of DELM has no effect.
1996 Microchip Technology Inc.
Preliminary
DS40152C-page 7
HCS360

3.5.4 DELM: DELAY MODE

If DELM = 1, delay transmission is enabled. A delayed transmission is indicated by inv erting the lower nibble of the discrimination value. The delay mode is primarily for compatibility with previous K DELM = 0, delay transmission is disabled (Table 3-4).
EE
OQ
L
devices. If
TABLE 3-4 TYPICAL DELAY TIMES
Number of Code
FAST1 FAST0
0 0 28 0 1 56 1 0 28 1 1 56
Words before Delay
Mode
TABLE 3-5 TYPICAL TIME-OUT TIMES
FAST 1 FAST 0
0 0 256 0 1 512 1 0 256 1 1 512
Maximum Number of
Code Words Transmitted

3.5.5 TIMO: TIME-OUT If TIMO = 1, the time-out is enabled. Time-out can be

used to terminate accidental continuous transmissions. When time-out occurs, the PWM output is set low and the LED is turned off. Current consumption will be higher than in standby mode since current will flow through the activated input resistors. This state can be exited only after all inputs are taken low. TIMO = 0, will enable continuous transmission (Table 3-5).
Time Before Delay Mode
(MANCH = 0)
2.9s
3.1s
1.5s
1.7s
Time Before Time-out
(MANCH = 0)
26.5s
28.2s
14.1s
15.7s
Time Ref Delay Mode
(MANCH = 1)
5.1s
6.4s
3.2s
4.5s
Time Before Time-out
(MANCH = 1)
46.9
58.4
29.2
40.7
DS40152C-page 8
Preliminary
1996 Microchip Technology Inc.
Loading...
+ 16 hidden pages