pll_drv.h File Reference

pll_drv.h,vThis file contains the low level macros and definition for the USB PLL More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PLLx24   ( (0<<PLLP2) | (0<<PLLP1) | (0<<PLLP0) )
#define PLLx12   ( (0<<PLLP2) | (0<<PLLP1) | (1<<PLLP0) )
#define PLLx08   ( (0<<PLLP2) | (1<<PLLP1) | (0<<PLLP0) )
#define PLLx06   ( (0<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) )
#define PLLx04   ( (1<<PLLP2) | (0<<PLLP1) | (0<<PLLP0) )
#define PLLx03   ( (1<<PLLP2) | (0<<PLLP1) | (1<<PLLP0) )
#define PLLx04_8   ( (1<<PLLP2) | (1<<PLLP1) | (0<<PLLP0) )
#define PLLx02   ( (1<<PLLP2) | (1<<PLLP1) | (1<<PLLP0) )
#define Start_pll(clockfactor)   (PLLCSR = ( clockfactor | (1<<PLLE) ))
 Start the PLL at only 48 MHz, regarding CPU frequency Start the USB PLL with clockfactor clockfactor can be PLLx24, PLLx12, PLLx08 PLLx06, PLLx04, PLLx03.
#define Is_pll_ready()   (PLLCSR & (1<<PLOCK) )
 return 1 when PLL locked
#define Wait_pll_ready()   while (!(PLLCSR & (1<<PLOCK)))
 Test PLL lock bit and wait until lock is set.
#define Stop_pll()   (PLLCSR &= (~(1<<PLLE)) )
 Stop the PLL.


Detailed Description

pll_drv.h,vThis file contains the low level macros and definition for the USB PLL

Copyright (c) 2006 Atmel.

Please read file license.txt for copyright notice.

Version:
1.7 at90usb128-demo-hidgen-1_0_0
Todo:

Definition in file pll_drv.h.


Generated on Fri Mar 17 16:02:06 2006 for Atmel by  doxygen 1.4.6-NO