1996 Microchip Technology Inc.
Preliminary
DS40147A-page 7
HCS509
To learn a new transmitter to the HCS509 decoder, the
following sequence is required:
1.
Enter learning mode by pulling LRNIN low for
longer than 32 ms.
2.
Activate the transmitter until the REPEAT output
goes high indicating reception of a valid code.
3.
Activate the transmitter a second time until the
REPEAT goes high again.
4.
The transmitter is now learned into the decoder.
5.
Repeat steps 1-4 to learn up to 6 transmitters.
6.
Learning will be terminated if two non-sequential
codes were received or if two acceptable codes
were not decoded within 30 seconds.
The following checks are performed on the decoder to
determine if the transmission is valid during learn:
The first code word is checked for bit integrity.
The hopping code is decrypted.
The discrimination value is compared to the serial
number.
The second code word is checked for bit integrity.
The hopping code is decrypted.
The function codes of the first transmission and
second transmission are compared.
The synchronization counters of the hopping
codes are compared to check that they are
sequential codes.
If all the checks pass, the serial number and syn-
chronization counters are stored in EEPROM
memory.
Figure 6-2 shows a flow chart of the learn
sequence.
Note:
Whenever a transmission with the same
serial number as the Master transmitter is
received during learn, learn will ignore the
transmission and wait for the next. Only if a
serial number other than the master serial
number is received will learn continue.
Learn will terminate if no transmissions are
received for more than 30 seconds.
FIGURE 6-2:
LEARN SEQUENCE
6.2
Preprogramming Transmitters into the
Decoder in Nonlearning Mode
The nonlearning mode is selected when the mode pin
is high. This mode can be used where there is no rela-
tionship between the serial number and the decryption
key or where the relationship is not the relationship
used on the NTQ109. Transmitter information can be
programmed at the time of manufacture. This does not
allow the learning of additional transmitters at a later
stage.
Enter Learn
Mode
Generate Key
from Serial Number
Use Generated Key
to Decrypt
Wait for Reception
of Second
Non-Repeated
Valid Code
Compare Discrimination
Value with Serial Number
Use Generated Key
to Decrypt
Equal
Counters
Sequential
Serial number
Synchronization counter
Exit
Learn successful Store:
Learn
Unsuccessful
No
No
Yes
Yes
Wait for Reception
of a Valid Code