2020-09-09 12:06 AM
Hi again
I'm using STMG071 with 2*DAC. I need them as negative inputs to COMPx.
in order to use PA4/PA5 for other purposes – I set DAC1->MCR =0x00030003;
so DAC will not be output to the pin (PA4/PA5).
Yet – as soon as DACs are enabled (DAC1->CR 0x00010001) – the PA5 goes to Z state
and not the desired output I programed via GPIOA (MODER/BSRR) regs
(I’ve set MODER= simple output)
(if I set DAC1->MCR=0x0; then DAC output is on the pin PA5)
Can anyone tell me- what I’m doing wrong?
Yona
2020-09-09 12:56 AM
news:
allthough I cant make PA5/PA4 output: they work fine as digital input && ADC input