2011-01-05 09:19 AM
Please HELP. STM8L+DAC
2011-05-17 06:11 AM
Hi rais,
I think you should enable the comparator peripheral. So call CLK_PeripheralClockConfig(CLK_Peripheral_COMP, ENABLE); before SYSCFG_RIIOSwitchConfig(RI_IOSwitch_15, ENABLE); You can check it by looking at switch state in register if the value is well written or not. Thanks to confirm this so we can share it.MCU Lüfter2011-06-01 01:42 AM
Hi,
I had the same problem. Turning on comparator clock really helps. Unfortunately, I cannot find any hint why this is necessary in the STM8L documentation (RM0031). Regards Dilbert2011-06-01 02:21 AM
Hi Dilbert,
That was my case too but I found the info in RM0031: ''The RI registers can be accessed only when the comparator clock is enabled by setting the PCKEN25 bit in the CLK_PCKENR2 register.''MCU Lüfter