29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RM0008<br />

General-purpose <strong>and</strong> alternate-function I/Os (GPIOs <strong>and</strong> AFIOs)<br />

Bit 23 MII_RMII_SEL: MII or RMII selection<br />

This bit is set <strong>and</strong> cleared by software. It configures the Ethernet MAC internally for use with<br />

an external MII or RMII PHY.<br />

0: Configure Ethernet MAC for connection with an MII PHY<br />

1: Configure Ethernet MAC for connection with an RMII PHY<br />

Note: This bit is available only in connectivity line devices <strong>and</strong> is reserved otherwise.<br />

Bit 22 CAN2_REMAP: CAN2 I/O remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the CAN2_TX <strong>and</strong> CAN2_RX pins.<br />

0: No remap (CAN2_RX/PB12, CAN2_TX/PB13)<br />

1: Remap (CAN2_RX/PB5, CAN2_TX/PB6)<br />

Note: This bit is available only in connectivity line devices <strong>and</strong> is reserved otherwise.<br />

Bit 21 ETH_REMAP: Ethernet MAC I/O remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the Ethernet MAC connections with the<br />

PHY.<br />

0: No remap (RX_DV-CRS_DV/PA7, RXD0/PC4, RXD1/PC5, RXD2/PB0, RXD3/PB1)<br />

1: Remap (RX_DV-CRS_DV/PD8, RXD0/PD9, RXD1/PD10, RXD2/PD11, RXD3/PD12)<br />

Note: This bit is available only in connectivity line devices <strong>and</strong> is reserved otherwise.<br />

Bits 20:17 Reserved<br />

Bits 16 TIM5CH4_IREMAP: TIM5 channel4 internal remap<br />

Set <strong>and</strong> cleared by software. This bit controls the TIM5_CH4 internal mapping. When reset<br />

the timer TIM5_CH4 is connected to PA3. When set the LSI internal clock is connected to<br />

TIM5_CH4 input for calibration purpose.<br />

Bit 15 PD01_REMAP: Port D0/Port D1 mapping on OSC_IN/OSC_OUT<br />

This bit is set <strong>and</strong> cleared by software. It controls the mapping of PD0 <strong>and</strong> PD1 GPIO<br />

functionality. When the HSE oscillator is not used (application running on internal 8 MHz RC)<br />

PD0 <strong>and</strong> PD1 can be mapped on OSC_IN <strong>and</strong> OSC_OUT. This is available only on 36-, 48-<br />

<strong>and</strong> 64-pin packages (PD0 <strong>and</strong> PD1 are available on 100-pin <strong>and</strong> 144-pin packages, no<br />

need for remapping).<br />

0: No remapping of PD0 <strong>and</strong> PD1<br />

1: PD0 remapped on OSC_IN, PD1 remapped on OSC_OUT,<br />

Bits 14:13 CAN1_REMAP[1:0]: CAN1 alternate function remapping<br />

These bits are set <strong>and</strong> cleared by software. They control the mapping of alternate functions<br />

CAN1_RX <strong>and</strong> CAN1_TX.<br />

00: CAN1_RX mapped to PA11, CAN1_TX mapped to PA12<br />

01: Not used<br />

10: CAN1_RX mapped to PB8, CAN1_TX mapped to PB9 (not available on 36-pin package)<br />

11: CAN1_RX mapped to PD0, CAN1_TX mapped to PD1<br />

Bit 12 TIM4_REMAP: TIM4 remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the mapping of TIM4 channels 1 to 4 onto<br />

the GPIO ports.<br />

0: No remap (TIM4_CH1/PB6, TIM4_CH2/PB7, TIM4_CH3/PB8, TIM4_CH4/PB9)<br />

1: Full remap (TIM4_CH1/PD12, TIM4_CH2/PD13, TIM4_CH3/PD14, TIM4_CH4/PD15)<br />

Note: TIM4_ETR on PE0 is not re-mapped.<br />

Doc ID 13902 Rev 9 163/995

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

Saved successfully!

Ooh no, something went wrong!