- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Everyone,
I know the concept of data transfer via DMA. But i have still confusion, how i can transfer an 8 bit data to DAC if for example:
1. I performed some calculation (e.g over sampling) on my ADC real data and save it into a variable X. So now, my data would be like this:
ADC-Data = adc_Startconversion ();
I know i can directly transfer data from ADC to DAC via DMA wizard.
But, How i can send my Data stored in "X" to DAC? Through write command or is it possible to transfer it via dac?
X = Oversampling (ADC-Data);
Looking forward for your reply.
Best Regards
Awais
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But, How i can send my Data stored in "X" to DAC? Through write command or is it possible to transfer it via dac?
When "X" is a variable you will have to use VDAC8_SetValue(X)
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
But, How i can send my Data stored in "X" to DAC? Through write command or is it possible to transfer it via dac?
When "X" is a variable you will have to use VDAC8_SetValue(X)
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You return from main(). This will start over the project and spoil the results.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You mean the return 0 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, without the return 0 the main will exit when the last closing "}" is reached. Same effect. What is missing is the infinite loop that lets the program run as long as power is applied.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oh yes.
But still, output doesn't changed 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use debugger to find reason.
Bob