UART communication issue

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.
Anonymous
Not applicable

Hi,

   

I have tested the UART comm with P7.0 P7.1 on cypress CY8CKIT-043, its working good able to get the debug messages.

   

But I need to configure other UART also.

   

I have configured the set of pins P6.0, P6.1 and P5.0,P5.1.

   

I can able to detect the UART port  with serial to USB connector with UART Rx,Tx, gnd lines connected,

   

but I am getting garbage data. I have configured the baud rate to 115200, but its not giving correct data.

   

Is there anything need to configure for uart?

0 Likes
18 Replies
Anonymous
Not applicable

UART Communication issue on CY8CKIT-043

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received
        Please post your code so we can check it.   
0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Wat did you connect the second UART pins to?

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

Sorry for late reply. Please find the attached project archive file regarding UART pins.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Set UART advanced to byte mode and buffer sizes to (at least) 16.

   

Check connection to your serial-usb cable. PSoC voltage level will be 5V

   

Try lower baud rate as 9600

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I have changed the above changes suggested. Still I am getting garbage data on UART.

   

I am using USB serial connector to connect to my laptop and configured UART pins as 6.0 of KIT(Tx) pin to 9 pin DB connector's 2 nd pin(Rx) and 6.1 of kit(Rx) pin to 9pin DB connector's 3rd pin(Tx) and Gnd pin of Kit to 5th pin of 9 Pin DB.

   

Please find attached files.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Please report voltage levels of Rx and tx of kit and 9-pin 2 and 3 of connector. Cables detached.

   

 

   

Bob

0 Likes
emen_2218296
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

If you are using USB to serial bridge then you don't need DB9 connector and cable. Your USB-Serial bridge will have TTL inputs/output levels. Can you show us which USB-Serial bridge  you are using ? 

   

Connect Tx and Rx directly to bridge.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi,

   

I have checked the voltage levels.

   

On CY8CKIT-043 

   

Tx voltage - 0V

   

Rx Voltage  - 4.9 V

   

On USB serial adapter 

   

Tx : 0V

   

Rx : -6.4V

   

With 9pin DB female to female connector also 

   

Tx :0v

   

Rx: -6.4V

   

Please find attached cables which i have used.

   

I tried with directly connecting the USB serial adapter without 9 Pin db serial cable also, not getting proper values.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You wrote

   

On USB serial adapter 

   

Tx : 0V

   

Rx : -6.4V    Does this mean: minus 6.4V ???  If so, you will probably fry your PSoC. Max allowed on any pin is 0V to Vdd(which is 5V). Adapter not usable for your purposes.

   

 

   

If not minus 6.4V then you need to connect Tx from kit with Rx from adapter Carefully!!! 6.4V is more than the allowed 5V and may damage your kit!!! Use at least a resistor.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

hi,

   

yes it is minus 6.4 volts. 

   

Okay will do that with external resistor and let you know.

0 Likes
Anonymous
Not applicable

Thank you, UART issue been solved with FTD1232 usb to serial convertor.

0 Likes
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

NO!!!!!!

   

Minus 6V will damage your board!!!!!!!!!!!  Do not use this kind of adapter!!!!!

   

 

   

Bob

0 Likes
Anonymous
Not applicable

okay bob, thank you for info.

   

I have one more query related to I2c.

   

I have configured I2c lines for 4.0 and 4.1 lines and able to detect the I2c and getting data.

   

But if I want to use other gpio pins as I2c , they are not working checked for 2.0 and 2.1 pins.

   

What the issue?.

   

How many I2c ports we have in this kit?

0 Likes

There are 4 SCBs (Serial Control Blocks) in your chip, usable as UARTs SPIs or I2Cs.

   

Did you provide the required pull-up resistors?

   

 

   

Bob

0 Likes
Anonymous
Not applicable

for uart issue I think we can use this cable right?

   

For usb to serial cable

   

http://www.amazon.in/REES52-CP2102-Module-Converter-Replace/dp/B01I6MXWV2?tag=googinhydr18418-21&tag...

   

Please sugggest.

0 Likes

That will work (if your PSoC survived)

   

 

   

Bob

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

hi. i have got a schematic thermo board . but it don't conecter computer . i try repair it. 

   

when i download data, it error

   

 

   

0 Likes