Hi Diana,
Thanks for your reply.
From your response it seems like only the SPI_CS pin (PTB5) in this case needs PCR_DSE set to 1.
Is this required for the SPI_SCK pin, PTD15 in this case?
Does SPI_SCK require any special configuration outside configuring PORT_PCR_MUX = 4?
As well in our application we are controlling the SPI0 Chip Select manually, configuring it as a GPIO, PORT_PCR_MUX = 1. (see code below)
PORTB->PCR[5] = PORT_PCR_MUX(1); // CS
PTB->PDDR |= (1 << 5); // set as output
#define FLASH_CHIP_SELECT PTB->PCOR = (1 << 5)
#define FLASH_CHIP_DESELECT PTB->PSOR = (1 << 5)
Does using the pin, PTB5, in this way still require PCR_DSE set to 1?
Is the maximum operating frequency for LPSPI0 in HSRUN at 3V3 VDD still 14MHz?
Thanks,
Stephan