English
Language : 

HCS512_11 Datasheet, PDF (14/34 Pages) Microchip Technology – KEELOQ® Code Hopping Decoder system and high security
HCS512
8.0 KEELOQ ENCODERS
8.1 Transmission Format (PWM)
The KEELOQ encoder transmission is made up of sev-
eral parts (Figure 8-1). Each transmission begins with
a preamble and a header, followed by the encrypted
and then the fixed data. The actual data is 66/69 bits
which consists of 32 bits of encrypted data and 34/37
bits of non-encrypted data. Each transmission is fol-
lowed by a guard period before another transmission
can begin. The encrypted portion provides up to four
billion changing code combinations and includes the
button status bits (based on which buttons were acti-
vated) along with the synchronization counter value
and some discrimination bits. The non-encrypted por-
tion is comprised of the status bits, the function bits,
FIGURE 8-1: TRANSMISSION FORMAT (PWM)
and the 28-bit serial number. The encrypted and non-
encrypted combined sections increase the number of
combinations to 7.38 x 1019.
8.2 Code Word Organization
The HCSXXX encoder transmits a 66/69-bit code word
when a button is pressed. The 66/69-bit word is con-
structed from an encryption portion and a non-
encrypted code portion (Figure 8-2).
The Encrypted Data is generated from four button bits,
two overflow counter bits, ten discrimination bits, and
the 16-bit synchronization value.
The Non-encrypted Data is made up from 2 status
bits, 4 function bits, and the 28/32-bit serial number.
LOGIC "0"
LOGIC "1"
TE TE TE
TBP
50% Preamble
10xTE
Header
Encrypted
Portion
Fixed Code
Portion
Guard
Time
FIGURE 8-2:
CODE WORD ORGANIZATION
34 bits of Fixed Portion
32 bits of Encrypted Portion
Repeat VLOW Button
(1-bit) (1-bit) Status
MSb
S2 S1 S0 S3
Serial Number
(28 bits)
Button
OVR DISC Sync Counter
Status (2 bits) (10 bits) (16 bits)
S2 S1 S0 S3
LSb
66 Data bits
Transmitted
LSb first.
Repeat VLOW Button
Serial Number
SEED
(1-bit) (1-bit) Status
(28 bits)
(32 bits)
MSb
1 111
LSb
SEED replaces Encrypted Portion when all button inputs are activated at the same time.
DS40151E-page 14
© 2011 Microchip Technology Inc.