Hi all, 8051 micro is very new to me. Does anybody in this forum kind enough to help me to create a routine to perform A/D and D/A so that it can be interfaced to a serial A/D or D/A converters using SPI protocol? or may be somebody can instruct me to the right site on the internet? The project I am working on requires that a standard 8051 micro to interface with the MAX187 ADC. Thanks in advance Jimmy Sayavong jsayavong@perkinselectronics.com
If you require interfacing to A/D and D/A it may be easier and quicker to obtain a device such as the Analog Devices part ADuC 812 which has an 8051 core with an 8 bit ADC and 12 bit DAC.
Thomas, what if I need 16-bit ADC? how then do I interface 8051 MCU to a 16-bit ADC using the SPI option?
The SPI port will just transmit (2) 8 bits to you. This way you can get all 16 bits from whatever adc you use. For example, the Maxim 186 is an 8 channel 12 bit A/D with an SPI interface. To use it you would Send a Control Byte with the channel selection and other setup data and simulteneously read in a byte RB1. (discard this byte) Then transmit a byte of all zeros and simultaneously read in a byte RB2. Do this again and read in RB3. RB2 and RB3 together contain the 12 bits of data (with one leading zero and three trailing zeros). Discard the extra bits and you have your 12 bit A/D data. MG
respected sir/madam, i am a student studying diploma in electronics. We have a subject called microcontroller, so it is my request to send me a copy of 12-bit ADC & DAC interfacing with 8051 thank you
i am a student.... it is my request to send me a copy of 12-bit ADC & DAC interfacing with 8051 Have your professor sign off on cheating as legal Erik
please tell me how to interface a micro-controller to a DAC and ADC.Thanks
"please tell me how to interface a micro-controller to a DAC and ADC." 1. Read the DAC Datasheet - especially the section on microcontroller interfacing 2. Do what it says! 3. Repeat for ADC. (if you haven't already, you will, of course, have to read the relevant microcontroller & software tool Datasheet(s) and Manuals)
Sir I didn't understand wat u have wriiten can u please write more details. I have worked with 8051 and i am very much familiar with it. Thank you in advance
Hello Sir, Could you please tell me how to interface the ADC AD73311AR with C80F51226 microcontroller or any other microcontroller. I mean it will be better if you can send me the circuit diagram with the SPI source code . I have written the SPI code but am not able to make it sure if its working properly or not.Waiting for your reply Roy
Btw. i have i2c ADC and had read the ADC manual and implement it. but what i confuse is, its still not working, it didnt send any message to my Com-terminal. i have reverse it, but it still gave the same result. i have tried many different speed of baud-rate (...,2400bps,...,9600bps,...) still not working. perhaps i need an oscilloscope, to see what happen inside, yah...
Btw. i have i2c ADC and had read the ADC manual and implement it. but what i confuse is, its still not working, it didnt send any message to my Com-terminal. Yes, you are confused. What on earth does the ADC have to do with serial communications?. Divide and conquer. You have coded the whole thing and do not know what works and what not. Take the serial comm parts only, disable the rest. Then try to send a character (use emulator - simulator or whatever you have) and when that works start working on making the content of the comm the ADC results. Erik
Ah my oscilloscope, how much you mean to me.