-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Hello sir ,
i am using SPI2 in my project.
void SPI2_Init(void)
{
SYS->GPG_MFPL &= ~(SYS_GPF_MFPH_PF11MFP_Pos | SYS_GPG_MFPL_PG4MFP_Pos | SYS_GPG_MFPL_PG3MFP_Pos | SYS_GPG_MFPL_PG2MFP_Pos);
SYS->GPG_MFPL |= (SYS_GPF_MFPH_PF11MFP_SPI2_MOSI | SYS_GPG_MFPL_PG4MFP_SPI2_MISO |SYS_GPG_MFPL_PG3MFP_SPI2_CLK | SYS_GPG_MFPL_PG2MFP_SPI2_SS);
/* Configure SPI_FLASH_PORT as a master, MSB first, 8-bit transaction, SPI Mode-0 timing, clock is 24MHz */
SPI_Open(SPI2, SPI_MASTER, SPI_MODE_0, 8, 3000000);
/* Disable auto SS function, control SS signal manually */
SPI_DisableAutoSS(SPI2);
}
this is my initialization . now in this case i write anything . its show me 0x00 on logic analyser. why this is happen ?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels