|
CMSIS2000
0.0.7
|
NXP PLCK divider NXP PCLK Peripheral Clock devider -> PLCK divider (VPB bus clock dividers) Bit1 Bit0 Description 0 0 cclk/4 (1/4 From CPU CLOCK) 0 1 cclk/1 (No division) 1 0 cclk/2 (1/2 From CPU CLOCK) 1 1 cclk/6 or cclk/8. Подробнее...
|
Файлы | |
| файл | lpc2xxx_pclk.h |
| Определения для схемы PCLK (peripheral) NXP LPC2xxx. | |
| файл | lpc2xxx_pconp.h |
| Маски периферийных устройств в LPC для PCONP. | |
| файл | lpc2xxx_pllclk.h |
| Определения для схемы PLL NXP LPC2xxx. | |
Макросы | |
| #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*/ |
NXP PLCK divider NXP PCLK Peripheral Clock devider -> PLCK divider (VPB bus clock dividers) Bit1 Bit0 Description 0 0 cclk/4 (1/4 From CPU CLOCK) 0 1 cclk/1 (No division) 1 0 cclk/2 (1/2 From CPU CLOCK) 1 1 cclk/6 or cclk/8.
| #define CLKSRCSEL_concat | ( | a, | |
| b | |||
| ) | CLKSRCSEL_concat2(CLKSRCSEL_Val_,b) |
См. определение в файле lpc2xxx_pllclk.h строка 72
| #define CLKSRCSEL_concat2 | ( | a, | |
| b | |||
| ) | a##b |
См. определение в файле lpc2xxx_pllclk.h строка 71
| #define CLKSRCSEL_IRC 0 |
00 Selects the Internal RC oscillator as the PLL clock source (default).
См. определение в файле lpc2xxx_pllclk.h строка 58
| #define CLKSRCSEL_RTC 2 |
10 Selects the RTC oscillator as the PLL clock source.
См. определение в файле lpc2xxx_pllclk.h строка 60
| #define CLKSRCSEL_Val CLKSRCSEL_XTAL /* by default enablin external OSC*/ |
См. определение в файле lpc2xxx_pllclk.h строка 63
| #define CLKSRCSEL_Val_0 IRC_OSC_HZ |
См. определение в файле lpc2xxx_pllclk.h строка 67
| #define CLKSRCSEL_Val_1 XTAL_HZ |
См. определение в файле lpc2xxx_pllclk.h строка 68
| #define CLKSRCSEL_Val_2 RTC_CLK_HZ |
См. определение в файле lpc2xxx_pllclk.h строка 69
| #define CLKSRCSEL_XTAL 1 |
01 Selects the main oscillator as the PLL clock source.
См. определение в файле lpc2xxx_pllclk.h строка 59
| #define F_CCLK_HZ ((PLL_MValue + 1) * F_OSC_HZ) |
Defenitions for Phased Lock Loop (PLL)
См. определение в файле lpc2xxx_pllclk.h строка 122
| #define F_CCO_HZ (2 * (1 << PLL_PValue) * F_CCLK_HZ) |
См. определение в файле lpc2xxx_pllclk.h строка 123
| #define F_OSC_HZ CLKSRCSEL_concat(,CLKSRCSEL_Val) |
there is three clock soursec in lpc2xxx and table here describe sourses and frequency constants.
CLKSRCSEL_IRC 0 IRC_OSC_HZ will be select as osc source CLKSRCSEL_XTAL 1 XTAL_HZ will be select as osc source CLKSRCSEL_RTC 2 RTC_CLK_HZ will be select as osc source
См. определение в файле lpc2xxx_pllclk.h строка 88
| #define IRC_OSC_HZ (4000000UL)/* Internal RC oscillator frequency*/ |
См. определение в файле lpc2xxx_pllclk.h строка 53
| #define RTC_CLK_HZ (32768U)/* external RTC oscillator frequency*/ |
См. определение в файле lpc2xxx_pllclk.h строка 56