All About Circuits Forum  

Go Back   All About Circuits Forum > Software, Microcomputing, and Communications Forums > Embedded Systems and Microcontrollers

Notices

Embedded Systems and Microcontrollers Discussion forum for projects and working with embedded systems and microcontrollers (FPGAs, PICs, AVRs). Get help with hardware issues and embedded programming.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-08-2007, 06:44 PM
hammy hammy is offline
New Member
 
Join Date: Mar 2007
Posts: 2
Default Interfacing a microcontroller with a PC using serial port

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. 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.

Last edited by hammy; 03-08-2007 at 06:52 PM.
Reply With Quote
  #2  
Old 03-09-2007, 03:35 PM
beenthere's Avatar
beenthere beenthere is offline
Senior Member
 
Join Date: Apr 2004
Location: Missouri, USA (GMT -6)
Posts: 15,815
Blog Entries: 10
Default

1. Tell the ADC to convert.
2. Get the number from the ADC.
3. (optional) Convert or scale the number to engineering units.
4. Send the data to the MAX233, which should then be set up to transmit to the PC.

Look for example porgrams the work with ADC's and that send serial data.
Reply With Quote
  #3  
Old 03-10-2007, 07:45 AM
jasonhaykin jasonhaykin is offline
Junior Member
 
Join Date: Mar 2007
Posts: 23
Default

http://mcu-programming.blogspot.com/...terfacing.html
check this page.
Reply With Quote
  #4  
Old 03-13-2007, 09:08 AM
hammy hammy is offline
New Member
 
Join Date: Mar 2007
Posts: 2
Default Serial interface is what is needed!!!

Thank u friends for the replies ...as i have said the interfacing of the ADC with the microcontroller is finished....
The problem is interfacing the microcontroller to the PC and display the data transmitted from the 89C51 (which i'm using) on the monitor...

Last edited by hammy; 03-13-2007 at 09:23 AM.
Reply With Quote
  #5  
Old 03-13-2007, 02:41 PM
beenthere's Avatar
beenthere beenthere is offline
Senior Member
 
Join Date: Apr 2004
Location: Missouri, USA (GMT -6)
Posts: 15,815
Blog Entries: 10
Default

You may need to investigate serial I/F chips, like the MAX232. There are many available.
Reply With Quote
  #6  
Old 03-15-2007, 09:58 AM
Arm_n_Legs Arm_n_Legs is offline
Senior Member
 
Join Date: Mar 2007
Location: Singapore
Posts: 181
Default

Interfacing microcontroller to the PC? Thought you have mentioned using RS232 communincation. Just hook up the 8051 Tx pin to the Tin of the MAX232 and the Rx pin to the Rin of the MAX232. Connect these to pin (2) and (3) of the PC D-9 connector.
Reply With Quote
  #7  
Old 09-15-2011, 09:03 PM
Pete77 Pete77 is offline
New Member
 
Join Date: Sep 2011
Posts: 1
Default Interfacing a microcontroller with a PC using serial port

The following site provides a circuit to interface a microcontroller to a PC using just basic parts available from Radio Shack. Furthermore, the circuit presented does not require an external power supply. If interested, the url is:

http://sites.google.com/site/calculatingrisk/Home/--serial-port-interface
Reply With Quote
  #8  
Old 09-20-2011, 11:18 PM
nicsnicolan nicsnicolan is offline
Junior Member
 
Join Date: Sep 2011
Posts: 12
Default

sir just wanna ask how did you able to interface the adc to the microcontroller??
Reply With Quote
Reply   Post New Thread

Tags
, , ,


Related Site Pages
Section Title
Worksheet Shift registers
Worksheet Digital communication
Worksheet Digital display circuits
Video Lecture Hardware: IO, RTC, PS - Microprocessors
Video Lecture Representative System (Part 2) - Computer Hardware - Microprocessors
Video Lecture Representative System (Part 3) - Executing a Program - Microprocessors
Video Lecture Hardware - Memory - Microprocessors
Video Lecture Microprocessor bus Networks - Microprocessors
Textbook Networks and busses : Digital Communication
Textbook Introduction : Shift Registers


Similar Threads
Thread Thread Starter Forum Replies Last Post
matlab and arduino: serial port connection lcr2139 Embedded Systems and Microcontrollers 2 04-08-2013 06:28 PM
Parallel Serial Port problem ssembo The Projects Forum 5 07-05-2011 09:50 PM
appliances management using interfacing of VB6.0, PIC16F877, and parallel port marcus jamus Embedded Systems and Microcontrollers 1 06-30-2009 01:18 PM
Working with serial port auststud Embedded Systems and Microcontrollers 2 05-06-2009 03:15 PM

Thread Tools
Display Modes

Posting Rules
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 On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:19 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.