HCS515-ISM MICROCHIP [Microchip Technology], HCS515-ISM Datasheet - Page 5
![no-image](/images/no-image-200.jpg)
HCS515-ISM
Manufacturer Part Number
HCS515-ISM
Description
KEELOQ CODE HOPPING DECODER
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.HCS515-ISM.pdf
(28 pages)
3.0
3.1
Before the transmitter and receiver can work together,
the receiver must first ‘learn’ and store the following
information from the transmitter in EEPROM:
• A check value of the serial number
• The encoder decryption key
• The current synchronization counter value
The decoder must also store the manufacturer’s code
(Section 1.2) in protected memory. This code will
typically be the same for all of the decoders in a sys-
tem.
The HCS515 has seven memory slots, and, conse-
quently, can store up to seven transmitters. During the
learn procedure, the decoder searches for an empty
memory slot for storing the transmitter’s information.
When all of the memory slots are full, the decoder will
overwrite the last transmitter’s information. To erase all
of the memory slots at once, use the ERASE_ALL
command (C3H).
3.1.1
Learning is initiated by sending the ACTIVATE_LEARN
(D2H) command to the decoder. The decoder acknowl-
edges reception of the command by pulling the data
line high.
For the HCS515 decoder to learn a new transmitter, the
following sequence is required:
1.
2.
3.
4.
1998 Microchip Technology Inc.
Note 1: Learning
Activate the transmitter once.
Activate the transmitter a second time. (In
secure learning mode, the seed transmission
must be transmitted during the second stage of
learn by activating the appropriate buttons on
the transmitter.)
The HCS515 will transmit a learn-status string,
indicating that the learn was successful.
The decoder has now learned the transmitter.
Repeat steps 1-3 to learn up to seven
transmitters
2: If more than seven transmitters are learned,
DECODER OPERATION
Learning a Transmitter to a Receiver
(Normal or Secure Learn)
LEARNING PROCEDURE
nonsequential codes were received or if two
acceptable codes were not decoded within
30 seconds.
the new transmitter will replace the last
transmitter learned. It is, therefore, not pos-
sible
repeatedly learning new transmitters. To
remove
ERASE_ALL transmitters and relearn all
available transmitters.
to
lost
will
erase
or
be
lost
stolen
terminated
transmitters
transmitters,
if
Preliminary
two
by
The following checks are performed by the decoder to
determine if the transmission is valid during learn:
• The first code word is checked for bit integrity.
• The second code word is checked for bit integrity.
• The encoder decryption key is generated accord-
• The hopping code is decrypted.
• The discrimination value is checked.
• If all the checks pass, the key, serial number
Figure 3-1 shows a flow chart of the learn sequence.
FIGURE 3-1:
ing to the selected algorithm.
check value, and synchronization counter values
are stored in EEPROM memory.
Serial number check value
Value with Serial Number
Compare Discrimination
Learn successful. Store:
Encoder decryption key
from Serial Number/
Use Generated Key
3: Learning a transmitter with an encoder
Wait for Reception
Sync. counter value
Wait for Reception
Non-Repeated
of a Valid Code
Generate Key
decryption key that is identical to a transmit-
ter already in memory replaces the existing
transmitter. In practice, this means that all
transmitters should have unique encoder
decryption keys. Learning a previously
learned transmitter does not use any addi-
tional memory slots.
Seed Value
Enter Learn
of Second
Valid Code
to Decrypt
Mode
Equal?
Exit
LEARN SEQUENCE
Yes
No
HCS515
Unsuccessful
DS40183A-page 5
Learn