Hi
I am using the LPC844 and the SDK
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
解決済! 解決策の投稿を見る。
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
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.
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