CyGlobalIntEnable; /* Enable global interrupts */
in front of
improve the situation?
I added it, but still no voltage present on the pin connected to the VDAC. Furthermore, I changed the pins to prevent that my signals are affected by the capacitors that are connected to some of the pins. Input is now on P0 and VDAC output is on P0.
I modified the schematic as below
Since my hand made funcgen generates almost to 0V, the ADC detects as a negative so the bottom value come to negative value, I guess.
P0_1 = P0 48
P0_2 = P0 49
I tried your project, but it does not work for me. The result I get using an AC wave with 200 mVpp with 500 mV offset and 100 Hz is seen in the scope plot. This is not what I expect the VDAC to do.
I am kind of confused why this happens. Also, why does the VDAC need the strobe input in order to give an output?
If you have any suggestions that will help me understand and solve this issue, that would be greatly appreciated! What I would like to recreate is this How to Create an Analog Filter with PSoC 5LP - YouTube , as I am interested in knowing what happens when I want to filer high frequency signals.
I changed some settings and ran the test again. In blue is the output of the VDAC(0-1.020V), which is now the same as my input, which I already specified. The question for me still remains why the strobe input for the VDAC is needed to output a voltage.
There is also a difference when the VDAC is set to output between 0-4.080V, as seen in the scope plot. I expect that this happens due to the loss in accuracy.
I'm sorry for confusing you.
As the previous project is "a kind of result" after I tweaked with your project.
So from the DAC8 dialog, I also thought "Register Write" option should work,
but I just wanted to sync the end of DMA and strobe of DAC8.
So I hope that at least the initial "issue" of generating output from DAC8 is somehow solved.
(There could be better methods though.)
Meantime, to be honest I am not an analog expert, so if you need help with Analog Filter,
please create another discussion with such title.
No worries, I am already very glad that I can generate an output with the VDAC. To figure out why the VDAC needs the strobe input, I will open a new forum post.
An other curious issue I now ran into is the fact that I changed the my initial project based on the changes you also implemented. When I build and flashed this onto the PSOC, it gave me the same result as my initial scope plot (seen in my previous post). Did you make any other changes, besides the schematic changes you already indicated?
Thank you very much for the help.
1 of 1 people found this helpful
Last night (it was after midnight), my brain was pretty exhausted,
so I tried to reproduce what I did to your project.
But to my surprise, your original project is working with only the modification to the pins.
P0_1: P0 48
P0_2: P0 49
Sine wave 0.9V p-p with 0.05V DC
Sine wave 100 Hz 0.9V p-p with 0.05V DC offset
So after all, the strobe was not required to make this project work.
BTW, I wonder why last night initially your program was not working...
May be it was because of the pin choice...