Pradip Nepali
- Jun 18, 2015
- 14
- Joined
- Jun 18, 2015
- Messages
- 14
How to transmit data from one IC to other, i.e I want to controller relay from
One Way Communication from Chip-to-Chip
One Way Communication from Chip-to-Chip
I have to ic at89c51, in first ic I put 2 button switch and in second IC i put 2 reply so I want to control that Relay from first ICYou'll need to be far more specific. A simple logic level can transfer the information required for the example you gave.
What is the scenario? The answer could be as simple as I suggested or maybe to need something way more complex (for example if the two ICs are on different sides of the planet).
can you show me sample programmingThe simplest way is to connect a port pin as output of the 1st IC to a port pin as input of the 2nd IC.
Toggle the state of the output by the 1st IC and read the state of the input of the 2nd IC. Perform the actions as required by the state of the signal.
That's essentially what Steve said in post #4 in a tiny bit more detail.
If you want to communicate more than this single on/off message, look into serial protocols like SPI, UART etc. (use your favourite search engine).
At89c51 I'm usingSorry, I don't have sample code at hand.
One will also need to know:
Every microcontroller manufacturer offers sample code for serial communication usiong their controllers.
- Which chip?
- Which language/compiler/assembler?
- How does the hardware look like (schematic)?
That is also good but now I only want to transmit thru one wireI am getting the idea that these two chips are separated and not connected and you are looking for something like a wireless connection. Is that true?
Bob
Anyway do you have any idea about thisOkay, you have been given the answer twice then.
Bob
I don't understand about this reply..If driving a relay you will probably need conditioning of some kind, 2n7000 for e.g. etc.
If you have two identical devices, output on one - input the other plus common.
Insufficient info for detailed response.
M.
If driving a relay you will probably need conditioning of some kind, 2n7000 for e.g. etc.
If you have two identical devices, output on one - input the other plus common.
Insufficient info for detailed response.
M.