Digital noise when using ADCINC | Forum | PSoC Developer
A A A

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —





 

— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Digital noise when using ADCINC
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
July 19, 2017
10:33 PM
ud23

Newbie
Members
Forum Posts: 2
Member Since:
July 19, 2017
sp_UserOfflineSmall Offline

if (ADCINC_fIsDataAvailable() != 0)
{
unsigned int ui = ADCINC_wClearFlagGetData();
...
}

you need to w8 for adc to complete its conversion use while loop like this

while(ADCINC_fIsDataAvailable() != 0);
unsigned int ui = ADCINC_wClearFlagGetData();
April 6, 2016
12:25 PM
liorda6

Newbie
Members
Forum Posts: 1
Member Since:
April 6, 2016
sp_UserOfflineSmall Offline

Hi all,

I'm trying to add an analog input to my cy824794 project, which is a basically an SPI based digital sensor.

I added an 10bit ADCINC as follows:
** you don't have permission to see this link ** Sign-Up Here


** you don't have permission to see this link ** Sign-Up Here

But I''m getting some digital noise on the readings. Here's the relevant part of the schematics.
** you don't have permission to see this link ** Sign-Up Here

I call these at initialization:

ADCINC_Start(ADCINC_HIGHPOWER);
ADCINC_GetSamples(0);

And this on the main loop:

if (ADCINC_fIsDataAvailable() != 0)
{
unsigned int ui = ADCINC_wClearFlagGetData();
...
}

Can anyone help?

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 66

Currently Online:
27 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity
Members Birthdays
sp_BirthdayIcon
Today None
Upcoming None

Top Posters:

graaja: 3086

danadak: 2052

Bob Marlowe: 1509

wrightpc: 736

ericb: 678

lovell: 665

eg2ah: 516

alager: 506

jiml: 440

baxsie: 420

Member Stats:

Guest Posters: 0

Members: 15194

Moderators: 0

Admins: 1

Forum Stats:

Groups: 12

Forums: 41

Topics: 6139

Posts: 28750

Newest Members:

Thomasbaize, Jerrykef, Josephric, GregoryDrima, JysgnnickPsigyqirorufijpg25, DamianMix, t.chernushkinWigh, Buzaghmafer, Kyaraldfer, BrianBib

Administrators: HazAdmin: 67