Other Parts Discussed in Thread: LAUNCHXL-F280025C, C2000WARE
Hi ,
I am trying to use set up the F28379D clock using the SysCtl_setClock() function. I have referenced one of the examples for LaunchXL-f280025C which also uses the same function SysCtl_setClock().
From hal.c
#if defined(BSXL8323RS_REVA) || defined(BSXL8323RH_REVB) || \
defined(BSXL8353RS_REVA) || defined(BSXL3PHGAN_REVA) || \
defined(BSXL8316RT_REVA)
// External 20M Crystal on LaunchXL
// Set up PLL control and clock dividers
// CPU Clock Frequency = 100MHz
// PLLSYSCLK = 20MHz (XTAL_OSC) * 30 (IMULT) / (2 (REFDIV) * 3 (ODIV) * 1(SYSDIV))
SysCtl_setClock(SYSCTL_OSCSRC_XTAL | SYSCTL_IMULT(30) |
SYSCTL_REFDIV(2) | SYSCTL_ODIV(3) |
SYSCTL_SYSDIV(1) | SYSCTL_PLL_ENABLE |
SYSCTL_DCC_BASE_0);
Here are the parameter values for f280025C on the Launch XL from sysctl.h
// DCC module selection for checking PLL clock validity
//
// Mask and shift for DCC module base address in config
//
#define SYSCTL_DCC_BASE_M (uint32_t)0x30000000U
#define SYSCTL_DCC_BASE_S 28U
#define SYSCTL_DCC_BASE_0 0x00000000U //!< DCC0 module
#define SYSCTL_DCC_BASE_1 0x10000000U //!< DCC1 module
#define SYSCTL_DCC_BASE_2 0x20000000U //!< DCC2 module
If I use the same function for SysCtl_setClock(), I am getting followings error and warnings.
The question is what are the SYSCTL_DCC_BASE_0 values for F28379D when used with the control card.
Here are my set up details:
- F28379D controlCARD
- C2000Ware_4_01_00_00
- C2000Ware_MotorControl_SDK_4_00_00_00