29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

RM0008<br />

USB on-the-go full-speed (OTG_FS)<br />

26.14 OTG_FS control <strong>and</strong> status registers<br />

By reading from <strong>and</strong> writing to the control <strong>and</strong> status registers (CSRs) through the AHB<br />

slave interface, the application controls the OTG_FS controller. These registers are 32 bits<br />

wide, <strong>and</strong> the addresses are 32-bit block aligned. CSRs are classified as follows:<br />

● Core global registers<br />

● Host-mode registers<br />

● Host global registers<br />

● Host port CSRs<br />

● Host channel-specific registers<br />

● Device-mode registers<br />

● Device global registers<br />

● Device endpoint-specific registers<br />

● Power <strong>and</strong> clock-gating registers<br />

● Data FIFO (DFIFO) access registers<br />

Only the Core global, Power <strong>and</strong> clock-gating, Data FIFO access, <strong>and</strong> Host port control <strong>and</strong><br />

status registers can be accessed in both Host <strong>and</strong> Device modes. When the OTG_FS<br />

controller is operating in one mode, either Device or Host, the application must not access<br />

registers from the other mode. If an illegal access occurs, a mode mismatch interrupt is<br />

generated <strong>and</strong> reflected in the Core interrupt register (MMIS bit in the OTG_FS_GINTSTS<br />

register). When the core switches from one mode to the other, the registers in the new mode<br />

of operation must be reprogrammed as they would be after a power-on reset.<br />

26.14.1 CSR memory map<br />

The Host <strong>and</strong> Device mode registers occupy different addresses. All registers are<br />

implemented in the AHB clock domain.<br />

Doc ID 13902 Rev 9 717/995

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

Saved successfully!

Ooh no, something went wrong!