P89v51rd2 Interface With Adc Mcp3202
In this interface session we are interface mcp3202 adc interface with 8051 microcontroller. Mcp3202 is a 12bit spi protocol adc, is interface with P89v51rd2 microcontroller,this microcontroller have spi protocol so no need to worry about SDI,SDO,CLCK. Interface mcp3202 to 8051 microcontroller CS is P2.2 and MOSI is connected to P1.5 and MISO is P1.6, SCK is P1.7 refer the P89v51rd2 datasheet and MCP3202 datasheet.In this session our kit LCD P0 is for Data and P3.6 is R/s Register Select and P3.7 is for E/N Enable pin.You have interface these adc is very easy just copy we code and compile using keil or Ride compiler without no errors. U have to only P89v51rd2 compiler because the spi protocol library function is there in the header file.
Pic microcontroller project
Communication with the MCP3028 ADC chip is done using a simple serial interface compatible with the SPI protocol. The Pic16f84 or Pic16f628 didn`t had hardware SPI peripheral. However, software implemeted SPI protocol can be done to communicate with 12 bit MCP3028 ADC device. The example of this communication shown as following circuit diagram. Th