Adc data register read problem

Started by Timucin KANATLI in LPC200010 years ago

Hi, I am sure missing sometihng. getting stuck while reading 2148 Adc data registers. what's wrong with this : unsigned short...

Hi, I am sure missing sometihng. getting stuck while reading 2148 Adc data registers. what's wrong with this : unsigned short Get_urun2_avg(void) { cahr i; unsigned int aa; for(i=0;i


ADC/DAC Clarification

Started by omprakash alone in LPC20008 years ago 1 reply

Hi, I just want to know the once clarification about the ADC/DAC(lpc2148). Whether its unipolar or bipolar, if its unipolar, how to...

Hi, I just want to know the once clarification about the ADC/DAC(lpc2148). Whether its unipolar or bipolar, if its unipolar, how to generate -ve values? Omprakash Alone Your Mail works best with the New Yahoo Optimized IE8. Get it NOW! http://downloads.yahoo.com/in/internetexplorer/


USB mass storage class

Started by supriya albal in LPC20008 years ago 3 replies

I am implementing LPC2148 as mass storage device, which i will use in data acquisition system. Data sensed by ADC will be transferred to PC...

I am implementing LPC2148 as mass storage device, which i will use in data acquisition system. Data sensed by ADC will be transferred to PC through USB. Is it necessary for me to write ADC readings in FAT file format in FLASH?


Re: ADC Interface

Started by samiehg in LPC200011 years ago

Thanks Richard. I am actually using CSTART to do the conversions but use CS to select the ADC I want to talk to. The problem I am facing...

Thanks Richard. I am actually using CSTART to do the conversions but use CS to select the ADC I want to talk to. The problem I am facing is that I want to use the sweep mode, and have configured it generate INT after the fifo is 1 level deep. So after I have sent the arm period, I would expect the INT to go low AFTER I have generated TWO CSTART pulses. In my case I see the INT going low...


Regarding LPC23xx ADC

Started by "r.jensenm" in LPC200010 years ago 1 reply
ADC

Hi guys, I have tried to setup a software controlled AD conversion for ch 0-5=20 but I only read 0x3FF from the result registers?? Below is...

Hi guys, I have tried to setup a software controlled AD conversion for ch 0-5=20 but I only read 0x3FF from the result registers?? Below is part of my code. First adc_init is called once then adc_run=20 is called forever. While stepping through the code with debugger I=20 can see that each channels result register is updated but no mather=20 what I apply to the adc input I get a 100% rea...


Input impedance of LPC2103

Started by streethawk in LPC200010 years ago 4 replies

Hi i need to monitor the (RTC) battery voltage using ADC in LPC2103. I need to know the impedance just so that the battery does not get drained...

Hi i need to monitor the (RTC) battery voltage using ADC in LPC2103. I need to know the impedance just so that the battery does not get drained out due to the ADC. Would really appreciate if any one could help. Thanks in Advance. Saroj s...@rts.com.np www.rts.com.np


LPC ADC issue

Started by Nishant Agrawal in LPC20008 years ago 4 replies

Guys, How accurate do you think the ADCs of ARM controllers are?? I am currently working with LPC2103 and LPC2362. The ADC values are close to...

Guys, How accurate do you think the ADCs of ARM controllers are?? I am currently working with LPC2103 and LPC2362. The ADC values are close to the analog input but not accurate. The sensors I am going to use are quite costly, cost because of there accuracy, but the ADCs in ARM don't seem to be that accurate. Can I use any external circuitry to reduce the errors? Any ideas are welcome... ...


ADC/DAC Clarification

Started by omprakash alone in LPC20008 years ago 5 replies
ADC

Thanks, If ADC/DAC are unipolar, then why I am getting full sine wave at o/p with shifted above 0 volt. I am giving (-500mv to 500mv) 1...

Thanks, If ADC/DAC are unipolar, then why I am getting full sine wave at o/p with shifted above 0 volt. I am giving (-500mv to 500mv) 1 volt p-p i/p through signal generator, and i am getting same ?Vpp 1 volt at o/p, I think it should 500mv only. Omprakash Alone


LPC2136 ADC Problems

Started by Mauro Luiz in LPC20005 years ago 3 replies

?Hi guys, I'm trying to use a AD converter input on LPC2136 and I'm having some problems. I revised the ADC registers configuration...

?Hi guys, I'm trying to use a AD converter input on LPC2136 and I'm having some problems. I revised the ADC registers configuration many times and can't find the problem. The AD conversion just start on the right channel, with the righ frequency but ever returns zero. I'm using the folow code on IAR Embedded Workbench 6.5 //init AD1.6 (PIN 1, P0.21) void initAd_16(void) ...


To store ADC results in memory

Started by supriya albal in LPC20009 years ago 3 replies

I want to store ADC result in memory. How can I do that? I find memory map of lpc2148 very confusing. I don't want result to be lost even after...

I want to store ADC result in memory. How can I do that? I find memory map of lpc2148 very confusing. I don't want result to be lost even after turning off power. So can I store it in flash? And how?


errors in my ADC code for LPC2148 (beginner)

Started by lucky_suhas in LPC20007 years ago 18 replies

Hi, i have just started learning to use the LPC2148. the code is for using one of the channels in ADC0.i tried compiling my code and there seems...

Hi, i have just started learning to use the LPC2148. the code is for using one of the channels in ADC0.i tried compiling my code and there seems to be something wrong. i'm getting an "Error: C9932E" in "keil". the purpose of the code is to see how adc works on this micro-controller. could anyone tell me what i am doing wrong? my code is as below: #include void init_a


LPC2378

Started by sukhdeep singh in LPC20009 years ago
ADC

Hi, =A0=A0 I want to use two I2S based ADC with LPC2378. can i attached two I2S= based ADC with LPC2378. Regards Love Cricket? Check...

Hi, =A0=A0 I want to use two I2S based ADC with LPC2378. can i attached two I2S= based ADC with LPC2378. Regards Love Cricket? Check out live scores, photos, video highlights and mor= e. Click here http://cricket.yahoo.com ------------------------------------


LPC1769 ADC - won't read below 0.73v?

Started by Triffid Hunter in LPC20005 years ago 1 reply
ADC

Hi all, I have a very strange issue for you today, the ADC on my lpc1769 is misbehaving! It's behaving like the VREFN pin is being held at...

Hi all, I have a very strange issue for you today, the ADC on my lpc1769 is misbehaving! It's behaving like the VREFN pin is being held at 0.73v when in fact it's grounded. It's measuring a 0-3.3v signal - a 100k thermistor with 4k7 pull-up, and 10uF tantalum capacitor to ground to keep the impedance low The issue I'm having is that the readings drop more than the voltage does- at 0.9...


Re: Demo Code for olimex LPC 2378 STK

Started by cmay...@yahoo.com in LPC200010 years ago

Hi, I have the same problem. Did you solve it? Thanks. S M Hi > > I have the code for the LPC 2378 but this happens when I compile...

Hi, I have the same problem. Did you solve it? Thanks. S M Hi > > I have the code for the LPC 2378 but this happens when I compile it > > What are those variables are they 2378 Registers or globle variables? > > ------------------------------------------------------------ > Building configuration: adc - Flash_Debug_2378-SK > > Updating build tree... > > adc.c > > Error[Pe020]: id


LPC2138 SSP port questions

Started by beedward2 in LPC200013 years ago

Hello all, I want to connect an LPC2138 to a Cirrus Logic serial ADC, the CS5451A. This chip is a 6-channel, 16-bit...

Hello all, I want to connect an LPC2138 to a Cirrus Logic serial ADC, the CS5451A. This chip is a 6-channel, 16-bit sigma-delta ADC that samples all 6 channels simultaneously. It acts as an SPI master, and outputs all 6 words of data in one continuous 96-bit transmissio


5V tolerant pin tips ? 5V ADC VREF ?

Started by armdeveloper in LPC200011 years ago 4 replies

I've never used a 3.x Volt device before. I see the LPC2148 has "5V Tolerant" IO pins. Can I use them as I would the pins on a 5V device or...

I've never used a 3.x Volt device before. I see the LPC2148 has "5V Tolerant" IO pins. Can I use them as I would the pins on a 5V device or are there things I must be aware of ? As far as the ADC is concerned, the manual says: "? Measurement range 0 V to VREF (typically 3 V; not to exceed VDDA voltage level)." I need to interface to a device that has a 1 to 5V analog output. Is t


ADC Burst/Scan not functioning in LPC2114. Need example.

Started by weverest3 in LPC200013 years ago

I am trying to get ADC channel-scanning to operate. The function is only available in burst mode. The following code looks good, but only...

I am trying to get ADC channel-scanning to operate. The function is only available in burst mode. The following code looks good, but only the lowest-order channel is captured. Any ideas? --------------------------------------------------- void Adc_Init(void) { ADCR_bit.SEL = 0x3; // Sample CH0 & CH1 ADCR_bit.CLKDIV = (4-1); // Divide PCLK


SSP LPC2148

Started by mgiaco82 in LPC200011 years ago 5 replies

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave...

Hello I have some questions concerning the SSP on the LPC2148. I need to speak with one ADC and one DAC. So therefore I need 2 slave select pins. But the LPC has only one. I know that I can use a normal GPIO for slave select, but I want to use the FIFO for TX and RX. Let me explain. When I speak to the ADC (8Ch x 16Bit) I need to write 8 word commands one for each CH. After each command th...


ADC inputs = 0

Started by omprakash alone in LPC20008 years ago 6 replies
ADC

hi, I am trying to store adc i/p sine wave to array of 256, but most of the array contents are zero, not values, should i have done something...

hi, I am trying to store adc i/p sine wave to array of 256, but most of the array contents are zero, not values, should i have done something wrong in below code? for (index=0;index<256;index++) do{ ?i?1DR0; ?}while((i & 0x80000000)==0); ?XX[index]=(float)((i >> 6) & 0x03FF);? //Extract the A/D result } } Omprakash Alone


LPC2138 ADC missed samples when using external trigger

Started by russellelexon in LPC200011 years ago

Hi, I am having strange ADC issues when starting conversions using an external input signal (START = 010), on PO_16. I am using this method...

Hi, I am having strange ADC issues when starting conversions using an external input signal (START = 010), on PO_16. I am using this method to takes samples at a synchronous rate to some external hardware. The problem is, evey so often samples are just skipped. It seems to have no correlation to the sampling speed, I have tried sampling from the Hz region to the hundreds of kHz, and t...