Datasheet
I2C Bootloader
Document Number: 001-13258 Rev. *J Page 30 of 39
Received or Transmitted data. To transmit data, this register must be loaded before a write to the
I2C_SCR register. Received data is read from this register. It may contain an address or data.
Table 4. Resource I2C_MSCR: Bank 0 reg[D9] Master Status Control Register
Bus Busy: Master Only, set when any bus Start condition is detected, cleared when a Stop condition is
detected.
Master Mode: Indicates the device is currently operating as a bus Master.
Restart Gen: Master only, may be set to generate a repeat start for the I
2
C bus.
Start Gen: Master Only, When bus becomes idle, generate an I
2
C bus start and transmit an I
2
C address
using data in the data register (I2C_DR).
Appendix
The following section contains additional information that maybe useful when creating an I
2
C bootloader.
Using the USBtoIIC Bridge GUI Application
The USBtoIIC bridge and the associated GUI is the preferred method to download to the bootloader.
More information is available in the application note “I
2
C Bootloader Using CY3240 I
2
C-USB Bridge",
AN45683. This application note discusses the format of the <project_name>.txt file and a procedure to
bootload a project. In addition, it gives information about a tool to convert the .dld format to a .txt format.
This is not necessary for the devices described in this user module datasheet. The <project_name>.txt file
is automatically generated.
The USBtoIIC bridge is briefly discussed in this section:
1. Start the application program for the CY3240 USBtoIIC Bridge.
2. Import the <projectname>.txt file into the USBtoIIC Bridge GUI.
3. Select File > Open, and browse to the output directory of the project that you want to bootload. Locate
the file named <projectname>.txt. It may be necessary to choose the file-type as “all files" in the file
browser window. If this file is not present, you may have to regenerate it using the bootloader tools that
are described in this user module datasheet. The file may take a few seconds to load after it is
selected. To check if the file has loaded completely, right-click in the lower window; if a menu appears,
then the GUI is ready.
Bit 7 6 5 4 3 2 1 0
Value Reserved Reserved Reserved Reserved Bus Busy Master
Mode
Restart
Gen
Start Gen