![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello I have a pic project to do for school. I have to interface a pic micro mcu 16f877 to a dallas temp. sensor and connector 3 of such pic to a pc and read the temperature from each pic by choicing say # 1,2,0r 3 I can do the pic to sensor,but i am lost at the interfce to the pc---rs485 protocol and how to do the addressing of the pic. I would like to know if anyone could assist me and can give some info on the rs485. thank a lot. | |
| |
| | (permalink) |
| Are you required to use RS485?? RS232 is much easyer to interface with a pc. | |
| |
| | (permalink) |
| Use a 75176 or similar for rs485 http://www.parallax.com/dl/docs/cols/nv/vol1/col/28.pdf or convert TTL from the pic to RS232 that should be running on the pc with a MAX232 or similar. http://www.maxim-ic.com/quick_view2.cfm/qv_pk/1798 http://www.electronic-engineering.ch...h/16c74rs.html | |
| |
| | (permalink) |
| yes it has to be rs485 since we wil be using mulitiple points. | |
| |
| | (permalink) |
| Have a look around on the Maxim site, they should have what you need there. You'll have to probably use two different IC's, one that converts TTL to RS485 then one that converts RS485 into RS232 if your plumbing it into your computer. You will also have to figure out if half duplex will do the job or if you will need full duplex. I've used the 75176 TTL/485 variations for my stuff from time to time and they work pretty slick in half-duplex communication. Resc. | |
| |
| | (permalink) | |
| Quote:
| ||
| |