I am trying to understand the smartpin DAC mode, but have not been very successful.
Assume that I want to output a specific voltage 0.5 to 3.0V on a specific pin. I would want to use one of the DAC modes, but
What is the difference between the 3 modes? (How would I decide which to use?)
What are the values for the following commands?
The documentation states that %DDDDDDDD = DAC level.
How do I calculate %DDDDDDDD from the desired voltage? (for example 2.5v = ??)
An example would be appreciated.
The documentation states that %TT “for DAC smart pin modes (%MMMMM = %00001..%00011):
0x = OUT enables ADC in DAC_MODE, P[7:0] overriden
1x = OTHER enables ADC in DAC_MODE, P[7:0] overridden”
How is ADC being used in the DAC modes (I’m completely confused by this. Does it mean I can use the DAC mode to do ADC instead of using the sigma delta smartpin mode? How?)
I appreciate your help, and I know I will have more questions.