ADC MCP3008 Datasheet

Thread Starter

anukalp

Joined Jul 28, 2018
158
Hi,

I have a project where I would like to use MCP3008 I did some research and I found datasheet. I do not understand timing diagram with respect data transmission ,

1571834374382.png

Does anyone have an idea? I

Thank you for your help.
 

Attachments

ericgibbs

Joined Jan 29, 2010
18,865
hi,
CS has be Set Low at the start of a transmission sequence
The first 5 Clock bits tell the receiver that the MOSI Data should be Read on the Rising edge of the Clock,
Clk 6 is a Dont Care BIT
Clk 7 has to be Low
And the following 9 Clocks tell the receiver to Output 9 Bits of MISO Data prior to the Rising edge of the Clock, to the transmitter.

A Master Slave protocol

Is this what you are asking.
E
Capture.PNG
 
Last edited:

Thread Starter

anukalp

Joined Jul 28, 2018
158
hi,
CS has be Set Low at the start of a transmission sequence
The first 5 Clock bits tell the receiver that the MOSI Data should be Read on the Rising edge of the Clock,
Clk 6 is a Dont Care BIT
Clk 7 has to be Low
And the following 9 Clocks tell the receiver to Output 9 Bits of MISO Data prior to the Rising edge of the Clock, to the transmitter.

A Master Slave protocol

Is this what you are asking.
E
View attachment 189497
I am looking for a sequence to read data from MCP3008 or write data to MCP3008
  1. How to tell the chip to get ready to perform a communication.
  2. How to give the time to perform the communication.
  3. How to write data to chip or read data from chip.
 

ronsimpson

Joined Oct 7, 2019
3,045

Thread Starter

anukalp

Joined Jul 28, 2018
158
hi,
Which MCU and language do you plan to use to talk to the MCP3008.?
E
I would interface it with Raspberry pi and I would prefer python

before that I am trying to understand what are the steps write data to MCP3008 and read the data from MCP3008
 
Top