Search this site (www.microchipC.com).





CCS C Compiler for Microchip PIC micros

Your ad here

 

How to have four PIC16F87x chips on one RS232 bus

Hi, I am investigating the possibillity to have 4 PIC 16F877 connected
to the same PC on a RS232 'bus'.
I am using MAX220CPE, can they be connected in parallell or will they go
up in flames ?

> -----Original Message-----
> From: pic microcontroller discussion list
> [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Bob Ammerman
> Sent: Tuesday, 3 July 2001 9:53 a.m.
> To: PICLIST@MITVMA.MIT.EDU
> Subject: Re: [PIC] RS232 BUS ?
>
> If all of the following are true:
>
> - The PC is going to act as a master
>
> - The F877's will only speak when spoken to
>
> - The F877's are physically close to each other (ideally sharing the same
> power supply).
>
> Then there is a low-cost simple way to be your network...
>
> Take the TD signal from the PC and route it thru the RS232 to TTL channel of
> the MAX220 to the RD signals of all four PICS.
>
> Connect a signal diode (IN4148 is fine) from the TD pin of each of the PICs
> to the TTL to RS232 channel of the MAX220. The cathode of the diode should
> be connected to the PIC pin.
>
> Connect a 10k resistor from the junction of all the diodes with the MAX220
> pin to the positive supply rail.
>
> Connect the output of the TTL to RS232 channel of the MAX220 to the PC.
>
> All the F877's will be able to 'hear' the PC.
>
> The PC will be able to 'hear' any F877.
>
> As long as only one F877 at a time 'talks' everything will be well.
>
> If more than one F877 tries to talk at the same time the PC will get garbled
> data, but no hardware damage will be done.
>
> Bob Ammerman
> RAm Systems



This site is non-profit. Ad revenue almost covers hosting costs.

We welcome any suggesions or comments! Send them to Shane Tolmie on support@microchipc.com. This site is a completely separate site to www.microchip.com, and is maintained independently of Microchip Ltd., manufacturers of the PIC micro. All code on this site is free for non-commercial use, unless stated otherwise. Commercial use normally free, however, it is prohibited without contacting support@microchipc.com for permission. All content on this site created by Shane Tolmie is copyrighted by Shane Tolmie 1999-2009. Click to advertise on this website - $29.90 for a banner ad which will reach 55,000 user sessions per month. One months free trial!