cancel
Showing results for 
Search instead for 
Did you mean: 

DAC for stm8l151G6U6

np1
Associate II
Posted on March 20, 2013 at 05:19

Hi all,

I used DAC and it OK on stm8l151C6T6,  this is 48pin MCU.

But now i change to 28pin DAC.It not work:

    CLK_PeripheralClockConfig(CLK_Peripheral_DAC, ENABLE);

    DAC_DeInit();

    DAC_Init(DAC_Channel_1, DAC_Trigger_None, DAC_OutputBuffer_Enable);

    SYSCFG_RIIOSwitchConfig(RI_IOSwitch_15, ENABLE);

     DAC_WaveGenerationCmd(DAC_Channel_1, DAC_Wave_Noise, ENABLE);

    DAC_Cmd(DAC_Channel_1, ENABLE);

    DAC_SetChannel1Data(DAC_Align_12b_R, 0x1500);

I measure at Pin PB4, but it alway low.

Please help me.

Best regards

Thinh

3 REPLIES 3
mario2
Associate
Posted on October 07, 2013 at 16:48

Hello nguyen_phu.thinh.001,

do you have a solution for this problem?

Best regards

Mario

np1
Associate II
Posted on October 14, 2013 at 11:20

Ok, I sloved

day0
Associate
Posted on October 10, 2016 at 04:00

Hi nguyen_phu.thinh.001.

I got the same problem.

How did you solve it.