- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I am Hakob, I want to know which usb component (UART or FS's some component) is faster for sending data to the PC in PSOC 5LP and which maximal spead can I have (kb/sec)? I want to record some analog potential's graphics from real system using PSOC 5LP's ADC and then to save this data in DB, in my PC .
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sending only single chars via an USB interface can be slower than using an UART and an RS232 line. The overhead of USB will spoil your bandwidth. When transmitting larger amounts of bytes with a single call you will reach the defined limit for an USB v2 connection.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
USBUART and USBFS have the same underlying hardware, so there will be no speed difference from the PSoC side, Since both are using different drivers on the PC side there might be some differences, but I think that does not matter too much.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, and how maximal speed can I have for USB UART if every time I will send char (uint8). How many chars can I send per second?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sending only single chars via an USB interface can be slower than using an UART and an RS232 line. The overhead of USB will spoil your bandwidth. When transmitting larger amounts of bytes with a single call you will reach the defined limit for an USB v2 connection.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could get faster transmission using usb bulk transfer. UART speed is actually limited by the protocol. But you won't notice much difference sending single bytes. I would sugest using a small buffer and sending data in chunks this works well unless you need to display the data in realtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In bulk mode 64 bytes every 1 ms. I use this mode every day.
Remenber you are on FS notre un HS