CONFIG OSC
(Created page with "= <span class="f_Header">Action</span> = Select and enable the oscillators available to the Xmega <span style="font-family: Arial;"> </span> <span style="font-family: ...") |
|||
Line 3: | Line 3: | ||
Select and enable the oscillators available to the Xmega | Select and enable the oscillators available to the Xmega | ||
− | + | | |
+ | |||
+ | See also [[ATXMEGA]] | ||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Line 9: | Line 11: | ||
= <span class="f_Header">Syntax</span> = | = <span class="f_Header">Syntax</span> = | ||
− | <span style="font-weight: bold; color: rgb(0, 0, 128);">CONFIG OSC=</span>ENABLED|DISABLED ,<span style="font-weight: bold; color: rgb(0, 0, 128);"> PLLOSC=</span>ENABLED|DISABLED, <span style="font-weight: bold; color: rgb(0, 0, 128);"> EXTOSC=</span>ENABLED|DISABLED,<span style="font-weight: bold; color: rgb(0, 0, 128);">32KHZOSC=</span>ENABLED|DISABLED, | + | <span style="font-weight: bold; color: rgb(0, 0, 128);">CONFIG OSC=</span>ENABLED|DISABLED ,<span style="font-weight: bold; color: rgb(0, 0, 128);"> PLLOSC=</span>ENABLED|DISABLED, <span style="font-weight: bold; color: rgb(0, 0, 128);"> EXTOSC=</span>ENABLED|DISABLED, <span style="font-weight: bold; color: rgb(0, 0, 128);">32KHZOSC=</span>ENABLED|DISABLED,<span style="font-weight: bold; color: rgb(0, 0, 128);"> 32MHZOSC=</span>ENABLED|DISABLED, <span style="font-weight: bold; color: rgb(0, 0, 128);"> RANGE=</span>range, <span style="font-weight: bold; color: rgb(0, 0, 128);">32KHZPOWERMODE=</span>powermode, <span style="font-weight: bold; color: rgb(0, 0, 128);">STARTUP=</span>startup , <span style="font-weight: bold; color: rgb(0, 0, 128);">PLLSOURCE=</span>pll , <span style="font-weight: bold; color: rgb(0, 0, 128);">PLLDIV2=</span>plldiv ,<span style="font-weight: bold; color: rgb(0, 0, 128);">PLLMUL=</span>pllmul |
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Line 17: | Line 19: | ||
= <span class="f_Header">Remarks</span> = | = <span class="f_Header">Remarks</span> = | ||
<div style="padding: 0px; margin: 0px 0px 0px 4px;"> | <div style="padding: 0px; margin: 0px 0px 0px 4px;"> | ||
− | {| | + | {| cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;" |
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
OSC | OSC | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Use ENABLED to enable the internal 2 MHZ oscillator. This oscillator is enabled by default. Use DISABLED to disable the internal oscillator. | Use ENABLED to enable the internal 2 MHZ oscillator. This oscillator is enabled by default. Use DISABLED to disable the internal oscillator. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
PLLOSC | PLLOSC | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Use ENABLED to enable the PLL oscillator. The oscillator is disabled by default. | Use ENABLED to enable the PLL oscillator. The oscillator is disabled by default. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
EXTOSC | EXTOSC | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Use ENABLED to enable the external oscillator. The external oscillator is disabled by default. | Use ENABLED to enable the external oscillator. The external oscillator is disabled by default. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
32KHZOSC | 32KHZOSC | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Use ENABLED to enable the internal 32 KHz oscillator. This oscillator is disabled by default. | Use ENABLED to enable the internal 32 KHz oscillator. This oscillator is disabled by default. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
32MHZOSC | 32MHZOSC | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Use ENABLED to enable the internal 32 MHz oscillator. This oscillator is disabled by default. | Use ENABLED to enable the internal 32 MHz oscillator. This oscillator is disabled by default. | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
RANGE | RANGE | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Specify the range of the external oscillator. | Specify the range of the external oscillator. | ||
Line 71: | Line 73: | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
32KHZPOWERMODE | 32KHZPOWERMODE | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
Select the power mode of the 32 KHz interal oscillator. This can be NORMAL or LOW_POWER. | Select the power mode of the 32 KHz interal oscillator. This can be NORMAL or LOW_POWER. | ||
Line 80: | Line 82: | ||
|- style="vertical-align: top;" | |- style="vertical-align: top;" | ||
− | | valign="top" width=" | + | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | |
STARTUP | STARTUP | ||
− | | valign="top" width=" | + | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | |
The startup time can be specified. Use a value of : | The startup time can be specified. Use a value of : | ||
Line 95: | Line 97: | ||
- XTAL_16CLK (for 16K CLK) | - XTAL_16CLK (for 16K CLK) | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | PLLSOURCE | ||
+ | |||
+ | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | This option let you select the oscillator source of the PLL oscillator. Valid options are : | ||
+ | |||
+ | - RC2MHZ , the internal 2 MHz oscillator (default) | ||
+ | |||
+ | - RC32MHZ , the internal 32 MHz oscillator | ||
+ | |||
+ | - EXTCLOCK , an external clock signal or oscillator | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | PLLDIV2 | ||
+ | |||
+ | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | This option let you select the PLL two divider. Valid options are ENABLED and DISABLED | ||
+ | |||
+ | |- style="vertical-align: top;" | ||
+ | | valign="top" width="16%" style="width: 152px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | PLLMUL | ||
+ | |||
+ | | valign="top" width="126%" style="width: 809px; border: 1px solid rgb(0, 0, 0);" | | ||
+ | This option let you specify the PLL multiplication factor. The numeric value must be in the range from 1-31. A value of 0 disables the multiplication. | ||
|} | |} | ||
</div> | </div> | ||
− | |||
− | |||
<span style="font-family: Arial;"> </span> | <span style="font-family: Arial;"> </span> | ||
Revision as of 12:39, 24 August 2013
Contents |
Action
Select and enable the oscillators available to the Xmega
See also ATXMEGA
Syntax
CONFIG OSC=ENABLED|DISABLED , PLLOSC=ENABLED|DISABLED, EXTOSC=ENABLED|DISABLED, 32KHZOSC=ENABLED|DISABLED, 32MHZOSC=ENABLED|DISABLED, RANGE=range, 32KHZPOWERMODE=powermode, STARTUP=startup , PLLSOURCE=pll , PLLDIV2=plldiv ,PLLMUL=pllmul
Remarks
OSC |
Use ENABLED to enable the internal 2 MHZ oscillator. This oscillator is enabled by default. Use DISABLED to disable the internal oscillator. |
PLLOSC |
Use ENABLED to enable the PLL oscillator. The oscillator is disabled by default. |
EXTOSC |
Use ENABLED to enable the external oscillator. The external oscillator is disabled by default. |
32KHZOSC |
Use ENABLED to enable the internal 32 KHz oscillator. This oscillator is disabled by default. |
32MHZOSC |
Use ENABLED to enable the internal 32 MHz oscillator. This oscillator is disabled by default. |
RANGE |
Specify the range of the external oscillator. - 400KHZ_2MHZ - 2MHZ_9MHZ - 9MHZ_12MHZ - 12MHZ_16MHZ This option is only needed when using the external oscillator. |
32KHZPOWERMODE |
Select the power mode of the 32 KHz interal oscillator. This can be NORMAL or LOW_POWER. The default is NORMAL |
STARTUP |
The startup time can be specified. Use a value of : - EXTCLK (6 CLK) - 32KHZ (for 16 CLK) - XTAL_256CLK (for 256 CLK) - XTAL_1KCLK (for 1K CLK) - XTAL_16CLK (for 16K CLK) |
PLLSOURCE |
This option let you select the oscillator source of the PLL oscillator. Valid options are : - RC2MHZ , the internal 2 MHz oscillator (default) - RC32MHZ , the internal 32 MHz oscillator - EXTCLOCK , an external clock signal or oscillator |
PLLDIV2 |
This option let you select the PLL two divider. Valid options are ENABLED and DISABLED |
PLLMUL |
This option let you specify the PLL multiplication factor. The numeric value must be in the range from 1-31. A value of 0 disables the multiplication. |
See also
Example
Config Osc = Enabled , 32mhzosc = Enabled ' enable 2 MHz and 32 MHz interal oscillators
Languages | English • Deutsch |
---|