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 />

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

Bits 6:4 PORT[2:0]: Port selection<br />

Set <strong>and</strong> cleared by software. Select the port used to output the Cortex EVENTOUT signal.<br />

Note: The EVENTOUT signal output capability is not extended to ports PF <strong>and</strong> PG.<br />

000: PA selected<br />

001: PB selected<br />

010: PC selected<br />

011: PD selected<br />

100: PE selected<br />

Bits 3:0 PIN[3:0]: Pin selection (x = A .. E)<br />

Set <strong>and</strong> cleared by software. Select the pin used to output the Cortex EVENTOUT signal.<br />

0000: Px0 selected<br />

0001: Px1 selected<br />

0010: Px2 selected<br />

0011: Px3 selected<br />

...<br />

1111: Px15 selected<br />

8.4.2 AF remap <strong>and</strong> debug I/O configuration register (AFIO_MAPR)<br />

Address offset: 0x04<br />

Reset value: 0x0000 0000<br />

Memory map <strong>and</strong> bit definitions for low-, medium- <strong>and</strong> high-density devices:<br />

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

Reserved<br />

SWJ_<br />

CFG[2:0]<br />

Reserved<br />

ADC2_<br />

ETRGR<br />

EG_RE<br />

MAP<br />

ADC2_<br />

ETRGIN<br />

J_REM<br />

AP<br />

ADC1_<br />

ETRGR<br />

EG_RE<br />

MAP<br />

ADC1_<br />

ETRGIN<br />

J_REM<br />

AP<br />

w w w rw 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 />

CAN_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 />

Bits 31: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 />

Bits 23:21<br />

Reserved<br />

Doc ID 13902 Rev 9 159/995

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

Saved successfully!

Ooh no, something went wrong!