LPC844 SPI clock

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC844 SPI clock

跳至解决方案
1,831 次查看
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,809 次查看
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,794 次查看
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,789 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello tyassin1,

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

 

BR

Alice

0 项奖励
回复
1,810 次查看
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 项奖励
回复