- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm trying to send data from SRAM to the PC with USBUART and an interrupt but the PC tell me that the device is unknown. I'm using the interrupt with the nqr output of the DMA tha save the data from the Digital Filter Module to the SRAM. How can I solve this problem?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is an example project for PSoC5 and USBUART. Your access to the component is a bit different and I would suggest you to get that example working.
Care for enabling interrupts before you start the USBUART.
Declare your variable "adc" as "volatile" because it is changed in an interrupt handler!
Your data contains binary data only. Consider when sending to PC to convert to ASCII using sprintf().
You may save the device descriptor from the example project to a file and load that file into your TIA project.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, ruben!
Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.
Bob
- 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
Something has gone wrong with your workspace bundle, the archive does not contain all the files needed. Please correct and try again. An archive is usually several 100kB
Bob
- 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
There is an example project for PSoC5 and USBUART. Your access to the component is a bit different and I would suggest you to get that example working.
Care for enabling interrupts before you start the USBUART.
Declare your variable "adc" as "volatile" because it is changed in an interrupt handler!
Your data contains binary data only. Consider when sending to PC to convert to ASCII using sprintf().
You may save the device descriptor from the example project to a file and load that file into your TIA project.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
device is unknown....
This is what happens when USBUART_Start (0, USBUART_3V_OPERATION);
I change to 5 volt USBUART_Start (0, USBUART_5V_OPERATION);
And again, it seems there is a problem sending 64 bytes - should send a zero-length packet track, but I'm not sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, I have solved the problem with USB communication but I can't send the data properly. It must send data between 0-3.3V,
I couldn't send anything to the filter I put this line since I couldn't send anything. Now it send some data but is wrong.
This is the new project. I changed something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You get a very large number. To begin with, increase the length of the variable str
char8 str[64];