Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to say which board was the first to detect a transition

Status
Not open for further replies.

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.
 

emmos

Member level 2
Joined
Dec 30, 2003
Messages
48
Helped
3
Reputation
6
Reaction score
1
Trophy points
1,288
Activity points
472
Re: How to say which board was the first to detect a transit

Hi

do you have an empty pin that you can use on each PIC?

because if you do

you can use a pin on each PIC to tell the others that either it got the data first (acting as o/p)

or this same pin changes to i/p at certain parts of the code to check if anyother board has sent a first response message
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top