Академический Документы
Профессиональный Документы
Культура Документы
HCS200
• Three button inputs - seven functions available S1 2 7 NC
• Selectable baud rate
S2 3 6 PWM
• Automatic code word completion
• Low battery signal transmitted to receiver NC 4 5 VSS
• Non-volatile synchronization data
Production HCS200
Programmer Transmitter
Serial Number EEPROM Array
Serial Number
Crypt Key
Sync Counter
Key .
Manufacturer’s Generation Crypt .
Code Algorithm Key .
The 16-bit synchronization counter is the basis behind A transmitter must first be ‘learned’ by the receiver
the transmitted code word changing for each transmis- before its use is allowed in the system. Learning
sion; it increments each time a button is pressed. Due includes calculating the transmitter’s appropriate crypt
to the code hopping algorithm’s complexity, each incre- key, decrypting the received hopping code and storing
ment of the synchronization value results in greater the serial number, synchronization counter value and
than 50% of the bits changing in the transmitted code crypt key in EEPROM.
word. In normal operation, each received message of valid
Figure 1-2 shows how the key values in EEPROM are format is evaluated. The serial number is used to deter-
used in the encoder. Once the encoder detects a button mine if it is from a learned transmitter. If from a learned
press, it reads the button inputs and updates the syn- transmitter, the message is decrypted and the synchro-
chronization counter. The synchronization counter and nization counter is verified. Finally, the button status is
crypt key are input to the encryption algorithm and the checked to see what operation is requested. Figure 1-3
output is 32 bits of encrypted information. This data will shows the relationship between some of the values
change with every button press, its value appearing stored by the receiver and the values received from
externally to ‘randomly hop around’, hence it is referred the transmitter.
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 4.0.
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 HCS200 based transmitter. Section 7.0
provides detail on integrating the HCS200 into a sys-
tem.
EEPROM Array
KEELOQ
Crypt Key Encryption
Algorithm
Sync Counter
Serial Number
Transmitted Information
1 Received Information
EEPROM Array
Button Press Serial Number 32 Bits of Manufacturer Code
Information Encrypted Data
3
KEELOQ
Decryption
Algorithm
Decrypted
Synchronization Check for
4 Match
Counter
Perform Function
5 Indicated by
button press
Yes Buttons
Added
TABLE 2-1: PIN DESCRIPTIONS ?
No
Pin No
Name Description All
Number Buttons
Released
S0 1 Switch input 0 ?
S1 2 Switch input 1 Yes
S2 3 Switch input 2/Clock pin when in Complete Code
Programming mode Word Transmission
VSS 5 Ground reference
Stop
PWM 6 Pulse Width Modulation (PWM)
output pin/Data pin for Program-
ming mode
VDD 8 Positive supply voltage
TABLE 3-1: EEPROM MEMORY MAP 3.5 SEED_0, SEED_1 (Seed Word)
The 2-word (32-bit) seed code will be transmitted when
WORD all three buttons are pressed at the same time (see
MNEMONIC DESCRIPTION
ADDRESS Figure 4-2). This allows the system designer to imple-
0 KEY_0 64-bit crypt key ment the secure learn feature or use this fixed code
(word 0) LSb’s word as part of a different key generation/tracking pro-
1 KEY_1 64-bit crypt key cess.
(word 1)
2 KEY_2 64-bit crypt key 3.6 Configuration Word
(word 2)
The 16-bit Configuration Word stored in the EEPROM
3 KEY_3 64-bit crypt key array contains information required to form the
(word 3) MSb’s encrypted portion of the transmission, as well as the
4 SYNC 16-bit synchronization device option configurations. The following sections
value further explain these bits.
5 Reserved Set to 0000H
6 SER_0 Device Serial Number TABLE 3-2: CONFIGURATION WORD
(word 0) LSb’s
7 SER_1 Device Serial Number Bit Number Bit Description
(word 1) MSb’s 0 Discrimination Bit 0
8 SEED_0 Seed Value (word 0) 1 Discrimination Bit 1
9 SEED_1 Seed Value (word 1) 2 Discrimination Bit 2
10 Reserved Set to 0000H 3 Discrimination Bit 3
11 CONFIG Configuration Word 4 Discrimination Bit 4
5 Discrimination Bit 5
3.1 Key_0 - Key_3 (64-Bit Crypt Key)
6 Discrimination Bit 6
The 64-bit crypt key is used to create the encrypted 7 Discrimination Bit 7
message transmitted to the receiver. This key is calcu- 8 Discrimination Bit 8
lated and programmed during production using a key 9 Discrimination Bit 9
generation algorithm. The key generation algorithm 10 Discrimination Bit 10
may be different from the KEELOQ algorithm. Inputs to 11 Discrimination Bit 11
the key generation algorithm are typically the transmit-
12 Low Voltage Trip Point Select (VLOW
ter’s serial number and the 64-bit manufacturer’s code.
SEL)
While the key generation algorithm supplied from
13 Baudrate Select Bit 0 (BSL0)
Microchip is the typical method used, a user may elect
to create their own method of key generation. This may 14 Reserved, set to 0
be done providing that the decoder is programmed with 15 Reserved, set to 0
the same means of creating the key for
decryption purposes. 3.6.1 DISCRIMINATION VALUE
(DISC0 TO DISC11)
3.2 SYNC (Synchronization Counter) The discrimination value aids the post-decryption
This is the 16-bit synchronization value that is used to check on the decoder end. It may be any value, but in
create the hopping code for transmission. This value a typical system it will be programmed as the 12 Least
will increment after every transmission. Significant bits of the serial number. Values other than
this must be separately stored by the receiver when a
3.3 Reserved transmitter is learned. The discrimination bits are part
of the information that form the encrypted portion of
Must be initialized to 0000H. the transmission (Figure 4-2). After the receiver has
decrypted a transmission, the discrimination bits are
9.0
VLOW SEL = 1
8.5
Max
8.0
7.5
7.0 Min
Temp (C)
TE TE TE
LOGIC ‘0’
LOGIC ‘1’
Bit
Period
PWM
S2
S[1:0] “01,10,11”
Transmission Amplitude = A
BACW Disabled A Code Word Code Word Code Word Code Word
(All words transmitted)
External Internal
S2 S1 S0 S3 S2 S1 S0
Standby 0 0 0 0 0 0 0
0 0 1 0 0 0 1
Hopping Code 0 1 0 0 0 1 0
Transmission 0 1 1 0 0 1 1
1 0 0 1 1 0 0
1 0 1 1 1 1 0
1 1 0 1 1 1 0
Seed Transmission 1 1 1 1 1 1 1
Note: If a Verify operation is to be done, then it must immediately follow the Program cycle.
†
NOTICE: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other condi-
tions above those indicated in the operation listings of this specification is not implied. Exposure to max-
imum rating conditions for extended periods may affect device reliability.
10.0
8.0
mA
6.0
4.0
2.0
0.0
2 3 4 5 6 7 8 9 10 11 12 13
VBAT [V]
1K External
12.0
10.0
8.0
mA
6.0
4.0
2.0
0.0
2 3 4 5 6 7 8 9 10 11 12 13
VBAT [V]
2K External
12.0
10.0
8.0
mA
6.0
4.0
2.0
0.0
2 3 4 5 6 7 8 9 10 11 12 13
VBAT [V]
LEGEND
Typical
Maximum
Minimum
TTD
TDB
PWM Code Code Code Code Code
Output Word Word Word Word Word
1 2 3 4 n
TTO
Button
Input
Sn
LOGIC ‘1’
Bit Period
TBP
Bit 0 Bit 1 Bit 30 Bit 31 Bit 32 Bit 33 Bit 58 Bit 59 Bit 60 Bit 61 Bit 62 Bit 63 Bit 64 Bit 65
Number
Symbol Characteristic Min. Typ. Max. Min. Typ. Max. Units
of TE
TE Basic pulse element 1 280 400 620 140 200 310 µs
TBP PWM bit pulse width 3 840 1200 1860 420 600 930 µs
TP Preamble duration 23 6.4 9.2 14.3 3.2 4.6 7.1 ms
TH Header duration 10 2.8 4.0 6.2 1.4 2.0 3.1 ms
THOP Hopping code duration 96 26.9 38.4 59.5 13.4 19.2 29.8 ms
TFIX Fixed code duration 102 28.6 40.8 63.2 14.3 20.4 31.6 ms
TG Guard Time 39 10.9 15.6 24.2 5.5 7.8 12.1 ms
— Total Transmit Time 270 75.6 108.0 167.4 37.8 54.0 83.7 ms
— PWM data rate — 1190 833 538 2381 1667 1075 bps
Note: The timing parameters are not tested but derived from the oscillator clock.
1.7
1.6
1.5 TE Max.
VDD = 3.5V
1.4
1.3
1.2
TE
1.1
VDD = 5.0V
1.0
Typical
0.9
0.8
VDD = 5.0V
0.7
TE Min.
0.6
-50 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90
TEMPERATURE °C
XXXXXXXX HCS200
XXXXXNNN XXXXXNNN
YYWW 0025
XXXXXXX HCS200
XXXYYWW XXX0025
NNN NNN
Note: In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line thus limiting the number of available characters
for customer specific information.
* Standard PICmicro device marking consists of Microchip part number, year code, week code, and
traceability code. For PICmicro device marking beyond this, certain price adders apply. Please check
with your Microchip Sales Office. For QTP devices, any special marking adders are included in QTP
price.
E1
n 1
A A2
L
c
A1
β B1
p
eB B
E1
D
2
B n 1
h α
45°
c
A A2
φ
β L A1
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________ FAX: (______) _________ - _________
Application (optional):
Would you like a reply? Y N
Questions:
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this data sheet easy to follow? If not, why?
4. What additions to the data sheet do you think would enhance the structure and subject?
5. What deletions from the data sheet could be made without affecting the overall usefulness?
8. How would you improve our software, systems, and silicon products?
HCS200 - /P
Please specify which device, revision of silicon and Data Sheet (include Literature #) you are using.
01/18/02