STM32L4 - DAC triggering using timer example

Hi, guys. I'm using the STM32L4 discovery (MB1184C) board to test DAC (Pin PA5).
I use Keil uVision 5 to debug the code.
I noticed the Timer trigger option and I want to use this.
I want to put this MCU to sleep at the main function's while loop.
Periodically, like every 20 microseconds, I want to wake the MCU via a timer and change the DAC value.
So the questions are;
- What's the difference between "Connect to external pin / on chip-peripheral options"
- Is that timer trigger the feature I was looking for - change the DAC value periodically?
- Or do I have to use a timer interrupt (Slave mode disabled, Clock source internal, set prescaler, etc) to change the DAC?
I wish to see an example code, please.
Thanks for the help!
