cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

Anonymous
Not applicable

Hello Everybody ,

   

I want toKnow the possible means to transfer continuous  Digital output data of the DelSig ADC  through the USB simultanuously.  and if the answer is using DMA i cant find the Adresses for their TD and channel so i can use it as Periferal to Periferal transfer ADC->USB.

   

Thanks in advance

   

Maxdamage

0 Likes
Reply
13 Replies
Esteemed Contributor II

On Creator's start page you can search for examples. There is one named USBFS_AUDIO which uses DMA to transfer the data. This will probably help answering your questions.

   

 

   

Bob

0 Likes
Reply
Valued Contributor II

and take a look at   Project#102 – USB Audio using the PSoC
But I think  USBFS_AUDIO  - not a good idea - ADC data distorted Windows (volume control and built-in filter).

   

maybe  Is it realistic to use a high speed  USBFS example project DMA Auto Mode,  but in emulation UART mode ???

0 Likes
Reply
Esteemed Contributor

This discusses addresses, where to find them, for ADC (and other considerations)  -

   

 

   

    

   

         

   

http://www.cypress.com/?rID=44335     AN61102

   

 

   

 

   

Regards, Dana.

0 Likes
Reply
Anonymous
Not applicable

Hello PSoC masters, thanks for reply.

   

I  have another problem most of the projects i download it from here won't work i think they are not compatible with my version of the creator what do you propose?(screen shot for it is attached).

   

Another thing  AN61102 doesn't contain the distination address of the USB periferal . I've read that it isn't possible to transfer ADC output directly throuth the USB it must go through the SRAM first is that true?

0 Likes
Reply
Esteemed Contributor II

Yes, you are using Creator 2.0 while the latest version is Creator 3.0. You can download latest from Cypress's website and install, it will be co-existent with the older 2.0. Download from here secure.cypress.com/psoccreator/

   

 

   

Bob

0 Likes
Reply
Valued Contributor II

I tried to make a simple project ADC-> USB (UART).

   

But I do not know how to use DMA for USBUART
 

0 Likes
Reply
Esteemed Contributor

This might help -

   


   

     

   

            

   

http://www.cypress.com/?rID=39553     AN56377

   

 

   


   

Regards, Dana.

0 Likes
Reply
Anonymous
Not applicable

Hello people,

   

For the first time in my life i think when i read more  i became more confused !!

   

i've read the application notes suggesed by Dana which is AN56377. its very comprehensive and complex but it isn't that informative. i think the most similar project to what i wan't to do is Project 3: Increasing USB Throughput with DMA Automatic Memory Mgmt. I am trying to compile this project which will facilitate understanding what they are trying to do help me solve the error.

   

I want to know how can i fill the SRAM part in the cut through mode of the USB with ADC output.

0 Likes
Reply
Esteemed Contributor II

A picture does not help much, best is always to upload the complete project since it contains all your settings. Use Creator -> File -> Create Workspace Bundle and upload the resulting archive (do NOT use chrome, will not work)

   

 

   

Bob

0 Likes
Reply
Anonymous
Not applicable
        After I install the new version of the creator most of my previous projects seem to not work appropriately!!   
0 Likes
Reply
Esteemed Contributor

Yes, boot code changed, libraries moved to nano libraries, look at

   

release notes in Creator Documentation and google "psoc creator

   

3.0 problems" and you will see where these issues were handled.

   


   

Regards, Dana.

0 Likes
Reply
Anonymous
Not applicable

Hello guys,

   

I am trying to perceive one of the example projects that is pointed out by Bob (USBFS_AUDIO) and Iam wondering if it has app note associated with it ?

   

#define NUM_BUF (10u)
#define TRANS_SIZE (32u)

   

Why to use 10 TD and 32 Transaction bits?

   

Why to use unsigned numbers ? we normally use the number naked.

0 Likes
Reply
Esteemed Contributor II

Have you ever seen a negative buffer count? This IS an unsigned number, and so it is expressed as such.

   

That is done according to the MISRA-C standard en.wikipedia.org/wiki/MISRA_C

   

 

   

Bob

0 Likes
Reply