I am looking for a sequence to read data from MCP3008 or write data to MCP3008hi,
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
Pull /CS lowHow to tell the chip to get ready to perform a communication.
The CLK input tells the 3008 what to do and when.How to give the time to perform the communication.
Look at the diagram in post #2.How to write data to chip or read data from chip.
I would interface it with Raspberry pi and I would prefer pythonhi,
Which MCU and language do you plan to use to talk to the MCP3008.?
E
Hi ericgibbshi,
Look at this link.
by Aaron Carman
by Duane Benson
by Don Wilcher
by Duane Benson