cancel
Showing results for 
Search instead for 
Did you mean: 

Remapping Cortex STM32 GPIO

andrewkelly9
Associate II
Posted on May 14, 2010 at 12:48

Remapping Cortex STM32 GPIO

4 REPLIES 4
raptorhal2
Lead
Posted on May 17, 2011 at 13:50

I don't think remapping PA8 is possible. Look in your device reference manual for the Pin Definitions Table. In the 105 device it is Table 5. For at least the 105 device, there is no remapping available for PA8.

Cheers, Hal

chikos332
Associate II
Posted on May 17, 2011 at 13:50

Hi,

TIM1_CH1 can be remapped only on PE9 pin (full remap) (for 100/144 pin packages):

register AFIO_MAPR:

Bits 7:6 TIM1_REMAP[1:0]: TIM1 remapping

 

These bits are set and cleared by software. They control the mapping of TIM2 channels 1 to

 

4, 1N to 3N, external trigger (ETR) and Break input (BKIN) on the GPIO ports.

 

00: No remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PB12,

 

CH1N/PB13, CH2N/PB14, CH3N/PB15)

 

01: Partial remap (ETR/PA12, CH1/PA8, CH2/PA9, CH3/PA10, CH4/PA11, BKIN/PA6,

 

CH1N/PA7, CH2N/PB0, CH3N/PB1)

 

10: not used

 

11: Full remap (ETR/PE7, CH1/PE9, CH2/PE11, CH3/PE13, CH4/PE14, BKIN/PE15,

 

CH1N/PE8, CH2N/PE10, CH3N/PE12)

Cheers.

t1
Associate II
Posted on May 17, 2011 at 13:50

It is not gpio pins that are remapped, it is peripherals.

If you want PWM output on PB1, then use timer 3 channel 4.  No remapping is required to do this.

andrewkelly9
Associate II
Posted on May 17, 2011 at 13:50

Thanks, I will try using TIM4