Collaboration diagram for PLL Macros:
|
Defines | |
| #define | Is_pll_ready() (PLLCSR & (1<<PLLOCK) ) |
| Return 1 if the PLL is ready. | |
| #define | Start_pll(frequency) (PLLCSR = ( (((frequency>>6)&1)<<2) | (1<<1) ) ) |
| Start the PLL at the parameter frequency (only 64 or 32 MHz). | |
| #define | Start_pll_32_mega() (PLLCSR = 0x02) |
| Start the PLL at 32MHz. | |
| #define | Start_pll_64_mega() (PLLCSR = 0x06) |
| Start the PLL at 64MHz. | |
| #define | Stop_pll() (PLLCSR = 0x00) |
| Stop the PLL. | |
| #define | Wait_pll_ready() while (!(PLLCSR & (1<<PLLOCK))) |
| #define Is_pll_ready | ( | ) | (PLLCSR & (1<<PLLOCK) ) |
| #define Start_pll | ( | frequency | ) | (PLLCSR = ( (((frequency>>6)&1)<<2) | (1<<1) ) ) |
| #define Start_pll_32_mega | ( | ) | (PLLCSR = 0x02) |
| #define Start_pll_64_mega | ( | ) | (PLLCSR = 0x06) |
| #define Wait_pll_ready | ( | ) | while (!(PLLCSR & (1<<PLLOCK))) |
1.4.7