cancel
Showing results for 
Search instead for 
Did you mean: 

DAC OUTPUT

YWhit
Associate III

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

1 REPLY 1
YWhit
Associate III

news:

allthough I cant make PA5/PA4 output: they work fine as digital input && ADC input