- 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
AbDe,
This is a 'dirt' easy project.
Drop the WaveDAC8, a Analog Pin and a Logic Low '0' on the TopDesign.
Next configure the WaveDAC8 as shown here:
Next, go to the DWR/Pins and set the port pin to use for the output of the WaveDAC8: (P3.7 was selected here)
Lastly add the following line just after the CyGlobalIntEnable; statement:
WaveDAC8_Start();
Build the project (with no errors) and viola! A 10KHz squarewave from 0 to 1.0V from P3.7
Attached is another version of the project file.
If you're still having problems, archive your project and attach it to this thread.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AbDe,
I'm trying to understand your question.
Are you trying to drive a load connected to the PSoC5 output at 1V?
If so, what is the current requirements to the load?
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having trouble getting the Psoc to mimic a function generator doing a square wave at 1v amplitude at 10KHz to control a load board with 16 to 1 voltage divider going into an op-amp then to a mosfet gate to control a load. It works fine with the function generator and with a potentiometor on the board but me and my partner can not get it work with the psoc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AbDe,
I've attached a project file where a WaveDAC8 component can act as a AWG (Arbitrary Wave Generator).
The AWG in this design starts up at power up with a Square Wave @ 10KHz with a swing of 0V to 1V out of pin P3.7.
This should be a good start.
There is another way to generate a 10KHz squarewave with a 0 to 1V swing. It can generate squarewaves from < 1Hz to 10MHz. But only squarewaves.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was not able to open your file but used the WAVDAC8 example and set it to the parameters and still could not get this to work . It works fine with a real function generator but can not get it to work with the WAVDAC8 or a PWM block and the IDACs. Do you know of any reason why with the same setting the Psoc would not be able to mimic the function generator? I am at a loss. Thank you for your time that you have given.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AbDe,
This is a 'dirt' easy project.
Drop the WaveDAC8, a Analog Pin and a Logic Low '0' on the TopDesign.
Next configure the WaveDAC8 as shown here:
Next, go to the DWR/Pins and set the port pin to use for the output of the WaveDAC8: (P3.7 was selected here)
Lastly add the following line just after the CyGlobalIntEnable; statement:
WaveDAC8_Start();
Build the project (with no errors) and viola! A 10KHz squarewave from 0 to 1.0V from P3.7
Attached is another version of the project file.
If you're still having problems, archive your project and attach it to this thread.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AbDe,
Was my last post useful to create a AWG?
"Engineering is an Art. The Art of Compromise."