mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Issue: Multiple DAC with Nucleo STM32F303K8 not working properly

The Nucleo STM32F303K8 has 3 DAC on PA_4 .., PA_6.

When defining only PA_4

Analog0 = AnalogOut(PA_4)

the voltage is set correctly.

When additionally defining PA_5

Analog0 = AnalogOut(PA_4)
Analog1 = AnalogOut(PA_5)

the values on PA_4 are written correctly, but the voltage on PA_5 always remains 0.

When additionally defining the third DAC output on PA_6,

Analog0 = AnalogOut(PA_4)
Analog1 = AnalogOut(PA_5)
Analog2 = AnalogOut(PA_6)

All voltages always remain zero.

Could it be that the current implementation of AnalogOut is not suitable for multiple DACs? Would require to use the "Dual Mode" as defined in stm43f3xx_hal_dac.c?

1 comment:

02 Nov 2016

any solution to this problem?