UART 2.5 and PSoC 6

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

cross mob
WiWi_4702256
Level 5
Level 5
5 sign-ins Welcome! 5 solutions authored

Is Version UART 2.5 Component available for PSoC 6? I don't see it. I would like to use the SCB UART for Half-Duplex.

Using CY8CKIT-062-WiFi-BT with PSoC Creator 4.3 and PDL 3.1.2

Thanks

0 Likes
1 Solution

William,

You are correct.  I didn't read your initial post correctly.  You want Half duplex.

Set up the UART as Full Duplex.

Configure RS-485 Support to be true.  This will control the output drive of the Bidirectional pin.

The duplex needs to be handled in SW.  When you want to Tx put data in the FIFO, the TX_EN line will be true.  When the FIFO is empty and the last bit transferred out, the TX_EN will automatically be inactive allowing data from the slave to be read into the master.

Len

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

7 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

Hi,

I found the latest version of the UART is 2.0.

pastedImage_1.png

Could you tell us why you want to find the V2.5?

0 Likes

Hi @LinglingG_46,

My project designator's hardware engineer told me we are going to communicate with our devices via one-wire, half-duplex, there is only one pin available on the devices and we need to download certifications to them...

I figured I would bit-bang a GPIO pin but now I would like to use the SCB UART to do so, it would keep the clock cycles down according to what I've read...

https://www.maximintegrated.com/en/design/technical-documents/tutorials/2/214.html

I was using this Re: Is it possible to connect ports of an UART component to logic gates? note on community to attempt to use the SCB UART and modified it to come up with this design...

MasterOW.gifSlaveOW.gif

I was out on the internet searching how to fix my issues and came across UART Ver 2.5, I thought well I could use that since it supports half-duplex...

William

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

WiWi,

The UART [v2.50] component you are referring to is available for the PSoC5 not the PSoC6.

The PSoC6 UART component is the UART (SCB) [v2.0].  It is a PDL component.  This component is available in configure in Half-duplex mode.  It happens to be called "Tx only" in the datasheet.

pastedImage_0.png

Len

Len
"Engineering is an Art. The Art of Compromise."

LOL LOL LOL well... Of course, it was too simple, that's why I couldn't figure it out! Your right. The master is the only one that can initiate communication.

Thank you very much,

William

0 Likes

Wait I've been thinking about you answer... I am not sure that it is the correct answer.

You are saying mark the Master as Tx only, that would mean mark the Slave as Rx only.

Then how do they receive and transmit respectively?

I am using a common GPIO pin between them but your solution means that the UART 2.0 component would be able to:

Master: tx and rx on tx pin

Slave: rx and tx on rx pin

I don't think that will work, if so please explain further how you get a UART 2.0 component to rx and tx on the rx pin, and tx and rx on the tx pin. This is why I use the bufoe device and the tx_enable to use the rs485 capability... to disable communication while the Master communicates and I can add a timer so that this is done automatically. When the master transmit, the timer circuit will control the bufoe.

Please further explain your solution.

Thanks,

William

0 Likes

Just do it software? When you tx and or rx just tell the UART 2.0 component to do it on the same pin. I can do that if that will work. Its brilliant if that's the case, so simple!

William

0 Likes

William,

You are correct.  I didn't read your initial post correctly.  You want Half duplex.

Set up the UART as Full Duplex.

Configure RS-485 Support to be true.  This will control the output drive of the Bidirectional pin.

The duplex needs to be handled in SW.  When you want to Tx put data in the FIFO, the TX_EN line will be true.  When the FIFO is empty and the last bit transferred out, the TX_EN will automatically be inactive allowing data from the slave to be read into the master.

Len

Len
"Engineering is an Art. The Art of Compromise."