Wednesday, 25 June 2008

RS 232 And RS 485

RS 232 အေၾကာင္းကိုေတာ့ ကၽြန္ေတာ္ ေတာ္ေတာ္မ်ားမ်ား ေျပာၿပီးသားပါ။ RS 485 ကလည္း 232 လိုပဲ Tx, Rx သံုးပါတယ္။ ဒါေပမယ့္ သူ႔မွာ Tx နဲ႔ Rx ကို ခ်ိတ္ထားတဲ့ေနာက္ cross wire တစ္ခုပါပါတယ္။ RS 485 မွာ Master နဲ႔ Slaves ဆိုၿပီးရွိပါတယ္။ RS 232 ကေတာ့ peer-to-peer communication ပါပဲ။ 1 Master နဲ႔ 1 Slave ပဲရပါတယ္။ ေအာက္မွာ ပံုနဲ႔ျပထားပါတယ္။ Slave ၃၀ ေက်ာ္အထိ ခ်ိတ္လို႔ရတယ္လို႔ ေျပာပါတယ္။ သူက Bus Topology နဲ႔သြားပါတယ္။ တကယ္ေတာ့ slave ကေန Handshaking မလာပဲနဲ႔ Master ကေန control signal တစ္ခုကိုပဲ ေပးတာပါ။ Handshaking လာခ်င္ရင္ေတာ့ slave devices ေတြမွာprogram သပ္သပ္ေရးေပးရပါတယ္။ Machine ေတြက slaves ေတြျဖစ္ၿပီး CPU က master ျဖစ္မွာပါ။ slave to slave ေတာ့ communicate လုပ္လို႔မရႏိုင္ပါဘူး။

No comments:

Post a Comment