HCS200-IP Microchip Technology, HCS200-IP Datasheet - Page 9

no-image

HCS200-IP

Manufacturer Part Number
HCS200-IP
Description
KEELOQ CODE HOPPING ENCODER
Manufacturer
Microchip Technology
Datasheet
6.0
When using the HCS200 in a system, the user will have
to program some parameters into the device including
the serial number and the secret key before it can be
used. The programming cycle allows the user to input
all 192 bits in a serial data stream, which are then
stored internally in EEPROM. Programming will be
initiated by forcing the PWM line high, after the S2 line
has been held high for the appropriate length of time
line (Table 6-1 and Figure 6-1). After the program mode
is entered, a delay must be provided to the device for
the automatic bulk write cycle to complete. This will
write all locations in the EEPROM to an all zeros pat-
tern. The device can then be programmed by clocking
in 16 bits at a time, using S2 as the clock line and PWM
as the data in line. Data clocked in on falling edge of S2.
TABLE 6-1:
FIGURE 6-1:
FIGURE 6-2:
V
Program mode setup time
Hold time 1
Hold time 2
Bulk Write time
Program delay time
Program cycle time
Clock low time
Clock high time
Data setup time
Data hold time
Data out valid time
(Clock)
(Clock)
(Data)
(Data)
1996 Microchip Technology Inc.
DD
PWM
PWM
S2
Note 1: Unused button inputs to be held to ground during the entire programming sequence.
S2
Note:
= 5.0V
2: The V
PROGRAMMING THE HCS200
Parameter
Programming Cycle
Enter Program
Bit190
T
If a verify operation is to be done, then it must immediately follow the program cycle.
PS
10%, 25 C
Mode
End of
Bit191
T
PROGRAMMING/VERIFY TIMING REQUIREMENTS
PROGRAMMING WAVEFORMS
VERIFY WAVEFORMS
DD
PH
pin must be taken to ground after a program/verify cycle.
1
T
PH
T
2
WC
5 C
T
PBW
Begin Verify Cycle Here
T
Symbol
Bit 0
T
T
CLKH
T
T
T
T
T
Bit 0
PROG
T
T
T
T
CLKH
CLKL
PBW
T
PH
PH
WC
DH
PS
DS
DV
CLKL
1
2
Bit 1
Bit 1 Bit 2
T
Bit 2
DS
T
Preliminary
DV
Repeat for each word (12 times)
T
Bit 3
DH
Data for Word 0 (KEY_0)
Bit 3
Data in Word 0
Min.
3.5
3.5
50
25
25
18
10
0
After each 16-bit word is loaded, a programming delay
of TWC is required for the internal program cycle to
complete. At the end of the programming cycle, the
device can be verified (Figure 6-2) by reading back the
EEPROM. Reading is done by clocking the S2 line and
reading the data bits on PWM. Falling edge of S2 initi-
ated reading. For security reasons, it is not possible to
execute a verify function without first programming the
EEPROM. A verify operation can only be done
immediately following the program cycle.
Bit 14
Note:
Bit 14
Bit 15
To ensure that the device does not acci-
dentally enter programming mode (result-
ing in a bulk erase), PWM should never be
pulled high by the circuit connected to it.
Special care should be taken when driving
PNP RF transistors.
Bit 15
Max.
4.5
3.5
3.5
T
36
24
Bit 16 Bit 17
WC
HCS200
Data for Word 1
DS40138A-page 9
Bit 16
Bit190 Bit191
Units
ms
ms
ms
ms
ms
s
s
s
s
s
s
Bit 17

Related parts for HCS200-IP