Skip to main content
YWhit
Associate III
September 9, 2020
Question

DAC OUTPUT

  • September 9, 2020
  • 1 reply
  • 623 views

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

This topic has been closed for replies.

1 reply

YWhit
YWhitAuthor
Associate III
September 9, 2020

news:

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