- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dear developers,
Is it possible to take out the current count value from the PSoC 5 counter component in a parallel 8 bit bus and give it directly to the VDAC as input data.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could do that with DMA. To get a wired bus-connection you will need to change both components. Probably not impossible, but will take some time.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Verilog solution would be one way. But fastest solution as suggested is
to use DMA.
If you are doing waveform generation use WaveDAC component.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
creating a custom counter component in Verilog that exposes the count as output would be enough and then setting DAC bus data source and external Strobe on the VDAC component.
but as Dana mentioned DMA is the easiest way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks bob, danaa & zeta for ur response,
any example to get started with the verilog based counter would help me a lot. can you suggest or direct me to some examples.
- 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
bob, I tried using the DMA , but while configuring the DMA for data source the counter is not listed as a component even though other peripherals like ADC status register etc.. are listed in the configuration. how to solve this ?. specifically can you show some examples where counter is used as a data source for the DMAC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I typed into the Keyword Search on top of this page "counter dma" and found this thread www.cypress.com/
There is an old project that (after some updates) can be loaded and run. Keep in mind that the DMA is not fed by the counter-register but from the FiFo which gets its values through a capture request.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Adresses are defined in the components .h file and cydevice.h. The
latter generally a base address for which you would need to supply
an offset for. Also you will see register defines, pointers to them, for
controlling specifc device registers.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Also this might help -
http://www.cypress.com/?rID=82680 AN84810 PSoC® 3 and PSoC 5LP Advanced DMA Topics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear developers,
One of you have suggested the use of wave DAC component. I'm using PSoC creator 2.1 SP1 I couldn't find any WaveDAC component in the creator component window. How to get the WAVE DAC COMPONENT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It was not released in 2.1. You should be using 3.0 as it fixes many
bugs and updates components.
You can import it here -
http://www.cypress.com/?rID=54728 AN69133
Regards, Dana.