2 Replies Latest reply on Aug 23, 2015 3:32 AM by user_14586677

    uart full duplex mode

    vinay.bhatt

      i am working on application which requires psocs to be connected in daisy chain. meaning if some command comes to psoc no 1 from uart , it checks it if its for it it is stored in array otherwise it sends it to next psoc via uart trans. do i need to use isr? or should i simply write in main.c?

         

      can anyone suggest how should be the code structure?

        • 1. Re: uart full duplex mode
          user_342122993

          vinay,

             

          you don't need to daisy chain PSoCs for that. Send your external UART command with ID to all PSoCs simultaneously by connecting all PSoCs UART Rx to same bus line, and let each PSoC to identify if this correct id or not. This way you need to implement only one same standard Rx protocol on each PSoC.

             

          odissey1

          • 2. Re: uart full duplex mode
            user_14586677

            If you need to daisy chain because of wiring considerations that does not

               

            really change solution approach. ISR would be preferred due to latency

               

            considerations, but polling also an acceptable method depending on what

               

            other CPU activity is required.

               

             

               

            Of course daisy chain approach does not lend itself to a robust network

               

            approach, given that one node goes down it takes out all nodes downstream.

               

             

               

            If distances not too great a wireless net might be more appropriate, star, mesh....

               

             

               

            Regards, Dana.