Skip to main content
Kang Sung Gu
Associate II
October 1, 2017
Question

TIM10 compare output is PF6, But I want to use PF7

  • October 1, 2017
  • 4 replies
  • 1363 views
Posted on October 01, 2017 at 07:24

  I used STM32F429ZI

0690X00000608HBQAY.png

I make this sorce code

GPIOF->MODER |= 0x00002000; //PF6 AF mode

GPIOF->PUPDR |= 0x00002000; //PF6 pull down

GPIOF->AFR[0]|= 0x03000000; //PF6 AF3(TIM8..11)

It is good work. ( PORTF6 IDR is good working)

But I want to use PF7, so change sorce code

GPIOF->MODER |= 0x00008000; //PF7 AF mode

GPIOF->PUPDR |= 0x00008000; //PF7 pull down

GPIOF->AFR[0]|= 0x30000000; //PF7 AF3(TIM8..11)

But it is not work (PF7 IDR is not working)  why?

PF6 -> PF7 can not?

Just only use PF6?

    This topic has been closed for replies.

    4 replies

    matic
    Associate III
    October 1, 2017
    Posted on October 01, 2017 at 08:00

    Only few of pins can be used for a certain function (or maybe only one). Press CTRL and click on the pin which is selected by default (PF6 in your case). All other possibilities will be coloured in blue.

    Kang Sung Gu
    Associate II
    October 1, 2017
    Posted on October 01, 2017 at 08:38

    Thank you Obid.Matic have a nice day

    Tesla DeLorean
    Guru
    October 1, 2017
    Posted on October 01, 2017 at 14:49

    PF7 would need to use TIM11, no relationship to TIM10 available

    0690X000006047PQAQ.jpg
    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Kang Sung Gu
    Associate II
    October 1, 2017
    Posted on October 01, 2017 at 15:03

    I found dataSheet thanks to you