Not applicable
Jan 26, 2015
12:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2015
12:25 AM
hello..
can anyone kindly teach me step by step how to read the value ADC from a LDR?
I am very new to this, so I hope anyone can teach me step by step.. I am using MicroController XMC2GO
thanks alot!
can anyone kindly teach me step by step how to read the value ADC from a LDR?
I am very new to this, so I hope anyone can teach me step by step.. I am using MicroController XMC2GO
thanks alot!
- Tags:
- IFX
4 Replies
Not applicable
Jan 26, 2015
12:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2015
12:46 AM
Hi Squall,
I dont really get what you mean by 'LDR' but to read the ADC value, all you need to do is read the value from the result register, GLOBRES.RESULT
I dont really get what you mean by 'LDR' but to read the ADC value, all you need to do is read the value from the result register, GLOBRES.RESULT
Not applicable
Jan 26, 2015
04:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2015
04:28 AM
Hi Jackson.
Thanks for the reply Jackson. I appreciate it..
What i mean by LDR is Light Dependent Resistors, but it does not matter actually, the point is how to read adc value.
hmm.. where can i find the result register, GLOBRES.RESULT?
thanks before for ur explanation!
Thanks for the reply Jackson. I appreciate it..
What i mean by LDR is Light Dependent Resistors, but it does not matter actually, the point is how to read adc value.
hmm.. where can i find the result register, GLOBRES.RESULT?
thanks before for ur explanation!
Jan 26, 2015
09:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2015
09:57 AM
Hi Squall,
you can use the App API (if you are using APPs), or direct register access:
uint16_t result=0;
result = VADC->GLOBRES & VADC_GLOBRES_RESULT_Msk;
In the debugger you can find it in the upper right.
select for Group: VADC
Then VADC.GLOBRES. Right bottom you will find RESULT: ...
Regards
Eric
you can use the App API (if you are using APPs), or direct register access:
uint16_t result=0;
result = VADC->GLOBRES & VADC_GLOBRES_RESULT_Msk;
In the debugger you can find it in the upper right.
select for Group: VADC
Then VADC.GLOBRES. Right bottom you will find RESULT: ...
Regards
Eric
Jan 29, 2015
07:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 29, 2015
07:02 PM
Hi,
You can find more information on how to use the ADC from here ..
http://www.infineonforums.com/threads/1812-XMC_HOT-XMC4500-How-to-do-ADC-Queue-source-conversion
You can find more information on how to use the ADC from here ..
http://www.infineonforums.com/threads/1812-XMC_HOT-XMC4500-How-to-do-ADC-Queue-source-conversion