Hello,

I am working with the Texas Instruments MSP430F2617 microcontroller and
CC2420 transceiver. I have a problem with the ADC and I wish someone could
help me with the problem since it takes time and I have not found the
solution.

I put them all in the context of the situation:

I'm doing a mote and a base station for a final project of university.

The microcontroller runs at 8 MHz internally through software configuration
provided by the TinyOS libraries Zolertia Z1, thanks to the call
Set_DCO function (DELTA_8MHZ) within MSP430ClockP.nc file.

The microcontroller operates with two battery of 1.5 V or 3.3V with USB
configuration

As for the physical configuration, the VREF + pin is connected to ground,
just as VREF-/VeREF-. The pin VeREF + / DAC0 is connected to a voltage
divider of two resistors of 1 K each, to enter half the voltage  to  the
P6.0 pin.

The Msp430adc12_channel_config_t configuration is:

msp430adc12_channel_config_t config = {
   inch: SUPPLY_VOLTAGE_HALF_CHANNEL,
   SREF: REFERENCE_VREFplus_AVss,
   ref2_5v: REFVOLT_LEVEL_1_5,
   adc12ssel: SHT_SOURCE_ACLK,
   adc12div: SHT_CLOCK_DIV_1,
   sht: SAMPLE_HOLD_4_CYCLES,
   sampcon_ssel: SAMPCON_SOURCE_SMCLK,
   sampcon_id: SAMPCON_CLOCK_DIV_1
 };

The problem I have is that when I run the application TestADC done correctly
the LEDs light up accordingly. But if I modify the application to run a
timer anyone regardless of where the code is not able to run it with calls
to the ADC, even if you disable all calls from the ADC and read, readnow,
etc and let the timer but the * APPC. let nc setup with components such
DemoSensorC new () as Sensor ... TestAdcC.Read -> sensor, the timer is
running but does not meet the repetition time tested indicators on an
oscilloscope pulses having approximately 48 ms, for 1000 ms one hand as 5
milliseconds for another for example. If you run other applications without
using the ADC the pulses are correct as I have observed on the oscilloscope.
This problem happens with both battery operated and USB feed, I have also
tried other options in msp430adc12_channel_config_t with the same result.

A greeting and I hope your answer.

Thanks
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to