ebook img

MPLAB C18 C Compiler Addendum PDF

270 Pages·2004·2.46 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview MPLAB C18 C Compiler Addendum

MPLAB® C18 C COMPILER ADDENDUM  2004 Microchip Technology Inc. DS51518A Note the following details of the code protection feature on Microchip devices: (cid:127) Microchip products meet the specification contained in their particular Microchip Data Sheet. (cid:127) Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. (cid:127) There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. (cid:127) Microchip is willing to work with the customer who is concerned about the integrity of their code. (cid:127) Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as “unbreakable.” Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device Trademarks applications and the like is provided only for your convenience The Microchip name and logo, the Microchip logo, Accuron, and may be superseded by updates. It is your responsibility to dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, ensure that your application meets with your specifications. PROMATE, PowerSmart, rfPIC, and SmartShunt are MICROCHIP MAKES NO REPRESENTATIONS OR WAR- registered trademarks of Microchip Technology Incorporated RANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, in the U.S.A. and other countries. WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT AmpLab, FilterLab, MXDEV, MXLAB, PICMASTER, SEEVAL, LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, SmartSensor and The Embedded Control Solutions Company MERCHANTABILITY OR FITNESS FOR PURPOSE. are registered trademarks of Microchip Technology Microchip disclaims all liability arising from this information and Incorporated in the U.S.A. its use. Use of Microchip’s products as critical components in Analog-for-the-Digital Age, Application Maestro, dsPICDEM, life support systems is not authorized except with express dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, written approval by Microchip. No licenses are conveyed, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial implicitly or otherwise, under any Microchip intellectual property Programming, ICSP, ICEPIC, Migratable Memory, MPASM, rights. MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. © 2004, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October 2003. The Company’s quality system processes and procedures are for its PICmicro® 8-bit MCUs, KEELOQ® code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. DS51518A-page ii  2004 Microchip Technology Inc. MPLAB® C18 C COMPILER USER’S GUIDE ADDENDUM Table of Contents Configuration Settings .................................................................................................5 PIC18C242............................................................................................................5 PIC18C252............................................................................................................6 PIC18C442............................................................................................................7 PIC18C452............................................................................................................8 PIC18C601............................................................................................................9 PIC18C658..........................................................................................................10 PIC18C801..........................................................................................................11 PIC18C858..........................................................................................................12 PIC18F1220........................................................................................................13 PIC18F1320........................................................................................................15 PIC18F2220........................................................................................................18 PIC18F2320........................................................................................................21 PIC18F2331........................................................................................................24 PIC18F2410........................................................................................................27 PIC18F242..........................................................................................................30 PIC18F2420........................................................................................................32 PIC18F2431........................................................................................................35 PIC18F2439........................................................................................................38 PIC18F2455........................................................................................................40 PIC18F248..........................................................................................................44 PIC18F2480........................................................................................................47 PIC18F2510........................................................................................................50 PIC18F2515........................................................................................................53 PIC18F252..........................................................................................................56 PIC18F2520........................................................................................................58 PIC18F2525........................................................................................................62 PIC18F2539........................................................................................................65 PIC18F2550........................................................................................................67 PIC18F258..........................................................................................................71 PIC18F2580........................................................................................................74 PIC18F2585........................................................................................................78 PIC18F2610........................................................................................................81  2004 Microchip Technology Inc. DS51518A-page iii MPLAB® C18 C Compiler User’s Guide Addendum PIC18F2620........................................................................................................84 PIC18F2680........................................................................................................88 PIC18F4220........................................................................................................91 PIC18F4320........................................................................................................94 PIC18F4331........................................................................................................97 PIC18F4410......................................................................................................101 PIC18F442........................................................................................................103 PIC18F4420......................................................................................................106 PIC18F4431......................................................................................................109 PIC18F4439......................................................................................................112 PIC18F4455......................................................................................................114 PIC18F448........................................................................................................119 PIC18F4480......................................................................................................121 PIC18F4510......................................................................................................124 PIC18F4515......................................................................................................127 PIC18F452........................................................................................................130 PIC18F4520......................................................................................................133 PIC18F4525......................................................................................................136 PIC18F4539......................................................................................................139 PIC18F4550......................................................................................................141 PIC18F458........................................................................................................146 PIC18F4580......................................................................................................148 PIC18F4585......................................................................................................152 PIC18F4610......................................................................................................155 PIC18F4620......................................................................................................158 PIC18F4680......................................................................................................162 PIC18F6310......................................................................................................165 PIC18F6390......................................................................................................167 PIC18F6410......................................................................................................169 PIC18F6490......................................................................................................171 PIC18F64J15....................................................................................................173 PIC18F6520......................................................................................................175 PIC18F6525......................................................................................................178 PIC18F6585......................................................................................................181 PIC18F65J10....................................................................................................184 PIC18F65J15....................................................................................................186 PIC18F6620......................................................................................................188 PIC18F6621......................................................................................................190 PIC18F6627......................................................................................................193 DS51518A-page iv  2004 Microchip Technology Inc. Table of Contents PIC18F6680......................................................................................................198 PIC18F66J10....................................................................................................201 PIC18F66J15....................................................................................................203 PIC18F6720......................................................................................................205 PIC18F6722......................................................................................................208 PIC18F67J10....................................................................................................213 PIC18F8310......................................................................................................215 PIC18F8390......................................................................................................217 PIC18F8410......................................................................................................219 PIC18F8490......................................................................................................221 PIC18F84J15....................................................................................................223 PIC18F8520......................................................................................................225 PIC18F8525......................................................................................................228 PIC18F8585......................................................................................................231 PIC18F85J10....................................................................................................234 PIC18F85J15....................................................................................................236 PIC18F8620......................................................................................................238 PIC18F8621......................................................................................................241 PIC18F8627......................................................................................................244 PIC18F8680......................................................................................................249 PIC18F86J10....................................................................................................252 PIC18F86J15....................................................................................................254 PIC18F8720......................................................................................................256 PIC18F8722......................................................................................................260 PIC18F87J10....................................................................................................265  2004 Microchip Technology Inc. DS51518A-page v MPLAB® C18 C Compiler User’s Guide Addendum NOTES: DS51518A-page vi  2004 Microchip Technology Inc. MPLAB® C18 C COMPILER USER’S GUIDE ADDENDUM Configuration Settings This addendum lists the configuration settings for each of the devices supported by the MPLAB C18 C compiler. PIC18C242 Code Protect: CP = ON Enabled CP = OFF Disabled Oscillator Selection: OSC = LP LP OSC = XT XT OSC = HS HS OSC = RC RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO RC-OSC2 as RA6 Osc. Switch Enable: OSCS = ON Enabled OSCS = OFF Disabled Power Up Timer: PWRT = ON Enabled PWRT = OFF Disabled Brown Out Reset: BOR = OFF Disabled BOR = ON Enabled Brown Out Voltage: BORV = 45 4.5V BORV = 42 4.2V BORV = 27 2.7V BORV = 25 2.5V Watchdog Timer: WDT = OFF Disabled WDT = ON Enabled  2004 Microchip Technology Inc. DS51518A-page 1 MPLAB® C18 C Compiler User’s Guide Addendum Watchdog Postscaler: WDTPS = 1 1:1 WDTPS = 2 1:2 WDTPS = 4 1:4 WDTPS = 8 1:8 WDTPS = 16 1:16 WDTPS = 32 1:32 WDTPS = 64 1:64 WDTPS = 128 1:128 CCP2 Mux: CCP2MUX = OFF Disable (RB3) CCP2MUX = ON Enable (RC1) Stack Overflow Reset: STVR = OFF Disabled STVR = ON Enabled PIC18C252 Code Protect: CP = ON Enabled CP = OFF Disabled Oscillator Selection: OSC = LP LP OSC = XT XT OSC = HS HS OSC = RC RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO RC-OSC2 as RA6 Osc. Switch Enable: OSCS = ON Enabled OSCS = OFF Disabled Power Up Timer: PWRT = ON Enabled PWRT = OFF Disabled Brown Out Reset: BOR = OFF Disabled BOR = ON Enabled Brown Out Voltage: BORV = 45 4.5V BORV = 42 4.2V BORV = 27 2.7V BORV = 25 2.5V DS51518A-page 2  2004 Microchip Technology Inc. Configuration Settings Watchdog Timer: WDT = OFF Disabled WDT = ON Enabled Watchdog Postscaler: WDTPS = 1 1:1 WDTPS = 2 1:2 WDTPS = 4 1:4 WDTPS = 8 1:8 WDTPS = 16 1:16 WDTPS = 32 1:32 WDTPS = 64 1:64 WDTPS = 128 1:128 CCP2 Mux: CCP2MUX = OFF Disable (RB3) CCP2MUX = ON Enable (RC1) Stack Overflow Reset: STVR = OFF Disabled STVR = ON Enabled PIC18C442 Code Protect: CP = ON Enabled CP = OFF Disabled Oscillator Selection: OSC = LP LP OSC = XT XT OSC = HS HS OSC = RC RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO RC-OSC2 as RA6 Osc. Switch Enable: OSCS = ON Enabled OSCS = OFF Disabled Power Up Timer: PWRT = ON Enabled PWRT = OFF Disabled Brown Out Reset: BOR = OFF Disabled BOR = ON Enabled  2004 Microchip Technology Inc. DS51518A-page 3 MPLAB® C18 C Compiler User’s Guide Addendum Brown Out Voltage: BORV = 45 4.5V BORV = 42 4.2V BORV = 27 2.7V BORV = 25 2.5V Watchdog Timer: WDT = OFF Disabled WDT = ON Enabled Watchdog Postscaler: WDTPS = 1 1:1 WDTPS = 2 1:2 WDTPS = 4 1:4 WDTPS = 8 1:8 WDTPS = 16 1:16 WDTPS = 32 1:32 WDTPS = 64 1:64 WDTPS = 128 1:128 CCP2 Mux: CCP2MUX = OFF Disable (RB3) CCP2MUX = ON Enable (RC1) Stack Overflow Reset: STVR = OFF Disabled STVR = ON Enabled PIC18C452 Code Protect: CP = ON Enabled CP = OFF Disabled Oscillator Selection: OSC = LP LP OSC = XT XT OSC = HS HS OSC = RC RC OSC = EC EC-OSC2 as Clock Out OSC = ECIO EC-OSC2 as RA6 OSC = HSPLL HS-PLL Enabled OSC = RCIO RC-OSC2 as RA6 Osc. Switch Enable: OSCS = ON Enabled OSCS = OFF Disabled Power Up Timer: PWRT = ON Enabled PWRT = OFF Disabled DS51518A-page 4  2004 Microchip Technology Inc.

Description:
Note the following details of the code protection feature on Microchip devices: C18 C COMPILER. USER'S Watchdog Timer Postscale Selection:.
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.