PSoC 5 counter value as VDAC input

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 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.

0 Likes
11 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

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.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Have a look into the PSoC Sensei blog here www.cypress.com/

   

 

   

Bob

0 Likes
Anonymous
Not applicable

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.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Also this might help -

   

 

   

    

   

          

   

http://www.cypress.com/?rID=82680     AN84810     PSoC® 3 and PSoC 5LP Advanced DMA Topics

0 Likes
Anonymous
Not applicable

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.
 

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

0 Likes