09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

USB on-the-go high-speed (OTG_HS) <strong>RM0090</strong><br />

Bit 31 BSYDNE: I2C Busy/Done<br />

The application sets this bit to 1 to start a request on the I 2 C interface. When the transfer is<br />

complete, the core deasserts this bit to 0. As long as the bit is set indicating that the I 2 C<br />

interface is busy, the application cannot start another request on the interface.<br />

Bit 30 RW: Read/Write Indicator<br />

This bit indicates whether a read or write register transfer must be performed on the<br />

interface.<br />

0: Write<br />

1: Read<br />

Note: Read/write bursting is not supported for registers.<br />

Bit 29 Reserved, must be kept at reset value.<br />

Bit 28 I2CDATSE0: I 2 C DatSe0 USB mode<br />

This bit is used to select the full-speed interface USB mode.<br />

0: VP_VM USB mode<br />

1: DAT_SE0 USB mode<br />

Bits 27:26 I2CDEVADR: I 2 C Device Address<br />

This bit selects the address of the I 2 C slave on the USB 1.1 full-speed serial transceiver<br />

corresponding to the one used by the core for OTG signalling.<br />

Bit 25 Reserved, must be kept at reset value.<br />

Bit 24 ACK: I 2 C ACK<br />

This bit indicates whether an ACK response was received from the I 2 C slave. It is valid when<br />

BSYDNE is cleared by the core, after the application has initiated an I 2 C access.<br />

0: NAK<br />

1: ACK<br />

Bit 23 I2CEN: I 2 C Enable<br />

This bit enables the I 2 C master to initiate transactions on the I 2 C interface.<br />

Bits 22:16 ADDR: I 2 C Address<br />

This is the 7-bit I 2 C device address used by the application to access any external I 2 C slave,<br />

including the I 2 C slave on a USB 1.1 OTG full-speed serial transceiver.<br />

Bits 15:8 REGADDR: I 2 C Register Address<br />

These bits allow to program the address of the register to be read from or written to.<br />

Bits 7:0 RWDATA: I 2 C Read/Write Data<br />

After a register read operation, these bits hold the read data for the application.<br />

During a write operation, the application can use this register to program the data to be<br />

written to a register.<br />

1201/1416 Doc ID 018909 Rev 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!