CMSIS2000  0.0.7
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpc2xxx_pllclk.h File Reference

Definitions for NXP LPC2xxx PLL module. More...

#include "mcu_id.h"
Include dependency graph for lpc2xxx_pllclk.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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*/

Detailed Description

Definitions for NXP LPC2xxx PLL module.

Definition in file lpc2xxx_pllclk.h.