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

    UART 2.5 and PSoC 6

    WiWi_4702256

      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

        • 1. Re: UART 2.5 and PSoC 6
          LinglingG_46

          Hi,

           

          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
            WiWi_4702256

            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

            • 3. Re: UART 2.5 and PSoC 6
              LePo_1062026

              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.

               

               

              Len

              • 4. Re: UART 2.5 and PSoC 6
                WiWi_4702256

                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

                • 5. Re: UART 2.5 and PSoC 6
                  WiWi_4702256

                  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

                  • 6. Re: UART 2.5 and PSoC 6
                    WiWi_4702256

                    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

                    • 7. Re: UART 2.5 and PSoC 6
                      LePo_1062026

                      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

                      1 of 1 people found this helpful