SCK frequency from SPI peripheral in LPC1769

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SCK frequency from SPI peripheral in LPC1769

ソリューションへジャンプ
855件の閲覧回数
gowtham_pmt1
Contributor II

LPC1769:

* CPU clock frequency = 100MHz

* PCLK_SPI=1; //so peripheral clk also 100MHz

1. What value can put in S0SPCCR for getting Max. SCLK frequency for 18ADC(500KSPS and Its neeed 34 pulse for per sampling).

2. In S0SPCCR register what value can choose, based on what parameters?

0 件の賞賛
返信
1 解決策
844件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I do not know if this is your scenario, pls clarify. You use external ADC with SPI interface which functions as slave spi, the ADC conversion rate is dependent on the SCK clock frequency, as you said that one ADC conversion  requires 34 SCK clock cycles, am I right? If it is the case, the 0.5MSPS conversion rate requires that the SCK clock frequency is 0.5MHz*34=17MHz, it is okay if you configure the SCK as 17mhz.

BTW, I have checked the data sheet of LPC176x, the maximum SCK clock frequency of SPI module in master mode is 12.5MHz. The maximum SCK clock frequency for SSP module is 33MHz, I assume that you can use SSP module to communicate with the slave SPI module if the SCK is required to be 17mhz.

If it is convenient, can you tell us the ADC part number so that we can have a check?

BR

XiangJun Rong

 

 

元の投稿で解決策を見る

2 返答(返信)
845件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I do not know if this is your scenario, pls clarify. You use external ADC with SPI interface which functions as slave spi, the ADC conversion rate is dependent on the SCK clock frequency, as you said that one ADC conversion  requires 34 SCK clock cycles, am I right? If it is the case, the 0.5MSPS conversion rate requires that the SCK clock frequency is 0.5MHz*34=17MHz, it is okay if you configure the SCK as 17mhz.

BTW, I have checked the data sheet of LPC176x, the maximum SCK clock frequency of SPI module in master mode is 12.5MHz. The maximum SCK clock frequency for SSP module is 33MHz, I assume that you can use SSP module to communicate with the slave SPI module if the SCK is required to be 17mhz.

If it is convenient, can you tell us the ADC part number so that we can have a check?

BR

XiangJun Rong

 

 

838件の閲覧回数
gowtham_pmt1
Contributor II
ADS8698 is the ADC part number, sir
0 件の賞賛
返信