各位大哥好,我现用8m的外部晶振请问以下的配置对不对?
#if defined(TEST_ON_EVB)
/*! define what clock mode at startup on EVB board
* if USE_FEE is not defined by commenting out the following line,
* then it will use FEI mode which is default mode
* after reset
*/
#define USE_FEE /*!< use FEE clock mode */
//#define USE_FEE_OSC /*!< use FEE clock mode with external active oscillator */
//#define USE_FEI /*!< use FEI clock mode */
/* define external crystal frequency */
//#define EXT_CLK_FREQ_KHZ 32 /* in KHz */
//#define EXT_CLK_FREQ_KHZ 4000 /* in KHz */
#define EXT_CLK_FREQ_KHZ 8000 /* in KHz */
//#define EXT_CLK_FREQ_KHZ 10000 /* in KHz */
//#define CRYST_HIGH_GAIN
//#define XOSC_STOP_ENABLE
/* define SCI port # to be used */
#define TERM_PORT UART0 /*!< UART0 is used on KE02 EVB board */
#else
/*! define what clock mode at startup on freedom board
* if USE_FEE is not defined by commenting out the following line,
* then it will use FEI mode which is default mode
* after reset.
*/
#define USE_FEE /*!< use FEE clock mode */
//#define USE_FEE_OSC /*!< use FEE clock mode with external active oscillator */
//#define USE_FEI /*!< use FEI clock mode */
/*! define external crystal frequency. */
//#define EXT_CLK_FREQ_KHZ 32 /* in KHz */
//#define EXT_CLK_FREQ_KHZ 4000 /* in KHz */
#define EXT_CLK_FREQ_KHZ 8000 /* in KHz */
//#define EXT_CLK_FREQ_KHZ 10000 /* in KHz */
/*! define UART port # to be used */
#define TERM_PORT UART1 /*!< UART1 is used on KE02 freedom board */
#endif
|