Kittu20
Member level 2
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?
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?