uart full duplex mode

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

cross mob
Anonymous
Not applicable

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?

0 Likes
2 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

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

0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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.

0 Likes