09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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 I/Os (GPIO) <strong>RM0090</strong><br />

Table 28. Flexible SWJ-DP pin assignment<br />

2. GPIO<br />

Available debug ports<br />

Configure the desired I/O as output or input in the GPIOx_MODER register.<br />

3. Peripheral alternate function<br />

For the ADC and DAC, configure the desired I/O as analog in the GPIOx_MODER<br />

register.<br />

For other peripherals:<br />

– Configure the desired I/O as an alternate function in the GPIOx_MODER register<br />

– Select the type, pull-up/pull-down and output speed via the GPIOx_OTYPER,<br />

GPIOx_PUPDR and GPIOx_OSPEEDER registers, respectively<br />

– Connect the I/O to the desired AFx in the GPIOx_AFRL or GPIOx_AFRH register<br />

4. EVENTOUT<br />

Configure the I/O pin used to output the Cortex-M4F EVENTOUT signal by<br />

connecting it to AF15<br />

Note: EVENTOUT is not mapped onto the following I/O pins: PC13, PC14, PC15, PH0, PH1 and<br />

PI8.<br />

Please refer to the “Alternate function mapping” table in the datasheets for the detailed<br />

mapping of the system and peripherals’ alternate function I/O pins.<br />

189/1416 Doc ID 018909 Rev 3<br />

PA13 /<br />

JTMS/<br />

SWDIO<br />

SWJ I/O pin assigned<br />

PA14 /<br />

JTCK/<br />

SWCLK<br />

PA15 /<br />

JTDI<br />

PB3 /<br />

JTDO<br />

PB4/<br />

NJTRST<br />

Full SWJ (JTAG-DP + SW-DP) - Reset state X X X X X<br />

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

NJTRST<br />

JTAG-DP Disabled and SW-DP Enabled X X<br />

X X X X<br />

JTAG-DP Disabled and SW-DP Disabled Released

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

Saved successfully!

Ooh no, something went wrong!