EZ-USB Development Kit User Guide, Doc. # 001-66390 Rev. *D
89
EZ-USB Development Kit Firmware Examples
8.8.5
Testing the EP_Interrupts Firmware Functionality
The example firmware should be tested in a similar manner as the
Bulkloop
example.The Bulk data
transfers on EP1 are tested with a length of 64 bytes and 512 bytes for the EP2, EP4, EP6, and EP8.
The process is similar to the one outlined in
Testing the Bulkloop Firmware Functionality on page 80
8.9
iMemtest Firmware Example
This example does a data integrity check by writing and reading back the data on different memories
inside EZ-USB device such as GPIF waveform memory(0xE400), Endpoint buffer memo-
ries(0xE740, 0xF000, and so on) and avoid the range where the firmware is located. If the written
data and read data match then “GOOD” is displayed on the seven-segment display-U9 and if there
are errors at any specific memory location, the corresponding location is displayed. The example is
compiled using the Keil IDE similar to previous examples and corresponding images for RAM
(
imemtest.hex
) and EEPROM (
imemtest.iic
) can be generated. Both the images are located at
<Installed_directory>\<version\iMemtest
. After downloading the images for RAM
(iMemtest.hex) or EEPROM (iMemtest.iic), using the process outlined in
ware Image to EZ-USB Internal RAM Memory on page 69
, observe the seven-segment display for
either a “GOOD” string displayed or the exact location of memory write/read failure.
8.10
LEDcycle Firmware Example
This example is used to test the connectivity between EZ-USB IC and general-purpose LED D2-D5.
Ensure all four jumpers on JP3 are shorted to observe the LED glowing ON and OFF before down-
loading the example. The example is compiled using the Keil IDE similar to previous examples and
corresponding images for RAM (
LEDcycle.hex
) and EEPROM (
LEDcycle.iic
) can be generated.
Both the images are located at
<Installed_directory>\<version\LEDCycle
. After down-
loading the images using the process outlined in section
Method to Download Firmware Image to
EZ-USB Internal RAM Memory on page 69
Method to Download Firmware Image to External
observe the LED's D2-D5 are turned ON and OFF in a periodic manner.
8.11
Dev_IO Firmware Example
This example is used to test the connectivity of seven segment display and the Push button switches
(f2,f3) w.r.t EZ-USB device. The seven-segment display (U9) and push buttons are connected to
Philips PCF8574 I/O expanders (U8 and U10). The example is compiled using the Keil IDE similar to
previous examples and corresponding images for RAM (
Dev_IO.hex
) and EEPROM (
Dev_IO.iic
)
can be generated. Both the images are located at
<Installed_directory>\<ver-
sion\dev_io
. After downloading the images using the process outlined in
Firmware Image to EZ-USB Internal RAM Memory on page 69
Image to External I2C EEPROM on page 69
, press the F2 push button and observe the decrement
values in the range 0xF-0x0. Similarly, pressing F3 increments the values in the range 0x0-0xF, start-
ing from the current value. Observe the seven segments displaying the values for each button press.
Summary of Contents for CY3674
Page 18: ...18 EZ USB Development Kit User Guide Doc 001 66390 Rev D Getting Started...
Page 34: ...34 EZ USB Development Kit User Guide Doc 001 66390 Rev D Development Kit Contents...
Page 54: ...54 EZ USB Development Kit User Guide Doc 001 66390 Rev D Cypress USB Drivers for EZ USB Kits...
Page 110: ...110 EZ USB Development Kit User Guide Doc 001 66390 Rev D Resources...
Page 113: ...EZ USB Development Kit User Guide Doc 001 66390 Rev D 113 A 2 Board Layout...