Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADC MCP3008 SPI Timing

Kittu20

Member level 2
Joined
Oct 18, 2022
Messages
52
Helped
1
Reputation
2
Reaction score
0
Trophy points
6
Activity points
427
I'm planning to interface a 10-bit ADC MCP3008 with my 8-bit PIC microcontroller. Before writing any code, I'm trying to understand the datasheet of the ADC. It appears that it only supports two SPI modes: CPOL=0, CPHA=0 (Figure 6.1) and CPOL=1, CPHA=1 (Figure 6.2) on pages 21 and 22. In the SPI protocol, data transfer or reception occurs on the clock edge.

In the case of CPOL=0, CPHA=0, I'm trying to determine in datasheet on which clock edge the microcontroller transfers data and on which clock edge the ADC receives data. Where can I find this information in the datasheet?
 

Attachments

  • MCP3008.pdf
    746.1 KB · Views: 52
Hi,

Page #4: "CLK Fall To Output Data Valid tDO"
--> tells: falling edge for data output

Also: page#5, Figure 1-1:
--> timing for Dout refer to falling clock edge

--> Timing for D_in (tsu, thd) refer to rising clock edge.

So both lines (Din, Dout) are
* updated at falling edge
* sampled at rising edge

Klaus
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top