LPC844 SPI clock

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC844 SPI clock

Jump to solution
1,101 Views
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

 

Labels (3)
0 Kudos
Reply
1 Solution
1,079 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,064 Views
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 Kudos
Reply
1,059 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello tyassin1,

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

 

BR

Alice

0 Kudos
Reply
1,080 Views
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 Kudos
Reply