7 Replies Latest reply on Jun 15, 2020 11:18 AM by LePo_1062026

    UART 2.5 and PSoC 6


      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



        • 1. Re: UART 2.5 and PSoC 6



          I found the latest version of the UART is 2.0.

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

          • 2. Re: UART 2.5 and PSoC 6

            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...



            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...


            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...



            • 3. Re: UART 2.5 and PSoC 6



              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.




              • 4. Re: UART 2.5 and PSoC 6

                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,


                • 5. Re: UART 2.5 and PSoC 6

                  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.




                  • 6. Re: UART 2.5 and PSoC 6

                    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!



                    • 7. Re: UART 2.5 and PSoC 6



                      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.



                      1 of 1 people found this helpful