Skip to main content
Visitor II
March 20, 2013
Question

DAC for stm8l151G6U6

  • March 20, 2013
  • 3 replies
  • 711 views
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

    This topic has been closed for replies.

    3 replies

    Visitor II
    October 7, 2013
    Posted on October 07, 2013 at 16:48

    Hello nguyen_phu.thinh.001,

    do you have a solution for this problem?

    Best regards

    Mario

    np1Author
    Visitor II
    October 14, 2013
    Posted on October 14, 2013 at 11:20

    Ok, I sloved

    Visitor II
    October 10, 2016
    Posted on October 10, 2016 at 04:00

    Hi nguyen_phu.thinh.001.

    I got the same problem.

    How did you solve it.