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.

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

RM0008<br />

Bit 0 SPI1_REMAP: SPI1 remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the mapping of SPI1 NSS, SCK, MISO,<br />

MOSI alternate functions on the GPIO ports.<br />

0: No remap (NSS/PA4, SCK/PA5, MISO/PA6, MOSI/PA7)<br />

1: Remap (NSS/PA15, SCK/PB3, MISO/PB4, MOSI/PB5)<br />

Memory map <strong>and</strong> bit definitions for connectivity line devices:<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

Res.<br />

PTP_P<br />

PS_RE<br />

MAP<br />

TIM2IT<br />

R1_<br />

IREMA<br />

P<br />

SPI3_<br />

SWJ_<br />

REMAP Res. CFG[2:0]<br />

MII_RMI<br />

I_SEL<br />

CAN2_<br />

REMAP<br />

ETH_R<br />

EMAP<br />

Reserved<br />

rw rw rw w w w rw rw rw rw<br />

15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

PD01_<br />

REMAP<br />

CAN1_REMAP<br />

[1:0]<br />

TIM4_<br />

REMAP<br />

TIM3_REMAP<br />

[1:0]<br />

TIM2_REMAP<br />

[1:0]<br />

TIM1_REMAP<br />

[1:0]<br />

USART3_<br />

REMAP[1:0]<br />

USART<br />

2_<br />

REMAP<br />

USART<br />

1_<br />

REMAP<br />

I2C1_<br />

REMAP<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

TIM5CH<br />

4_IREM<br />

AP<br />

SPI1_<br />

REMAP<br />

Bit 31<br />

Reserved<br />

Bit 30 PTP_PPS_REMAP: Ethernet PTP PPS remapping<br />

This bit is set <strong>and</strong> cleared by software. It enables the Ethernet MAC PPS_PTS to be output<br />

on the PB5 pin.<br />

0: PTP_PPS not output on PB5 pin.<br />

1: PTP_PPS is output on PB5 pin.<br />

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

Bit 29 TIM2ITR1_IREMAP: TIM2 internal trigger 1 remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the TIM2_ITR1 internal mapping.<br />

0: Connect TIM2_ITR1 internally to the Ethernet PTP output for calibration purposes.<br />

1: Connect USB OTG SOF (Start of Frame) output to TIM2_ITR1 for calibration purposes.<br />

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

Bit 28 SPI3_REMAP: SPI3 remapping<br />

This bit is set <strong>and</strong> cleared by software. It controls the mapping of SPI3 NSS, SCK, MISO,<br />

MOSI alternate functions on the GPIO ports.<br />

0: No remap (NSS/PA15, SCK/PB3, MISO/PB4, MOSI/PB5)<br />

1: Remap (NSS/PA4, SCK/PC10, MISO/PC11, MOSI/PC12)<br />

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

Bit 27<br />

Reserved<br />

Bits 26:24 SWJ_CFG[2:0]: Serial wire JTAG configuration<br />

These bits are write-only (when read, the value is undefined). They are used to configure the<br />

SWJ <strong>and</strong> trace alternate function I/Os. The SWJ (Serial Wire JTAG) supports JTAG or SWD<br />

access to the Cortex debug port. The default state after reset is SWJ ON without trace. This<br />

allows JTAG or SW mode to be enabled by sending a specific sequence on the JTMS /<br />

JTCK pin.<br />

000: Full SWJ (JTAG-DP + SW-DP): Reset State<br />

001: Full SWJ (JTAG-DP + SW-DP) but without JNTRST<br />

010: JTAG-DP Disabled <strong>and</strong> SW-DP Enabled<br />

100: JTAG-DP Disabled <strong>and</strong> SW-DP Disabled<br />

Other combinations: no effect<br />

162/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!