Serial Port Interfacing With Microcontroller
Hi friends, I'm doing a project on data acquisition where i need to interface an ADC with a microcontroller and then this microcontroller with a PC where in the values are to be displayed. The first part is finished but i have very little idea about interfacing 8051, which i'm using with the PC.
Interface PIC Microcontroller and Arduino using Serial Communication RS232 and Visual Interface. UART interfacing with PIC Microcontroller. RS 232 interfacing and sample code with detailed. SPEN- This bit is used to enable/disable the serial port.
Parallel And Serial Port Interfacing
I know C language (alas! Never did microcontroller programming) and have 10 days time in my hand to learn and implement. I need to develop the code where in the data obtained is displayed on the PC in real time. I'm planning to go for RS232 communication using MAX 232 IC.I'm using the 89c51 IC. I'd be grateful to anyone who can help me with this.
I am assigned to a project which is based on Smart Home Automation using GSM devices. I am using a Nokia 8210 as the GSM module connected through infrared to a 8051 microcontroller. The control of the GSM device is done by using AT commands.
I have already tested the Nokia 8210InfraredPC to send,receive and read SMS using HyperTerminal and it works well. Now I am starting to implement it with a 8051 microcontroller instead of PC.The question is how am I suppose to interface the Infrared Adapter to the microcontroller? Does it need specific drivers like the PC does? -The infrared adapter is a USB device and I have decided to connect it with a USB to serial port cable to enable serial transmisson to the microcontroller,is this appropriate?
-If the infrared adapter needs power to be able to used, how should I supply power to it from a microcontroller? If possible please send me the schematic or block diagram of the interfacing to my email:snoopyjai82@yahoo.c om Thanks in advance for the helo!! -The question is how am I suppose to interface the Infrared Adapter to the microcontroller? Does it need specific drivers like the PC does?
No, just have to comply with IRDA protocol -The infrared adapter is a USB device and I have decided to connect it with a USB to serial port cable to enable serial transmisson to the microcontroller,is this appropriate? If your Infrared adapter is USB, I guess it has an internal USB to serial converter. But you have to specify your adapter model.If the infrared adapter needs power to be able to used, how should I supply power to it from a microcontroller?
List Of Microcontrollers
Infrared circuits normally draw a very little current, since you have to implement a board for your microcontroller, you will have a power source available (5VDC).The infrared adapter is a USB device and I have decided to connect it with a USB to serial port cable to enable serial transmisson to the microcontroller,is this appropriate? If your Infrared adapter is USB, I guess it has an internal USB to serial converter. But you have to specify your adapter model. The package says that it is fully compatible to IrDA 1.3 and USB 1.1. Is a normal USB to serial port cable suitable for this? -If the infrared adapter needs power to be able to used, how should I supply power to it from a microcontroller? Infrared circuits normally draw a very little current, since you have to implement a board for your microcontroller, you will have a power source available (5VDC).
Serial Port Interfacing
With this, how do I interface the power line to the USB device? What if I were to have a serial cable connected to the infrared adapter? I consulted one of y lecturers about using the USB to RS232 converting cable for implementation and my lecturer told me that the cable only supports one way communication as he has tried it before. He said that the cable only works when the RS232 side is connected to devices and the USB side is connected to PC. According to him, to work the other way would be impossible. This means that my implementation wouldn't work eventually.
As my implementation would be the IrDA adapter on the USB side and PC/microcontroller on the RS232 side. Can someone please verify this. Your lecturer is right, it is almost impossible to control an USB device from a microcontroller, even if your micro has an USB (assuming host) port, because control logic comes in a software driver for PC, unless manufacturer gives you this specification (not so probable). So, what you are trying to do is not a good idea. Better you find an Wireless device with some kind of serial port or maybe you can think in using an ethernet enabled device like Dallas 80c400 or a ethernet enable module like EDTP Easy Ethernet.