LPC844 SPI clock

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,828件の閲覧回数
tyassin1
Contributor II

Hi

I am using the LPC844 and the SDK

tyassin1_0-1618139823587.png

According to the manual it is needed to enable the clock source through the register: SPI0CLKSEL.

However I cannot find this register anywhere. Where is it possible to enable the clock for SPI0?

Thank you

 

ラベル(3)
0 件の賞賛
返信
1 解決策
1,806件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello tyassin1,

The register of "SPI0CLKSEL" is included in  FCLKSEL[11];

You can configuration the SPI clock through as below code in SDK:


/* Attach main clock to SPI0. */
CLOCK_Select(kSPI0_Clk_From_MainClk);

 

BTW, recommend you refer to the SPI demo under SDK for lpc845MAX board.

 

BR

Alice

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,791件の閲覧回数
tyassin1
Contributor II

Hi Alice,

OK I See. 

So it is just how the SDK is implemented. I can see in the SDK that there are dedicated I2CnCLKSEL and UARTnCLKSEL for I2C and the UART, but the SPI has to use this FCLKSEL register?

Thank you.

0 件の賞賛
返信
1,786件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello tyassin1,

I also have same doubt as you , any way, it can work.

 

BR

Alice

0 件の賞賛
返信
1,807件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello tyassin1,

The register of "SPI0CLKSEL" is included in  FCLKSEL[11];

You can configuration the SPI clock through as below code in SDK:


/* Attach main clock to SPI0. */
CLOCK_Select(kSPI0_Clk_From_MainClk);

 

BTW, recommend you refer to the SPI demo under SDK for lpc845MAX board.

 

BR

Alice

0 件の賞賛
返信