- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all I have the CY8CKIT-050 kit and I have been programming but any errors I am using adc to measure eight different signals usbUart I would like to use it to pass data to my computer for analysis. Someone could help me ?? here is the program that been doing:
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Post an archive of the project, makes it easier to look at
problems and see the whole picture.
“File” Creator
“Create Workspace Bundle”
Use Firefox or IE, not chrome to post.
Regards, Dana.
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are using your global variable "canal" from different places which will produce errornous results.
The line
canal += CONVERT_TO_ASCII;
will change your index-variable to something that is not in the range of 1..4 or 0..3 whatever you think you expect, apart from the fact that I cannot see what CONVERT_TO_ASCII is defined.
Use local variables and / or paremeters to your function(s) to better perform what you want. Avoid global variables and never change them at different places. Here is a link to my favourite C-handbook: publications.gbdirect.co.uk/c_book/
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do NOT use chrome. Use ms internet explorer and when the respond window is a very small one, set the "Compatibility Mode". Not your fault, but bad forum software.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the CY8CKIT-050 kit and I have been programming but any errors I am using adc to measure eight different signals usbUart I would like to use it to pass data to my computer for analysis. Someone could help me ?? here is the program that been doing:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No need to repeat everything, just 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 (do NOT use chrome, that still may not work).
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
I would like to see as uartUSB step to get the data and I have an error adc_countsTo_mVolt (channel, adcVal [channel]) function is not that ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This -
mVolts = ADC_CountsTo_mVolts(channel, adcVal[channel]);
should be changed to -
ADC_SAR_Seq_CountsTo_mVolts( adcVal[channel] );
You have 9 UART functions that are typed as UART_UARTxxxxxxx, the typing should be
UART_xxxxxxx
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check the APIs, probably you looked into some datasheets from PSoC4. Names are UART_PutChar() and not UART_UartPutchar. Same applies to the number of parameters for the ADC_CountsTo_mVolts(),#
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks served me advice