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