Maker Pro
Maker Pro

Slave and Master's

Ireland

Jul 5, 2010
9
Joined
Jul 5, 2010
Messages
9
Q. Is it possible to have two microcontroller's one as master and one as slave, however when I connected the same circuit to a computer, both microcontrollers become slaves and the CPU in the computer becomes the master processing unit?
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
Yes. All you have to do is program them to do that. (But first, define what it means to be "master" and "slave")
 

Ireland

Jul 5, 2010
9
Joined
Jul 5, 2010
Messages
9
Master & Slave

Hello,
A master microcontroller, controls the slave microcontroller, if the microcontroller wants to do something, it has to ask the master microcontroller, is he allowed do it, and if the master is busy, the slave will have to wait.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
That's fine, but you need to define it in terms of the protocol that they will use, then write the code to do that.

As far as I can tell, there's no magic involved.
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
There's NO magic.

Define exactly how the uC's are expected to behave, then write the code.

You just have to do the work (i.e. defining the protocol, and implementing it).
 

Ireland

Jul 5, 2010
9
Joined
Jul 5, 2010
Messages
9
Their function is to test Digital IC's, the microcontroller is 8952, have to locate datasheet for 8952, will define the protocol then.
 
Top