I want to be a complete engineer - technical genius and sensitive humanist all in one!

Thursday, March 12, 2009

some FAQ about CY7C68013

01、Reading Serial EEPROM which is Connected to the FX2Question: Is there any way to read the serial EEPROM (EEPROM with VID/PID), connected to the FX2 (CY7C68013), from the host?
Response: If you download the Vend_Ax example firmware (c:\cypress\usb\examples\fx2\vend_ax) with the EZ-USB control panel, you can use the Vend Req toolbar to read the serial EEPROM on the board. Use the 0xA2 for a small (LC00) EEPROM and 0xA9 for a large (LC64) EEPROM. Specify the offset with the Value field (such as 0x0000), the direction of EEPROM access (i.e., IN to read the EEPROM) and how many bytes to read (e.g., 16). There should be a memory dump type display of the data read from the serial EEPROM in the data area of the control panel window. If a string of "CD CD CD .." apperars, then the access to the EEPROM failed. Try again with 0xA9 if you used 0xA2 and vice versa. For serial EEPROMs programmed for VID/PID only enumeration (see the FX2 Technical Reference Manual section 3.4.2 C0 loads), the VID/PID will be in the first bytes of the EEPROM. If the serial EEPROM contains a complete program (manual section 3.4.3), then dump the bytes at offset of the device descriptor program. You will need the program's link map listing (.m51) file to determine the correct offset.

02、FX2 Technical Reference Manual and Datasheet
Question: Where can I find soft copies of the FX2 Technical Reference Manual and Datasheet?
Response: Look at "C:\Cypress\USB\doc\FX2\FX2 TechRefManual.pdf". This is a very well written and readable manual, and is the key reference you will want to use. The datasheet describes the hardware interfaces of the part. It is at "C:\CYPRESS\USB\doc\FX2\CY7C68013.pdf".

03、CY7C68013 I2C-compatible Interface
Question:Can the I2C-compatible interface be used for general purpose applications such as writing/reading to and from the internal registers of an I2C slave device?
Response:Yes, it is possible to access other I2C slave devices such as EEPROMs, RTCs, temperature sensors, etc. through the I2C-compatible interface.
However, the I2C-compatible interface cannot be mastered by an outside I2C controller, as that interface on the FX2 supports a master-only mode. In addition, the internal FX2 registers cannot be accessed via this interface.

04、CY7C68013 Serial EEPROM Read
Question:Is there a way to read the serial EEPROM (EEPROM with VID/PID) from the host? Is there a way to read the serial EEPROM using the 8051 and then relay the info to the host using an endpoint?

Response:Download the Vend_Ax example firmware (c:\cypress\usb\examples\fx2\vend_ax) with the EZ-USB control panel and use the Vend Req toolbar to read the serial EEPROM on the board.
Use the 0xA2 for a small (LC00) EEPROM and 0xA9 for a large (LC64) EEPROM. Specify the offset with the value field (such as 0x0000), the direction of EEPROM access (i.e., IN to read the EEPROM), and how many bytes to read.
There should be a memory dump type display of the data read from the serial EEPROM in the data area of the control panel window. If a string of "CD CD CD .." appears, then the access to the EEPROM failed. Try again with 0xA9 if 0xA2 was used and vice versa. Also, verify that the EEPROM enable jumper is installed.
For serial EEPROMs programmed for VID/PID only enumeration, the VID/PID will be in the first bytes of the EEPROM. If the serial EEPROM contains a complete program, then dump the bytes at offset of the device descriptor of theprogram. The program's link map listing (.m51) file is used to determine the correct offset.

05、Serial EEPROM programming.
Questions:How can I program the serial EEPROM?What tools are included with the development kit to create my own image to program into the EEPROM?

Response:The serial EEPROM on the development board can be programmed by selecting the EEPROM button in the EZ-USB Control Panel and then navigating to the folders which contain EEPROM images we provide with the development kits as follows:
For the AN2131 family:C:\Cypress\USB\Examples\EzUsb\eeprom images\2100.iic
For the CY7C64613 FX family:C:\Cypress\USB\Examples\EzUsb\eeprom images\2200_24Mhz.iic or 2200_48MhHz.iic
For the CY7C68013 FX2:C:\Cypress\USB\Examples\FX2\Fx2_C0.iic
You can create your own eeprom image using the tools provided with the development kit. After you have your project compiled as a .hex file use the hex2bix utility to create an iic image. You can also use the EZ-USB Control Panel, after downloading the vend_ax example to program the EEPROM.
Related Documents:C:\Cypress\USB\Doc\EZ-USB General\EZ-USB Contents and Tutorial.pdfC:\Cypress\USB\Bin\hex2bix.exe

06、I2C Wait Condition (SCL low) CY7C68013 FX2
Question: Will the FX2 I2C controller wait when the receiver holds the SCL low?

Response: Yes, the FX2 will wait on the slave device. Please see section 13.4.1 of the FX2 Technical Reference Manual; which states the following: "Once the master drives SCL low, external slave devices can hold SCL low to extend clock-cycle times."

No comments:

Labels

Followers