---
title: "Comment by Alexander on \"Embedded Rust & Embassy: PWM Generation\" | Hashnode"
description: "Hi, thanks for doing this series. The article says: Here PA9 needs to be configured such that it&#39;s connected to the internal circuitry of channel 2 of the T"
url: "https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d/comment/65451b3931ab12d0f49ef3d5"
---

[Discussion](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d)

Comment [Embedded Rust & Embassy: PWM Generation](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d)

[Alexander](https://hashnode.com/@avsaase)

[Nov 3, 2023](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d/comment/65451b3931ab12d0f49ef3d5)

Hi, thanks for doing this series.

The article says:

> Here PA9 needs to be configured such that it's connected to the internal circuitry of channel 2 of the TIM1 peripheral. It can be determined from the device datasheet that pin PA9 is connected to channel 2 of the timer.This is done using the new\_ch2 instance method of the PwmPin type.

I'm following along with a STM32F3DISCOVERY board so my pinout is different. Can you explain how to find in the datasheet which pin is connected to which timer and channel?

Thanks!

[Omar Hiari](https://hashnode.com/@omarhiari)

[Nov 3, 2023](https://hashnode.com/posts/embedded-rust-embassy-pwm-generation/638e065090845e1bd201fb6d/comment/65451b3931ab12d0f49ef3d5#reply-6545278531ab12d0f49ef585)

Your welcome! If you check the pin name column in table 8 in the datasheet I shared there should be all the pins listed there. There also should be a column titled “alternate functions”. These are all the functions that each pin supports. If you look up the PA9 for example, you’ll see that TIM1\_CH2 is one of the functions it supports. You’ll need to find the same table for the F3 device.
