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

    uart full duplex mode

      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



          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.



          • 2. Re: uart full duplex mode

            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.