Hi,
I am using TIMAC for my sensor development program.
I want to send 102 bytes ( maximum number of MSA_PACKET_LENGTH)
I am using ADC ISR to fill msa_Data1 buffer with adc values. When I send only I byte (i.e. MSA_PACKET_LENGTH is set to 5 (4 for header and 1 for data) ) I am able to receive values in the end device but when I increase MSA_PACKET_LENGTH to any other value even 6 then I don't get any value apart from 0
Am I doing something wrong, please advise?
This is my code for ADC ISR.
//////////////////////////////////////////////////////////////////////
#pragma vector=ADC12_VECTOR
__interrupt void ADC12_ISR(void)
{
uint8 i=0;
for (i=MSA_HEADER_LENGTH; i<MSA_PACKET_LENGTH; i++)
{
msa_Data1[i] = ADC12MEM1; // Store the sampled data
}
__bic_SR_register_on_exit(LPM0_bits);
}
////////////////////////////////////////////////////////////////////////////
Thanks
PS - I am using MSP430F5438A board and using CC2520 as transreceiver