Multiple DAC outputs not working with STM32F334R8

16 Feb 2017

If using only one DAC output on PA_4, it works. But declaring more AnalogOut's for PA_5 or PA_6 doesn't work and it also renders PA_4 non-functioning state.

Is there any workarounds for this?

<<code title="example">>

  1. include "mbed.h"

Serial pc(USBTX, USBRX); AnalogOut aout1(PA_4); AnalogOut aout2(PA_5); AnalogOut aout3(PA_6);

int main() { aout1.write_u16(32767); aout2.write_u16(32767); aout3.write_u16(32767); pc.printf("ready!\r\n"); while(1); } <<code>>