2020-10-26 09:53 AM
Hi :)
I am using an STM8L151G6U6, and found out I missed something in the datasheet.
Datasheet is DS6372: https://www.st.com/resource/en/datasheet/stm8l151g6.pdf
It seems that for the the 28-pin or 32-pin packages ("Gx" or "Kx" model number) it is not possible to use the DAC output buffer?
Section 9.3.13 12-bit DAC characteristics of the datasheet (pages 105 & 106) shows the following:
A few questions:
Thank you!
Simon
PS: very tricky that the datasheet mentions "buffered DAC" everywhere, even though you can only use the output buffer on a third of the devices. But I guess that is on me for going too fast on the DAC section :D
2020-11-01 10:40 AM
So today I made some measurements with the MCU:
* I get a Zout of around 15k-16k - which is strange since according to the datasheet the maximum value should be 11.4k!! The way I measured it was by measuring the voltage drop when I put a resistor at the output. I tried a few different resistors (going from 1k to 100k) and the results were quite consistent.
* By mistake, the internal output buffer was on - and it actually works perfectly fine... I got an output impedance of 700 ohms, which will work fine with my setup. But I guess I gotta trust the datasheet and turn it off (ON is the default setting though).