I have a problem for use infrared interface (IRTIM) of my MCU. When I saw in Reference manual I could find this:


Now, when I search for find GPIOx_AFRx register, I cannot find this register in reference manual.

Where is it?


The actual register isn't named GPIOx_AFRx, the "x" is a placeholder for other designators.

In this case, the first "x" is a placeholder for a numbered general purpose I/O, and the second "x" is a placeholder to indicate the alternate function low or high register.

If you look at sections 8.4.9 and 8.4.10 (PDF page 128) of the document you linked, you'll find they deal with the GPIOx_AFRL and GPIOx_AFRH for the low and high registers, respectively.

  • \$\begingroup\$ Thanks, I have confused a bit because I don't know How exactly should I configure these registers for TIM16 and TIM17? \$\endgroup\$ – Roh Jun 9 '14 at 18:06
  • \$\begingroup\$ I'm not familiar with TIM16/17; I'd recommend asking that as a separate (new) question. \$\endgroup\$ – JYelton Jun 9 '14 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.