Skip to main content
andrewkelly9
Associate II
May 14, 2010
Question

Remapping Cortex STM32 GPIO

  • May 14, 2010
  • 4 replies
  • 2057 views
Posted on May 14, 2010 at 12:48

Remapping Cortex STM32 GPIO

    This topic has been closed for replies.

    4 replies

    chikos332
    Visitor II
    May 17, 2011
    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.

    raptorhal2
    Lead
    May 17, 2011
    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

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

    Thanks, I will try using TIM4

    t1_it
    Visitor II
    May 17, 2011
    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.