This is a program used to control the output voltage by DAC on MSP430F6638.
The program is not finished yet. Feel free to tell me your idea please.
The Output pin of the DAC is defined as P7.7.
The output voltage is based on the following formula.
Vout = Vref * (DAC12_1DAT / 0xFFF)
The reference voltage is set as (unknown) and can be modified.
The output voltage is controlled by the TouchPad buttons on the device.
The output voltage of each TouchPad button can be modified in the file according to the formula of Vout
above.
The output voltage has its range between 300mV
and 3.6V
as recorded during the experiment.