![Elektor EPROM Скачать руководство пользователя страница 22](http://html1.mh-extra.com/html/elektor/eprom/eprom_manual_2386336022.webp)
incorporated into Delphi applications in a
derived form.
All instructions for
DeviceIoCon-
trol
are defined further on in the
same file (see
Listing 7
), with the
definitions being computed using
the macro
CTL_CODE
. The best way
to find out how the numbers are put
together is to study the Help file. If
you want to manually check the
index, it’s worth knowing that the
codes start at $00222000, with each
subsequent code being incremented
by $4. The code for
IOCTL_Ezusb_VENDOR_REQUEST
is thus $00222014.
Now press ‘F7’ to compile the
source code. The result will be a file
with the name
EZUSB.SYS
, which
you should rename to
MYSYS.SYS.
Copy the modified INF file and
EZUSB.SYS
to a diskette. You have
now produced a driver diskette for a
Cypress IC with the VID and PID
numbers you have defined.
Connect the USB device having
the corresponding VID and PID iden-
tification to the PC. Windows will
automatically recognise the new
device. Use BinTerm to test the
device driver (see
Figure 3
). If you
select the ‘USB Test’ tab, you can
enter the virtual device name and
test communications with the
Cypress IC.
(020109-2)
MICRO
CONTROLLER
34
Elektor Electronics
11/2002
Links
Cypress Semiconductor
www.cypress.com
MmVisual BinTerm
www.mmvisual.de
Keil Software
www.keil.com
Borland Delphi
www.borland.com
www.borland.com
Microsoft
www.micosoft.com
USB- Organisation
www.usb.org
Braintechnology
www.braintechnology.de
(source for buying Cypress ICs)
Содержание EPROM
Страница 1: ......