2014-05-20 10:35 AM
Hello all,
as a newbie to STM32 I am unsure how to configure the pins for CS and PWM in the attached picture. The Buzzer is from mikroElektronika. Thje buzzer ist from mikroElektronika, but they didn't really help with an example. Their example says basically something like SoundInit();
and that's it: They do not provide the source of the corresponding library. So my questions are
Your help is very much appreciated as I do not yet know very well the characteristics of the STM32 and its portpins.
PS: I have seen that the attachment was uploaded, but do not know how to make it visible ...? Hope you can see it.2014-05-21 11:39 AM
In general, the pins of an STM32 can be configured as output (push-pull or open-drain), input (with or without pull-up or pull-down) or as some peripheral alternate function.
The schematic that you attached appears to show two pins connected together. I don't know how that can be useful, but as you suspect, it could cause problems if both pins are used as outputs. (Presumably the pin used for PWM is configured as an output, probably connected to a timer peripheral). If the pin connected as CS is configured as an input, it would be possible to operate, but it would not affect the circuit. I suppose both pins could be configured as open-drain outputs, but I don't know why that would be desired.