PDA

View Full Version : VERY Urgent. Pls Help ME...



weberclas
- 12th December 2004, 17:29
I have 200 pic 16f84a chips.I want to communicate them (200 pic
16f84a chips) on the same line . Communication speed isn't important. At
the same time it can read or write.
I must write commands in pic basic pro.


Thanks for all.

Kypros
- 12th December 2004, 19:12
Hi weberclas,
What is your question actually?
Anyway, I believe that you don't know how to implement such a task isn't it?
I am not an expert but I will try to express my idea on this.
Use serial communication via the SEROUT/SERIN commands.
Each PIC should have a address starting from 1 up to 200 for example. Then PIC no. 1 is the master of comms. Hence it should ask sequencially all the other PICs to transmitt their data. When communication ends, the master (no. 1) should send the address of the next PIC hence it could use the line for communication with the master or any other PIC whose address is indicated in the lets say first byte of the data string.
In this way every PIC has it turn to talk. In the case a PIC is faulty and cannot talk, the master should allow a time out and call the next one.
I am not sure if this is what you are asking or if it coould be implemented but it is just my idea.
Regards
K.

Dwayne
- 13th December 2004, 16:19
Hello WeberClass,

WEber>>I have 200 pic 16f84a chips.I want to communicate them (200 pic
16f84a chips) on the same line . Communication speed isn't important. At
the same time it can read or write.
I must write commands in pic basic pro.<<

We can help you, but we need more info...


Are you going one master CPU, and 199 Slaves? Or are they
goin to be all masters, with the ability to communicate to all?

with the Serin Serout commands, you have a wait until a certain sequence of characters come across. With this command, you can achieve your goal.

Dwayne

weberclas
- 21st December 2004, 21:17
I have a to do this. One pics is random or serial to other pics message from other pics 12 bytes info. when processins is done master pics recieve next question.

For example I should show me temperature 12 bytes (12*8= 96 bits) at 199 areas. Please let me know randomly or sequence???
Ekte prensib şemasını çizdim.


I wrote the shema thx for everything

Dwayne
- 21st December 2004, 22:02
Hello Weberclas

W>>I have a to do this. One pics is random or serial to other pics message from other pics 12 bytes info. when processins is done master pics recieve next question.<<

Serin and Serout can do this...by using the "filter" in these commands, you can communicate to the chip that you want to.

Dwayne

mister_e
- 21st December 2004, 23:18
For example I should show me temperature 12 bytes (12*8= 96 bits) at 199 areas. Please let me know randomly or sequence???


in case you want to show temperature at 199 different area at the same time, i suggest to have a specific address/code. Let's say 255. If PICs receive 255 as header, they directly show the following data....