atferrari
Full Member level 4

- Joined
- Jun 29, 2004
- Messages
- 237
- Helped
- 7
- Reputation
- 14
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Buenos Aires - Argentina
- Activity points
- 1,996
PIC micro 16F family.
There are four boards, each one detecting the high to low transition in the eight pins of PORTB from the micro in charge, with weak pull ups enabled..
Depending of which board detects a change first, the rest should react differently to further changes in their "own" pins.
My question is: How could I make any of the boards to tell the others "I got a change in one of my pins", so the rest knows that they are not the first anymore in detecting a change?
I started to consider something like a common point for all boards, linking their open drain RA4 pins. What I can not see is how could I use that pin also for polling any change or signaling "mine was first" from the other boards.
Or should I use a second pin in every micro for the polling?.
My last point is: would all this change if I do it with three instead of four boards? A resistor, common to all of them or "distributed" should change value accordingly, I think.
To be honest I couldn't progress much in solving this. Help appreciated.
There are four boards, each one detecting the high to low transition in the eight pins of PORTB from the micro in charge, with weak pull ups enabled..
Depending of which board detects a change first, the rest should react differently to further changes in their "own" pins.
My question is: How could I make any of the boards to tell the others "I got a change in one of my pins", so the rest knows that they are not the first anymore in detecting a change?
I started to consider something like a common point for all boards, linking their open drain RA4 pins. What I can not see is how could I use that pin also for polling any change or signaling "mine was first" from the other boards.
Or should I use a second pin in every micro for the polling?.
My last point is: would all this change if I do it with three instead of four boards? A resistor, common to all of them or "distributed" should change value accordingly, I think.
To be honest I couldn't progress much in solving this. Help appreciated.