EmbeddedRelated.com
The 2024 Embedded Online Conference

Help with ADC 10

Started by Joe Radomski in MSP43017 years ago

This is the first time I'm using the ADC10.. In the past all my projects have used the adc12.. I am using the following code to set up the...

This is the first time I'm using the ADC10.. In the past all my projects have used the adc12.. I am using the following code to set up the ADC.. I need it to continually sample to a buffer.. In the adc interrupt I am reading and averaging the data then storing into another array.. The problem is, that I'm not getting any conversions.. Any ideas?? Here is my code to set up the adc. accordi...


Any one read the "MSP430 State Machine" book by Tom Baugh?

Started by abernax in MSP43016 years ago 5 replies

Most of you guys are well advanced in the art of the MSP430, so this book is probably not on your gotta-read-it-right-now list, but I was...

Most of you guys are well advanced in the art of the MSP430, so this book is probably not on your gotta-read-it-right-now list, but I was wondering if anyone has read it and if they found it to be a good practical guide with example code. I have been dabbling with the MSP430F2232 and I would like to learn more about: a) doing multiple-channel (A0-A7) ADC10 reads b) writing some co...


Analog to Digital Conversion Question (MSP430F1222)

Started by Ender Bozkurt in MSP43018 years ago

Hello, We are trying to make a low battery indicator using ADC10. However; the compiler gives an error saying that the ADC control registers...

Hello, We are trying to make a low battery indicator using ADC10. However; the compiler gives an error saying that the ADC control registers and relevant bits are undefined. We define them in the header file but the error still exists. When we use "#ifdef", the error disappears but this time we cannot debug the code. The codes are as follows: (In msp430x12x.h) #define __MSP430_H...


ADC10 on 2274

Started by "Hoelzer, Kristen L (S&T-Student)" in MSP43015 years ago 2 replies

Hi, I have been trying to use my MSP430-rf2500 to read an analog voltage input and send the data wirelessly to the other MSP430-rf2500, similar...

Hi, I have been trying to use my MSP430-rf2500 to read an analog voltage input and send the data wirelessly to the other MSP430-rf2500, similar to the Temperature sensor program. It has not been working, so I downloaded the following example code released by TI to the device and discovered that no matter what voltage I apply to pin 3 (including 0V), the red LED stays on. Why would this be hap...


DTC Issue regarding reading of RAM memory??

Started by roknudson in MSP43016 years ago 5 replies

Hi All, I'm having some difficulty reading from RAM consistently using the __data16 pointer structure. I could swear that it was all working...

Hi All, I'm having some difficulty reading from RAM consistently using the __data16 pointer structure. I could swear that it was all working one day and then the next it's like my pointer assignment doesn't work. I'm using the DTC to read five ADC10 channels. That part works. I can look at the memory in my debug window and it reflects appropriate analog levels. I really just need a...


Regarding ADC10MEM

Started by "paddu.koti" in MSP43016 years ago 1 reply

Hi, I am using ADC10 in msp430f1232 and I have set analog input as pin 20 (A4) as shown in the program.When using A0 as the analog input I am...

Hi, I am using ADC10 in msp430f1232 and I have set analog input as pin 20 (A4) as shown in the program.When using A0 as the analog input I am getting the right output,but if I use A4(pin20), I am not able to get the correct values in ADC10MEM register,the LED starts blinking even if there is no analog input in A4 and the ADC10MEM register value shows more than 0x1FF. Can anyone please...


Potentiometer + pwm

Started by felipegazzoni in MSP43012 years ago

Hi, I'm new to MSP430 and would like someone to help me in this problem. I need to simulate a pwm using a potentiometer connected to a port of...

Hi, I'm new to MSP430 and would like someone to help me in this problem. I need to simulate a pwm using a potentiometer connected to a port of the ADC10 but am having trouble creating a routine for stopping TimerA and ADC10_vector. Can anyone help me? It is a very simple problem ... Thanks #include "msp430g2231.h" void ini_ADC10(void); void ini_TIMERA(void); void ini_CLOCK(void); void in...


adc10 sequence sampling problem

Started by markl963 in MSP43015 years ago 2 replies

Hi all, I have a bit of problem with sequence adc sampling on the msp430F22x2. I trying to sample five channels sequentially but it seem the...

Hi all, I have a bit of problem with sequence adc sampling on the msp430F22x2. I trying to sample five channels sequentially but it seem the data transfer stop working after sampling the first three channels. Has anyone come across this problem before? I am using a MSP430F2232 micro & rowley. #include "msp430x22x2.h" unsigned result[5]; void main(void) { WDTCTL = WDTPW + WDTHOLD...


Reading from multiple channels using ADC10 - DTC

Started by chaitanyakulkarni1984 in MSP43013 years ago 1 reply

Hi, I am trying to read voltage values on two channels on eZ430-RF2500T. Although I can successfully read from single channel, I am unable...

Hi, I am trying to read voltage values on two channels on eZ430-RF2500T. Although I can successfully read from single channel, I am unable to do so using two channels. Here is my code: int * readPtr = (int *)0x200; ADC10CTL1 = INCH_2 + CONSEQ_1; ADC10CTL0 = REF2_5V + SREF_1 + ADC10SHT_2 + REFON + ADC10ON + ADC10IE; for (countDown = 240; countDown > 0; countDown--); //delay to allow


MSP430G2553 ADC triggering by Timer A

Started by nikolanikolovvv in MSP43011 years ago

I want to trigger ADC10 of msp430G2553 from timer A without interrupt ,but my code doesn't make conversation... The sampling rate is 0.2Hz i...

I want to trigger ADC10 of msp430G2553 from timer A without interrupt ,but my code doesn't make conversation... The sampling rate is 0.2Hz i want to take one sample every 5 seconds and store 100 samples in RAM memory. #include // Header file for this device #include #include #define LED0 BIT0 #define LED1


Weird ADC results

Started by finfets in MSP43019 years ago 11 replies

Hi, After lots of figuring out, I finally seem to have gotten my ADC10 to work. I used another MSP430 to send a square wave to my...

Hi, After lots of figuring out, I finally seem to have gotten my ADC10 to work. I used another MSP430 to send a square wave to my receiving MSP430, and my receiving MSP430 seemed to get data results ok: ie: results: 0, 1023, 0, 3, 1023, 0, 1024, 0, 0, 1024, 1023,... The annoying thing is that interspersed at times is a group of two values that are the same.. I guess my baseband algorithm


Problem measuring voltage with ADC10 MSP430F1232

Started by ravanveenendaal in MSP43014 years ago 3 replies

Hi all, I'm trying to measure 12 volt with the ADC of the msp430f1232. I use a voltage divider (10k and 1k resistor), so I see 1.09 volt over...

Hi all, I'm trying to measure 12 volt with the ADC of the msp430f1232. I use a voltage divider (10k and 1k resistor), so I see 1.09 volt over the 1k resistor. After I initialize the msp430 for ADC conversion and I connect this voltage to A0 of the ADC it drops to 0.23 volt! Is this normal behavior? I would expect that this voltage would hardly change, because of the high input impedance. Also t...



The 2024 Embedded Online Conference