![Elektor EPROM Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/elektor/eprom/eprom_manual_2386336019.webp)
MICRO
CONTROLLER
31
11/2002
Elektor Electronics
with your own driver. The items to be modi-
fied are shown in bold in
Listing 1
.
Before starting to edit the INF file, save it
with a new name, and then enter the new
name in the [xxx.Files.Inf] section. Next,
change the company name (‘Cypress’) to your
own name. The descriptors that Windows
displays in the Device Manager window are
entered in the [Strings] section. The device
driver that you produce should also have a
new SYS file. Give the existing SYS file a new
name, such as ‘MYSYS.SYS’, and correspon-
dingly change all ‘EZUSB’ identifiers to
‘MYSYS’. Ensure that the file name of the
device driver does not contain any non-stan-
dard characters or spaces — in other words,
use only letters and numerals, with at most
eight characters!
The most important items are the VID and
PID numbers. They may lie in the range of 1
to 65534, and they are given in hexadecimal
form. A VID number can be rented (for a fee)
from the USB Organisation (
www.usb.org
) by
anyone who wants to do so. If the VID is regi-
stered, the product is allowed to carry a USB
symbol and the number is guaranteed to be
unique. However, the fee is not exactly cheap.
The solution proposed here is to use freely
already installed and used in Part 1
of this series.
Setup information
Windows always needs an INF file
for installing a device driver. Such a
file contains the data specifying
what should be installed, where it
should be installed and how it
should be installed. This file should
be modified to meet your particular
needs, since you don’t want the
Cypress device driver to conflict
R2
4k7
R3
8
VCC
V
CC
GND
1
2
3
7
E0
E1
E2
WC
020109 - 12
4
5
6
SDA
SCL
SDA
SCL
35
36
4k7
IC3a
24C64
IC1c
AN2131SC
EEPROM connection
Figure 2. Circuit diagram of the EEPROM extension.
Table 1
[Version]
provider=%
Cypress
%
[Manufacturer]
%
Cypress
%=
Cypress
[
Cypress
]
%USB\VID_
0547
&PID_
2131
.DeviceDesc%=
EZUSB
.Dev, USB\VID_
0547
&PID_
2131
[DestinationDirs]
EZUSB
.Files.Ext = 10,System32\Drivers
EZUSB
.Files.Inf = 10,INF
[
EZUSB
.Dev]
CopyFiles=
EZUSB
.Files.Ext,
EZUSB
.Files.Inf
AddReg=
EZUSB
.AddReg
[
EZUSB
.Dev.NT]
CopyFiles=
EZUSB
.Files.Ext,
EZUSB
.Files.Inf
AddReg=
EZUSB
.AddReg
[
EZUSB
.Dev.NT.Services]
Addservice =
EZUSB
, 0x00000002,
EZUSB
.AddService
[
EZUSB
.AddService]
DisplayName = %
EZUSB
.SvcDesc%
ServiceBinary = %10%\System32\Drivers\
ezusb
.sys
[
EZUSB
.AddReg]
HKR,,NTMPDriver,,
ezusb
.sys
[
EZUSB
.Files.Ext]
ezusb
.sys
[
EZUSB
.Files.Inf]
ezusbw2k
.Inf
[Strings]
Cypress
=”
Cypress Semiconductor
”
USB\VID_
0547
&PID_
2131
.DeviceDesc=”
Cypress EZ-USB (2131Q/2131S/2135S) - EEPROM missing
”
Содержание EPROM
Страница 1: ......