AT89C51 interfacing I2C, ADC and SPI

Status
Not open for further replies.

fan174

Member
AT89C51 does not have on chip (I2C, ADC and SPI) but some time we use i2c device like RTC. How does AT89C51 communicate with ADC device, SPI device and I2C device while AT89C51 doesn't have on chip ADS, I2C, SPI hardware. Does it require external hardware to communicate ?
 
No, you emulate it in software - have you considered using google to do a simple search before asking on a forum?.
 
Did you look at my 8051 articles? I did an ADC with the MCP3008 (SPI) and a DAC MCP4921 (SPI)..All this with a basic 8051...

There are several SPI RTC units, which will use the same interface..
 
Did you look at my 8051 articles? I did an ADC with the MCP3008 (SPI) and a DAC MCP4921 (SPI)..All this with a basic 8051...

There are several SPI RTC units, which will use the same interface..
by reading a lot, confused

What would i need , If I want to measure the device temperature using thermocuple then what I have to buy ? Do i need only MCP3008 (SPI) ? Or I need ADC 0804 ?
 
Its up to you....
The ADC0804 is a single channel parallel 8 bit ADC which uses one of your ports plus several control lines..

The MCP3008 is a 4 channel 10 bit ADC with an SPI interface that uses 3 pins... Both will do the job!! However!! I have written the code for the MCP3008 and it's half the price...
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…