2015-09-29 08:06 PM
Dear All
I have a STM8S Discovery board. I want to config PD4 with Beep function./*Initialize PD4 for beep signal */GPIO_Init(GPIOD, GPIO_PIN_4, GPIO_MODE_OUT_PP_HIGH_FAST);BEEP_Init(BEEP_FREQUENCY_1KHZ);BEEP_Cmd(ENABLE); When I check signal of PD4 but don't have output frequency with 1Khz.Please help me.Thanks2016-03-08 09:35 PM
2017-08-30 12:54 PM
Hi
I'm didn't look up the code behind BEEP_Init(), but I guess that the STM8 library requires
BEEP_AutoLSICalibration() (or similar) to be used for setting the BEEPDIV[4:0] bits in BEEP_CSR.
It's also likely that the GPIO_Init() line is unnecessary.the following STM8EF code is known to work on the STM8S003F3: