ST
A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.
You are viewing an older revision! See the latest version
pinout_labels
General rules
- Only the labels written in blue/white or green/white (i.e. PA0_4, PB_5, LED1, USER_BUTTON, ...) must be used in your code.
- Other labels like IOREF, VIN, NRST, Serial1 TX, Analog In, etc... are power and alternate-function pins. They cannot be used in your code.
- Additional labels can also be used like SERIAL_TX, SERIAL_RX, etc... See each Nucleo pinout for more detail.
PWMx/y pins
- The first number x represents theTimer number, the second number y represents the Channel number.
Example: PWM2/3 means that you use the channel 3 of Timer 2.
- The letter N after the second number y means that it is the complementary of channel y (the channel is inverted).
Example: PWM16/1N means that you use the complementary signal of Timer 16 Channel 1.
- A normal channel and its complementary channel will have the same frequency and the same duty cycle. Only their waveform will be inverted.
Example: PWM1/1 and PWM1/1N
- All the PWMx pins have the same frequency as they use the same Timer.
Example: PWM2/1 and PWM2/3 will have the same frequency as they both use the Timer 2. But a different duty-cycle can be output on these two pins because they are on two different channels. If you want different frequencies you must used for example PWM1/1 and PWM2/1 instead.