CMSIS2000
0.0.7
|
Определения для схемы PLL NXP LPC2xxx. Подробнее...
#include "mcu_id.h"
Макросы | |
#define | CLKSRCSEL_concat(a, b) CLKSRCSEL_concat2(CLKSRCSEL_Val_,b) |
#define | CLKSRCSEL_concat2(a, b) a##b |
#define | CLKSRCSEL_IRC 0 |
00 Selects the Internal RC oscillator as the PLL clock source (default). | |
#define | CLKSRCSEL_RTC 2 |
10 Selects the RTC oscillator as the PLL clock source. | |
#define | CLKSRCSEL_Val CLKSRCSEL_XTAL /* by default enablin external OSC*/ |
#define | CLKSRCSEL_Val_0 IRC_OSC_HZ |
#define | CLKSRCSEL_Val_1 XTAL_HZ |
#define | CLKSRCSEL_Val_2 RTC_CLK_HZ |
#define | CLKSRCSEL_XTAL 1 |
01 Selects the main oscillator as the PLL clock source. | |
#define | F_CCLK_HZ ((PLL_MValue + 1) * F_OSC_HZ) |
Defenitions for Phased Lock Loop (PLL) | |
#define | F_CCO_HZ (2 * (1 << PLL_PValue) * F_CCLK_HZ) |
#define | F_OSC_HZ CLKSRCSEL_concat(,CLKSRCSEL_Val) |
there is three clock soursec in lpc2xxx and table here describe sourses and frequency constants. | |
#define | IRC_OSC_HZ (4000000UL)/* Internal RC oscillator frequency*/ |
#define | RTC_CLK_HZ (32768U)/* external RTC oscillator frequency*/ |
Определения для схемы PLL NXP LPC2xxx.
См. определение в файле lpc2xxx_pllclk.h