Part Number: MSP430FR2422
Tool/software: Code Composer Studio
Dear Sir,
I have implemented Three channel polling method, After compile which taking maximum memory. If i add ADC INIT and ADC sampling conversion. Some default memory has occupied the memory area.
void ADC_SequentialSampling(void)
{
int i =0;
Channel = 7;
Portpin = 0x080;
while(Channel != 4)
{
ADCCode[i] += ADCSamplingDatatoRead(Channel,Portpin);
ADCNEXTCHANNEL;
ADCSTOP;
Channel -= 1;
Portpin >>=1;
i++;
}
ADCCLEAR;
ADCSTOP;
Count1++;
if(Count1 > 100)
{
TVSTempCount = ADCCode[0] /100;
LekageCount = ADCCode[1] /100;
TVS_DummyCount = ADCCode[2] /100;
TVSLekagePositiveVolt = (float)((TVSTempCount * 3.3 )/ 1023);
TVSEarthLeakageVolt = (float)((LekageCount * 3.3 )/ 1023);
TVS_TemperatureMVolt = (float)((TVS_DummyCount * 3.3 )/ 1023);
TVSTempCount = 0;
LekageCount = 0;
TVS_DummyCount = 0;
Count1 = 0;
i = 0;
}
After compile which is taking maximum memory. FRAM size reached 7.3KB. How can i reduce the memory.