Other Parts Discussed in Thread: LAUNCHXL-F28379D, , C2000WARE
I am using C2000 LAUNCHXL-F28379D LaunchPad
evaluation board. I am trying to configure the SPI A clock for 1 Mhz baud rate (loop back disabled). but when observed on oscilloscope the SPI clock is coming ~ 50 Hz. Following are the Sysclock, LSPCLK and SPI BRR settings:
Sysclock: 200 Mhz (SYSCTL_IMULT: 40, SYSCTL_SYSDIV:2, Clock source: External Oscillator (10Mhz))
LSPCLK: 50 MHz (LOSPCP: LSPCLKDIV = 2)
SPI BRR: 1 MHz (SPIBRR: 49)
the clock to SPI device is enabled (PCLKCR8: 7)
the GPIO MUX settings are done to select SPI High speed configuration.
to test the SPI clock , I am writing some dummy value to SPI TX BUF in an infinite loop. I am tapping SPICLKA (J1-7) on TMS320F28379D LaunchPad XL evaluation board. the clock observed on oscilloscope is coming as ~ 50 Hz.
once i changed the sysclock to 100 Mhz and then again i set it back to 200 Mhz, after that the SPI clock was coming at 1 Mhz. but after some power cycles it again started coming as ~50 Hz.
what could be issue with the SPI clock setup. please suggest.