PIC Vietnam

Go Back   PIC Vietnam > Microchip PIC > English forum on PICs

Tài trợ cho PIC Vietnam
Trang chủ Đăng Kí Hỏi/Ðáp Thành Viên Lịch Bài Trong Ngày Vi điều khiển

English forum on PICs Forum for foreigners -only English in this forum - Do not need to register or login

Trả lời
 
Ðiều Chỉnh Xếp Bài
Old 09-07-2007, 11:18 PM   #1
Toufik
Guest
 
Bài gửi: n/a
PIC 16F877 with 3 serial ports

Trích:
Nguyên văn bởi namqn View Post
If the equipments use RS-232, then the only way to talk to them is via RS-232. That's fine. Your problem can be solved in different ways, depending on the data rate you need.

The baud rate is your communication speed, not the data rate. The data rate is how frequent you want your data. If your data rate is low, like 10 samples/second, then you probably can use some multiplexer to connect the equipments and the host PC one-by-one.

If the data rate is high and/or control action is fast, then you probably need a couple of PICs connected together. They can talk to each other via different protocols.

Cheers,
Thank you very much for your reply, but I want to know how to do to use the multiplexer to connect the equipments, the card (the card with pic16f877 to control 2 stepper motors) and the host PC one-by-one, do you have a schematic for that please.
Thanks in advance
  Trả Lời Với Trích Dẫn
Old 10-07-2007, 12:09 AM   #2
namqn
Trưởng lão PIC bang
 
Tham gia ngày: Feb 2006
Nơi Cư Ngụ: Tp. HCM, Việt Nam
Bài gửi: 3,025
:
Send a message via Yahoo to namqn
For RX signal of PIC, you will need a 3-to-1 multiplexer. For TX signal of PIC, you will need a 1-to-3 demultiplexer.

Have a look at the following links:
http://www.play-hookey.com/digital/m...our_input.html
http://www.play-hookey.com/digital/d...emux_four.html

Remember that you would need 3 separate level shifters (MAX232, for example) in total, when you use commercial multiplexer/demultiplexer chips (because they are logic chips).

Sorry I don't have time to create a schematic for you!

Cheers,
__________________
Biển học mênh mông, sức người có hạn.

Đang gặp vấn đề cần được giúp đỡ? Hãy dành ra vài phút đọc luồng sau:
http://www.picvietnam.com/forum/showthread.php?t=1263
namqn vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn
Trả lời


Quyền Sử Dụng Ở Diễn Ðàn
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Mở
Smilies đang Mở
[IMG] đang Mở
HTML đang Tắt

Chuyển đến


Múi giờ GMT. Hiện tại là 08:50 PM.


Được sáng lập bởi Đoàn Hiệp
Powered by vBulletin®
Page copy protected against web site content infringement by Copyscape
Copyright © PIC Vietnam