Reply by kristoff December 27, 20152015-12-27
ARUNBALAJI,



 >> On 26/07/2014 12:55, ARUNBALAJI wrote:
 >>> i would like to connect 2 devices like GSM, Zigbee, with one 8051
 >>> microcontroller. is it possible to connect with one 8051 are i need to
 >>> provide separate microcontroller for each device. please provide me 
some
 >>> technical explanations

For my final-paper (now more then 20 years ago), I needed to let one 
controller-device talk to 4 slave-devices, using the onboard UART. FOr 
that, I used RS485 driver-ICs to provide a "bus" and wrote a small 
master-slave (or master-4slaves in this case) to control the communication.

I guess you can do this with any interface that provides some kind of 
"bus" (e.g. open collector).



The other option (as Bryan also mentioned) is to use a software-serial 
interface.


Cheerio! Kr. Bonne.
Reply by Bryan Villados December 27, 20152015-12-27
On Sunday, July 27, 2014 at 10:12:21 PM UTC-10, FreeRTOS info wrote:
> On 26/07/2014 12:55, ARUNBALAJI wrote: > > i would like to connect 2 devices like GSM, Zigbee, with one 8051 > > microcontroller. is it possible to connect with one 8051 are i need to > > provide separate microcontroller for each device. please provide me some > > technical explanations > > Use a device with 2 UARTs, or include an RS422/485 interface in your > design. Alternative, don't use and 8051 at all. > > Regards, > Richard. > > + http://www.FreeRTOS.org > Designed for microcontrollers. More than 107000 downloads in 2013. > > + http://www.FreeRTOS.org/plus > IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...
A very late reply!!! I'm chiming in because I'm doing some background research on the 8051. I was dismantling some APC UPS units for recycling purposes. I came across the monitoring interface - model AP9607 for those following at home. The card is actually a complete computer system in itself: microcontroller, EPROM, and I/O. It can technically function alone. The microcontroller is a Siemens SABC510, which I've come to find out is a C510, which is a 8051 equivalent. I'm thinking about using this card as a challenge, to maybe turn it into a full-on computer with RAM and such. Regarding this thread, the AP9607 actually has two serial interfaces. They're used to monitor the UPS. Both interfaces are controlled by the C501, as there are no UARTs on this board. I've yet to disassemble the code in the EPROM - I'll do that to study how the serial interfaces are accessed. With that, it sounds like the C501, and quite possibly other 8051 equivalents, can drive two serial interfaces. But I won't fully know until I finish studying the firmware.
Reply by FreeRTOS info July 28, 20142014-07-28
On 26/07/2014 12:55, ARUNBALAJI wrote:
> i would like to connect 2 devices like GSM, Zigbee, with one 8051 > microcontroller. is it possible to connect with one 8051 are i need to > provide separate microcontroller for each device. please provide me some > technical explanations
Use a device with 2 UARTs, or include an RS422/485 interface in your design. Alternative, don't use and 8051 at all. Regards, Richard. + http://www.FreeRTOS.org Designed for microcontrollers. More than 107000 downloads in 2013. + http://www.FreeRTOS.org/plus IoT, Trace, Certification, FAT FS, TCP/IP, Training, and more...
Reply by July 26, 20142014-07-26
> Look at the C8051 family from Silicon Labs. Many of them have 2 UARTs.
That's assuming that the devices are UART. My GSM is USB and my *Bee is SPI.
Reply by Marc Guardiani July 26, 20142014-07-26
On 7/26/2014 8:56 AM, Rich Webb wrote:
> On Sat, 26 Jul 2014 06:55:10 -0500, "ARUNBALAJI" > <101057@embeddedrelated> wrote: > >> i would like to connect 2 devices like GSM, Zigbee, with one 8051 >> microcontroller. is it possible to connect with one 8051 are i need to >> provide separate microcontroller for each device. please provide me some >> technical explanations > > Which 8051? It's probably not an original intel MCS-51 device. > > If you need a second serial connection (UART) it is possible to write > one in software. It's actually a pretty good exercise and there are > application notes that describe the process. One example is at > <http://www.atmel.com/Images/doc0941.pdf>. It's for a different > processor but the technique is similar. Do note that your processor's > instruction cycle time and interrupt latency will set the maximum > achievable signal rate. >
Look at the C8051 family from Silicon Labs. Many of them have 2 UARTs.
Reply by Rich Webb July 26, 20142014-07-26
On Sat, 26 Jul 2014 06:55:10 -0500, "ARUNBALAJI"
<101057@embeddedrelated> wrote:

>i would like to connect 2 devices like GSM, Zigbee, with one 8051 >microcontroller. is it possible to connect with one 8051 are i need to >provide separate microcontroller for each device. please provide me some >technical explanations
Which 8051? It's probably not an original intel MCS-51 device. If you need a second serial connection (UART) it is possible to write one in software. It's actually a pretty good exercise and there are application notes that describe the process. One example is at <http://www.atmel.com/Images/doc0941.pdf>. It's for a different processor but the technique is similar. Do note that your processor's instruction cycle time and interrupt latency will set the maximum achievable signal rate.
Reply by July 26, 20142014-07-26
On Sat, 26 Jul 2014 06:55:10 -0500, "ARUNBALAJI"
<101057@embeddedrelated> wrote:

>i would like to connect 2 devices like GSM, Zigbee, with one 8051 >microcontroller. is it possible to connect with one 8051 are i need to >provide separate microcontroller for each device. please provide me some >technical explanations > > > >--------------------------------------- >Posted through http://www.EmbeddedRelated.com
RS-485
Reply by Jack July 26, 20142014-07-26
"ARUNBALAJI" <101057@embeddedrelated> wrote:

> i would like to connect 2 devices like GSM, Zigbee, with one 8051 > microcontroller. is it possible to connect with one 8051 are i need to > provide separate microcontroller for each device. please provide me some > technical explanations
please provide us with money. And please stop using last century microcontroller. Bye Jack -- Yoda of Borg am I! Assimilated shall you be! Futile resistance is, hmm?
Reply by ARUNBALAJI July 26, 20142014-07-26
i would like to connect 2 devices like GSM, Zigbee, with one 8051
microcontroller. is it possible to connect with one 8051 are i need to
provide separate microcontroller for each device. please provide me some
technical explanations

	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com