hcs512 Microchip Technology Inc., hcs512 Datasheet - Page 3

no-image

hcs512

Manufacturer Part Number
hcs512
Description
Keeloq Code Hopping Decoder Keeloq Code Hopping Decoder
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
hcs512-I/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
hcs512-I/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
hcs512-I/SN
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
hcs512-I/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
hcs512/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
hcs512/SO
Manufacturer:
MICROCHIP
Quantity:
12 000
FIGURE 1-1:
The 16-bit synchronization counter is the basis behind
the transmitted code word changing for each transmis-
sion; it increments each time a button is pressed. Due
to the code hopping algorithm’s complexity, each incre-
ment of the synchronization value results in greater
than 50% of the bits changing in the transmitted code
word.
Figure 1-2 shows how the key values in EEPROM are
used in the encoder. Once the encoder detects a button
press, it reads the button inputs and updates the syn-
chronization counter. The synchronization counter and
crypt key are input to the encryption algorithm and the
output is 32 bits of encrypted information. This data will
change with every button press, its value appearing
externally to ‘randomly hop around’, 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 serial number to form the code word transmitted to
the receiver. The code word format is explained in
greater detail in Section 8.2.
FIGURE 1-2:
2002 Microchip Technology Inc.
EEPROM Array
Serial Number
Sync Counter
Production
Programmer
Crypt Key
Manufacturer’s
Code
CREATION AND STORAGE OF CRYPT KEY DURING PRODUCTION
BUILDING THE TRANSMITTED CODE WORD (ENCODER)
Serial Number
Transmitter
Generation
Algorithm
Key
Encryption
Algorithm
K
Button Press
Information
EE
L
OQ
Crypt
Key
A receiver may use any type of controller as a decoder,
but it is typically a microcontroller with compatible firm-
ware that allows the decoder to operate in conjunction
with an HCS512 based transmitter. Section 5.0
provides detail on integrating the HCS512 into a sys-
tem.
A transmitter must first be ‘learned’ by the receiver
before its use is allowed in the system. Learning
includes calculating the transmitter’s appropriate crypt
key, decrypting the received hopping code and storing
the serial number, synchronization counter value and
crypt key in EEPROM.
In normal operation, each received message of valid
format is evaluated. The serial number is used to deter-
mine if it is from a learned transmitter. If from a learned
transmitter, the message is decrypted and the synchro-
nization counter is verified. Finally, the button status is
checked to see what operation is requested. Figure 1-3
shows the relationship between some of the values
stored by the receiver and the values received from
the transmitter.
Transmitted Information
Serial Number
HCS512
EEPROM Array
Serial Number
Encrypted Data
Crypt Key
Sync Counter
32 Bits
HCS512
.
.
.
DS40151D-page 3

Related parts for hcs512