Trying to display 7 segment BCD on LCD from ADC.

Started by europus in MSP43012 years ago 5 replies

Hi All, I am trying to display BCD numbers on LCD from 16 bit ADC. The code posted below is suppose to 1st parse the 16 bit ...

Hi All, I am trying to display BCD numbers on LCD from 16 bit ADC. The code posted below is suppose to 1st parse the 16 bit number digit wise and then convert it to corresponding decimal value which i will display on LCD after some processing. The problem is i am not getting the output as desired ...Many variables in this function give out weird values...


Determining the ADC sampling rate

Started by hc08jb8 in MSP43014 years ago 3 replies
ADC

Hello If I set the MCU clock to run off 32kHz crystal and set up a 3 channel ADC sequence data collection:- 1.) How do I determine the...

Hello If I set the MCU clock to run off 32kHz crystal and set up a 3 channel ADC sequence data collection:- 1.) How do I determine the sampling rate? 2.) Varying the extended sampling time should affect the overal sampling rate as well right? Thanks Jay


Circular Linked List to process 40 bytes of data

Started by Pranav in MSP43014 years ago 9 replies
ADC

Hi All, I want to implement Circular Linked List with 40 nodes. I tried to create the linked list in main() program, but it does not work, I...

Hi All, I want to implement Circular Linked List with 40 nodes. I tried to create the linked list in main() program, but it does not work, I put the break point and tried to see, it gets overlapped by the memory for the control registers. Can any one help me ? My application performs ADC at every 50mSec, after 40 samples are acquired the data should be processed after each ADC conversi


Problem of Structure array filling from ADC memory for MSP430F149

Started by svijbhaskar in MSP43013 years ago 4 replies
ADC

Hi to all, The following structure declaration for six arrays of integers for MSP430F1611 __no_init struct channel { int ...

Hi to all, The following structure declaration for six arrays of integers for MSP430F1611 __no_init struct channel { int ch[50]; }ch0,ch1,ch2,ch3,ch4,ch5; for storing the ADC sample values for(k=0;k<50;k++) { ch0.ch[k] = ADC12MEM0; ch1.ch[k] = ADC12MEM1; ch2.ch[k] = ADC12MEM2; ch3.ch[k] = ADC12M


ADC12 Question for High Speed & High Volume on MSP430F1612

Started by Tom Prenderville in MSP43013 years ago

Hi All, I have a development board with an MSP430F1612 which has a 4MHz Crystal on XT2IN and a 32khz Crystal on XIN. I have a requirement to...

Hi All, I have a development board with an MSP430F1612 which has a 4MHz Crystal on XT2IN and a 32khz Crystal on XIN. I have a requirement to use this system to sample a single ADC channel 50,000 times in 300 milliseconds. After all samples are taken, the data can be output in a slower fashion on a UART/SPI/I2C. First, while I think the ADC can sample at this rate, I'm not sure I can


ADC sampling and Conversion Verification

Started by Claro Louie in MSP43011 years ago

Hi Guys, Below is a code that uses the ADC feature of the MSP430F2252 Ucon. The parameters were set to have a 32 samples of the input analog...

Hi Guys, Below is a code that uses the ADC feature of the MSP430F2252 Ucon. The parameters were set to have a 32 samples of the input analog signal. I would like for a confirmation from you if the code below is done correctly. The goal is to have 32 samples of the input signal. Other parameters such as Reference-generator voltage ( REF2_5V) were set. Replies would be much appreciated.... ...


SD16 ADC Internal Reference Voltage

Started by Richard in MSP43014 years ago
ADC

This voltage is supposed to be 1.2V. I am getting erroneous readings from a DC source. When I calculate the internal reference voltage from...

This voltage is supposed to be 1.2V. I am getting erroneous readings from a DC source. When I calculate the internal reference voltage from the ADC values given a known voltage input I calculate an internal voltage of 1.37V. What am I missiing??? Setup code follows. Thanks. Rich SD16CTL = SD16SSEL_2 + SD16REFON; // ACLK SD16INCTL2 |= SD16INCH0; // channel 0 SD


ADS1274 SPI interface - con

Started by "fra...@rocketmail.com" in MSP43010 years ago 6 replies

I'm trying to setup an SPI interface with the ADS1274. I have the MSP in SPI Master mode. The ADC is read only. So I'm triggering a dummy...

I'm trying to setup an SPI interface with the ADS1274. I have the MSP in SPI Master mode. The ADC is read only. So I'm triggering a dummy write on the DRDY pulse from the ADC. The MSP then generate 8 SCLK pulses and fill the RX buffer. However the ADS1274 requires 1 andditional clock cycle before it clocks the data out. So I'm always missong the MSB of the conversion. To get round...


16 bit SPI problem

Started by deepak in MSP43016 years ago 1 reply

Hi fellows, I am interfacing an adc manufactured by TI with MSP 430F139.The ADC uses SCLK from MSP to tranmit 16 bits of A to D .data...

Hi fellows, I am interfacing an adc manufactured by TI with MSP 430F139.The ADC uses SCLK from MSP to tranmit 16 bits of A to D .data serially. MSP has an 8bit spi buffer so the SCLK will stop after exchanging 8 bit until its started again.The slight delay in between in the SCLK exceeds the tolerable jitter limit. Could someone help as how to supply continuous clock from MSP. The


ADC of F2013. Is it really 16 bit?

Started by Resul BEDEL in MSP43013 years ago 1 reply
ADC

Hi everyone, I am newbie in MSP430 series microcontrollers, and I started from latest one which is F2013. I am working on application which...

Hi everyone, I am newbie in MSP430 series microcontrollers, and I started from latest one which is F2013. I am working on application which based on analog inputs, 16 bit Sigma Delta ADC of F2013 was nice choice, I thought... But when I design my prototype circuit and read the signal the result was not so cool. At 1MHz CPU frequency, 1024 OSR, 1.st clock divider=8, 2.nd clock divider=


MSP430 and the ADC12 - Interrupt

Started by adelgald in MSP43012 years ago 3 replies

Hi - Ive got a problem with a programmend ADC-12 Interrupt. Im new at the MSP430 uC and dont know much about special registers to set for a...

Hi - Ive got a problem with a programmend ADC-12 Interrupt. Im new at the MSP430 uC and dont know much about special registers to set for a special Timing. When I started my Program everything is OK, till the moment the first ADC-Interrupt came. Since then - the ISR - is never leaved. So for that, how can I set the frequency how often the ISR is fired? Ive configured it following way...


Re: MSP430F2012 - analog voltage at IO/ADC pin while device is unpowered

Started by old_cow_yellow in MSP43011 years ago
ADC

I think you should have put F2012 in LPM4 instead of removing Vcc. Without Vcc, it is not a good idea to have any signal on any pin. --- In...

I think you should have put F2012 in LPM4 instead of removing Vcc. Without Vcc, it is not a good idea to have any signal on any pin. --- In m...@yahoogroups.com, Aaron Greer wrote: > > I've come across a strange behavior in my current design. > Under certain conditions the MSP430 is un-powered, but there is an analog signal on one or more IO/ADC pins. I can measure a cur


MSP430F2252 ADC problem

Started by ckue...@primexinc.com in MSP43010 years ago 8 replies

Hello, I ported known working code from a 1232 part to a 2252, and want to add an ADC input on A15. I presently use A0, and it's working...

Hello, I ported known working code from a 1232 part to a 2252, and want to add an ADC input on A15. I presently use A0, and it's working correctly. I am running the IAR IDE. Here's my setup code for the A0 and A15 ports. A0 reads battery voltage; A15 will read a thermistor: void TurnOnADC(void) { ADC10CTL0 = ADC10SHT_3 + ADC10ON + ADC10SR + ADC10IE; ADC10AE0 = 0x01; // P2.0 A


PID vs MSP430F2013

Started by "Robert J. Wilson" in MSP43012 years ago 10 replies
ADC

Hi folks, My application adjusts a voltage while monitoring and recording the adjustment. My plan is to use one pin to generate a PWM control...

Hi folks, My application adjusts a voltage while monitoring and recording the adjustment. My plan is to use one pin to generate a PWM control signal into a driver transistor and use another pin-pair to monitor the output voltage. Recording the PWM value will tell the offset of the original signal. Right now, I'm looking at using three pins: (1) PWM output, (2) ADC input, and (3) ADC ground...


MSP430F2012 - analog voltage at IO/ADC pin while device is unpowered

Started by Aaron Greer in MSP43011 years ago 5 replies
ADC

I've come across a strange behavior in my current design. Under certain conditions the MSP430 is un-powered, but there is an analog signal on one...

I've come across a strange behavior in my current design. Under certain conditions the MSP430 is un-powered, but there is an analog signal on one or more IO/ADC pins. I can measure a current (5-10uA) entering the MSP430 pin and apparently leaving the VCC pin. One explanation I can think of is that the internal ESD protection devices are forward biased and conducting out the VCC pin. The other ...


ADC10 results ok in JTAG, different in standalone run

Started by hc08jb8 in MSP43014 years ago 6 replies

Hello Guys I have a strange problem, I am logging pressure sensor data using F1232 via its one of the ADC channel. When the pressure sensor...

Hello Guys I have a strange problem, I am logging pressure sensor data using F1232 via its one of the ADC channel. When the pressure sensor is stable, I get a 0.69V~0.71V (i.e. no presssure applied). This works as expeced when debuggin in JTAG mode. However when I run the same code standalone, the ADC reading for the same case is fluctuatig (0.69V~0.80V). The only difference is that I


Timer_A and Timer_B Sync

Started by Ederson Cichaczewski in MSP43011 years ago 9 replies

Hi, I want to measure the phase delay in an analog circuit applying a 50KHz sin= e wave generated in DAC (that access a table using DMA) and...

Hi, I want to measure the phase delay in an analog circuit applying a 50KHz sin= e wave generated in DAC (that access a table using DMA) and read this same = signal with the ADC of the MSP430F156 microcontroller. I want to reconstruc= t the sine wave read=C2=A0with 160 points, so the ADC=C2=A0speed doesn't su= pport sample the 50KHz sine wave, however, I'm using a technique that I rea= d 160...


eZ430-2500RF ADC sampling multiple channels

Started by cvrider in MSP43011 years ago 1 reply
ADC

I am trying to create code to continuously make a single sample of a couple ADC channels and send it over an RF link to the access point. I am...

I am trying to create code to continuously make a single sample of a couple ADC channels and send it over an RF link to the access point. I am working off the sample that comes with the eZ430-2500RF dev kit. I would like to sample A0 and A1. However, my code seems to capture the same value for both A0 and A1 as if it is not correctly sampling A1. My code is here: ADC10CTL0 = ADC10SHT_...


how much is long a time to convert with the ADC?

Started by carmelo76 in MSP43010 years ago 4 replies
ADC

Hello everyone, I'm working with MSP430f1611 and I want to read with the ADC12 and I noticed that time between the call of the Read and the...

Hello everyone, I'm working with MSP430f1611 and I want to read with the ADC12 and I noticed that time between the call of the Read and the sleep of uC is about 40 ms. In particular the time between the call of the Read and the call of ReadDone is long (like 16 ms). Why? I look the manual of MSP430f1611 and the ADC is a SAR 12 bit and the clock is 5 MHz and so I expect a much lower time!...


F1232 ADC input impedance

Started by brer_spam in MSP43014 years ago 1 reply
ADC

I've been unable to locate the input impedance of the ADC analog input pins for either the F12x2 or F161x devices. The datasheet has the note...

I've been unable to locate the input impedance of the ADC analog input pins for either the F12x2 or F161x devices. The datasheet has the note : "The leakage current is defined in the leakage current table with P6.x/Ax parameter." but I can never find the specified table! Any ideas? Could any one estimate the input impedance? My application is to compare the (resistor voltage