2024-02-06 09:37 AM - edited 2024-02-06 09:39 AM
Hello,
I am looking to develop with the STM32 microcontrollers for the first time and was hoping to get some help. I need to create a device capable of outputting 3 separate sawtooth waves that are individually controllable to synthesize audio based on user input. I was looking at the STM32G431K6T6 or something similar, as it has a development board, the NUCLEO-G431KB, and claims to have 4 DACs. I am confused about this however. It says that 2 DACs are external and 2 are internal. Does this mean that only 2 can be sent to external circuitry? Is there any way to get 3 observable and individually controllable waves out of this device? Also from what I've read, it seems that the way to create a sawtooth wave is to increment the DACs output and reset it with a timer. Since these timers are configured in STM32Cube with prescalers etc. is there a way to actually change the frequency of the DACs wave after the code is running?
Would this maybe be easier to implement with an external DAC IC instead of inside the STM32 device?
Thank you
Solved! Go to Solution.
2024-02-06 10:11 AM - edited 2024-02-06 10:33 AM
Hi,
Not all dacs have output to pins, but seems your lucky : 3 have...
(This is different to description in ds :
-- maybe STM knows, what they build...)
Do a simple test to prove it :
in stm32Cube or - IDE , start new project, with this chip, you want to use (or is on nucleo board),
and set the dacs -> to output pins ; then you see: will it work, to get 3 dac signals out (or only 2 ).
2024-02-06 10:11 AM - edited 2024-02-06 10:33 AM
Hi,
Not all dacs have output to pins, but seems your lucky : 3 have...
(This is different to description in ds :
-- maybe STM knows, what they build...)
Do a simple test to prove it :
in stm32Cube or - IDE , start new project, with this chip, you want to use (or is on nucleo board),
and set the dacs -> to output pins ; then you see: will it work, to get 3 dac signals out (or only 2 ).