- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have been trying to integrate uart and capsense touch functionalities in CY8C 4245 AXI 483 MCU. Everything worked fine until working on individual function but as I merged the UART and CapSense in single project, an issue popped up such as UART stopped receiving data. I am unable to find the issue. Can anyone helpe me/ suggest me a solution..?
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @saurabh,
UART component is working perfectly --> whenever there is any character/string sent, the same gets communicated back.
However, I observe that there are no CapSense widgets defined in the CapSense CSD widget:
To define a widget, click the required widget in the left pane (buttons, linear sliders, radial sliders, etc) and then click on the "Add <widget>" button at the top.
Example: to define a linear slider: click on "linear sliders" in the left pane, and then "add linear slider"
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @saurabh,
Could you share your project or the section of code that has the UART and CapSense functions being used?
If both are working individually, then I suspect the usage of functions may be the problem in the combined project.
You may use the below as a reference:
int main(void)
{
CyGlobalIntEnable;
UART_Start();
CapSense_Start();
UART_UartPutString("\rStart of the application\n");
for(;;)
{
/* Place your application code here. */
if( !CapSense_IsBusy())
{
CapSense_ProcessAllWidgets();
UART_UartPutString("can send information");
//can receive data from uart too
//other implementations
CapSense_ScanAllWidgets();
}
}
}
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @ncbs
Thanks for sharing the reference code. PFA the project in which I have implemented the capsense and uart altogether. Still facing the similar issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @saurabh,
UART component is working perfectly --> whenever there is any character/string sent, the same gets communicated back.
However, I observe that there are no CapSense widgets defined in the CapSense CSD widget:
To define a widget, click the required widget in the left pane (buttons, linear sliders, radial sliders, etc) and then click on the "Add <widget>" button at the top.
Example: to define a linear slider: click on "linear sliders" in the left pane, and then "add linear slider"
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @ncbs (Nikihl),
Thanks a lot for the suggestion, the problem was with the terminal which I had been using to transmit string. It caused garbage data transmission and hence the same was getting echoed. Both the functionalities are working fine.