rs232 and 8051 interfacing

A

Thread Starter

Anonymous

im stuck on how i can interface an ADC,DAC and an rs232 to one 8051 microprocessor.can anyone please help?
 
This is both a simple and complex question. There are many ways you could do it. Is this ALL the I?O you need or do you need to keep free pins for other stuff?

Ultimately it comes down to learning the architecture of the chip you are planning on using. Is this a run of the mill 8051? Zilog makes 8051's with that hardware built in.

So, What chip are you using?
What ADC/DAC chips are you using?
Have you consulted the datasheets?
Have you done a search on Google for "8051 ADC" or 8051 Interface, or projects

Development kits usually provide ADC/DAC and Serial port interfaces. They go for $150 or less.

Myke Predko wrote an excellent book on the 8051. If you plan on doing any more work with that chip, then get the book.. worth the 40 or so dollars. (not that I specifically endorse Myke, the point is, getting A book on the subject will clear most of your questions up)

Hope it helps at least guide you to your answers.
 
E
Ugh. It depends on many things. Conversion speed, resolution, etc.

Regarding RS232, the 8051 has a built-in USART, You only need a RS323-TTL buffer like MAX232 and you are done.

With ADC and DACs, I think your best bet is to use converters with SPI or I2C interface and use two or three pins of any 8051 port to implement a SPI interface. You must program the SPI read/write subroutines, but that's rather simple.

Otherwise, you will have to waste a whole 8 bits port, add a latch to sample address and data, add some address decoder, etc, etc, etc.

Take a look on chips like Microchip MCP3001

http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName=en010527

HTH. Eugenio
 
L

Long, Nguyen

you can make an rs232 interface base on 8051 pins.Pins use for rs232 is /RD, /WR, TXD, RXD in port 3.
 
Top