Other Parts Discussed in Thread: MSP430G2553, ENERGIA
Hello everybody,
I have done a small ADC program which read analog voltage and produces digital value. I have given 1 Vpp, 1 KHz sine wave as input but after conversion from digital value to voltage (voltage = 3*(sensorValue)/1023), i am getting the output voltage maximum 0.42 V.
So what can be problem in this? why not it is giving 1 V or nearly 1 V?
Whether the conversion formula is correct or wrong ? (for MSP430 10-bit ADC)
following are the details and code
Launchpad using: MSP430G2553
MCU- MSP430
for programming i am using Energia software
code-
void setup()
{
Serial.begin(9600);
}
void loop()
{
int sensorValue = analogRead(A3);
Serial.print(sensorValue);
float voltage = sensorValue * (3.0/1023);
Serial.print(voltage);
delay(1000);
}
when i try by changing the frequency of input signal then it doesn't affect the maximum value. I checked for 100 Hz, 1KHz and 10 KHz also.
So please help me to get correct output ...
Thank you