Problem configuring USBUART

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
user_4457186
Level 1
Level 1

Hello,

I'm trying to read the data sent from a HC-SR04 sensor in the computer terminal using TeraTerm. Before I started doing this, I made sure everything was working well in my program and the sensor and so it does: I used an LCD display and everything is fine. The problem is that I don't know how to send this data using the USBUART (CDC Interface).

The project can be found attached to this message. I am using the CY8CKIT-050 PSOC 5LP DEVELOPMENT KIT Could anyone please help me?

Thanks in Advance.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

As I could not open the attached project,

I reused my HC-SR04 project for CY8CKIT-059

and modified it for CY8CKIT-050 and USBUART.

During the task, what I noticed were

(1) I needed to add "USBUART_cdc.inf" file which was with the original application note.

(2) To use USBUART just like UART, I needed to do

===============

    USBUART_Start(USBFS_DEVICE, USBUART_5V_OPERATION);

    /* Wait for Device to enumerate */

    while(!USBUART_GetConfiguration());

  

    /* Enumeration is done, enable OUT endpoint for receive data from Host */

    USBUART_CDC_Init();

===============

TeraTerm log

001-USBUART-050-TeraTerm.JPG

IMG_4024.JPG

moto

View solution in original post

0 Likes
3 Replies