MAnu8l k p5eklada4i XC16 je v C:\Program Files (x86)\Microchip\xc16\v1.33\docs strana 41 manualu pro XC16 2.5.14.3 MIGRATION TO THE CCI For the 8-bit compilers, change any occurrence of the __CONFIG() macro, e.g., __CONFIG(WDTEN & XT & DPROT) to the #pragma config directive, e.g., #pragma config WDTE=ON, FOSC=XT, CPD=ON No migration is required if the #pragma config was already used. For the 16-bit compilers, change any occurrence of the _FOSC() or _FBORPOR() macros attribute, e.g., from: _FOSC(CSW_FSCM_ON & EC_PLL16); to: #pragma config FCKSMEM = CSW_ON_FSCM_ON, FPR = ECIO_PLL16 No migration is required for 32-bit code. 2.5.14 Specifying Configuration Bits The #pragma config directive can be used to program the Configuration bits for a device. The pragma has the form: #pragma config setting = state|value where setting is a configuration setting descriptor (e.g., WDT), state is a descriptive value (e.g., ON) and value is a numerical value. Use the native keywords discussed in the Differences section to look up information on the semantics of this directive. Takhle to vypadalo u stare konfigurace _FOSCSEL( FNOSC_FRC ) _FOSC( OSCIOFNC_ON & IOL1WAY_OFF) _FWDT( FWDTEN_OFF ) 6.5 CONFIGURATION BIT ACCESS Microchip devices have several locations which contain the configuration bits or fuses. These bits specify fundamental device operation, such as the oscillator mode, watchdog timer, programming mode and code protection. Failure to correctly set these bits may result in code failure or a non-running device. Configuration Settings may be made using the preprocessor directive #pragma config and settings macros specified under the docs subdirectory of the compiler install directory. The directive format options are: #pragma config setting = state|value #pragma config register = value where setting is a configuration setting descriptor (e.g., WDT), state is a descriptive value (e.g., ON) and value is a numerical value. The register token may represent a whole configuration word register, e.g., CONFIG1L. A list of all available settings by device may be found from MPLAB X IDE, Dashboard window, Compiler Help button or from the command-line under: /vx.xx/docs/config_index.html A konkr0tn9 direktivy jsou ASI tady file:///C:/Program%20Files%20(x86)/Microchip/xc16/v1.33/docs/config_docs/33EV32GM002.html