PIC12F683 Data Sheet - Microchip

PIC12F683 Data Sheet - Microchip PIC12F683 Data Sheet - Microchip

21.01.2015 Views

PIC12F683 8-Pin Diagram (PDIP, SOIC) VDD 1 8 VSS GP5/T1CKI/OSC1/CLKIN GP4/AN3/T1G/OSC2/CLKOUT 2 3 PIC12F683 7 6 GP0/AN0/CIN+/ICSPDAT/ULPWU GP1/AN1/CIN-/VREF/ICSPCLK GP3/MCLR/VPP 4 5 GP2/AN2/T0CKI/INT/COUT/CCP1 8-Pin Diagram (DFN) VDD GP5/TICKI/OSC1/CLKIN GP4/AN3/TIG/OSC2/CLKOUT GP3/MCLR/VPP 1 8 2 7 PIC12F683 3 6 4 5 VSS GP0/AN0/CIN+/ICSPDAT/ULPWU GP1/AN1/CIN-/VREF/ICSPCLK GP2/AN2/T0CKI/INT/COUT/CCP1 8-Pin Diagram (DFN-S) VDD GP5/TICKI/OSC1/CLKIN GP4/AN3/TIG/OSC2/CLKOUT GP3/MCLR/VPP 1 8 2 7 PIC12F683 3 6 4 5 VSS GP0/AN0/CIN+/ICSPDAT/ULPWU GP1/AN1/CIN-/VREF/ICSPCLK GP2/AN2/T0CKI/INT/COUT/CCP1 TABLE 1: 8-PIN SUMMARY I/O Pin Analog Comparators Timer CCP Interrupts Pull-ups Basic GP0 7 AN0 CIN+ — — IOC Y ICSPDAT/ULPWU GP1 6 AN1/VREF CIN- — — IOC Y ICSPCLK GP2 5 AN2 COUT T0CKI CCP1 INT/IOC Y — GP3 (1) 4 — — — — IOC Y (2) MCLR/VPP GP4 3 AN3 — T1G — IOC Y OSC2/CLKOUT GP5 2 — — T1CKI — IOC Y OSC1/CLKIN — 1 — — — — — — VDD — 8 — — — — — — VSS Note 1: Input only. 2: Only when pin is configured for external MCLR. DS41211D-page 2 © 2007 Microchip Technology Inc.

PIC12F683 Table of Contents 1.0 Device Overview .......................................................................................................................................................................... 5 2.0 Memory Organization................................................................................................................................................................... 7 3.0 Oscillator Module (With Fail-Safe Clock Monitor)....................................................................................................................... 19 4.0 GPIO Port................................................................................................................................................................................... 31 5.0 Timer0 Module ........................................................................................................................................................................... 41 6.0 Timer1 Module with Gate Control............................................................................................................................................... 44 7.0 Timer2 Module ........................................................................................................................................................................... 49 8.0 Comparator Module.................................................................................................................................................................... 51 9.0 Analog-to-Digital Converter (ADC) Module ................................................................................................................................ 61 10.0 Data EEPROM Memory ............................................................................................................................................................. 71 11.0 Capture/Compare/PWM (CCP) Module ..................................................................................................................................... 75 12.0 Special Features of the CPU...................................................................................................................................................... 83 13.0 Instruction Set Summary .......................................................................................................................................................... 101 14.0 Development Support............................................................................................................................................................... 111 15.0 Electrical Specifications............................................................................................................................................................ 115 16.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 137 17.0 Packaging Information.............................................................................................................................................................. 159 Appendix A: Data Sheet Revision History.......................................................................................................................................... 165 Appendix B: Migrating From Other PIC® Devices ............................................................................................................................. 165 The Microchip Web Site..................................................................................................................................................................... 171 Customer Change Notification Service .............................................................................................................................................. 171 Customer Support.............................................................................................................................................................................. 171 Reader Response .............................................................................................................................................................................. 172 Product Identification System ............................................................................................................................................................ 173 TO OUR VALUED CUSTOMERS It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and enhanced as new volumes and updates are introduced. If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via E-mail at docerrors@microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. We welcome your feedback. Most Current Data Sheet To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at: http://www.microchip.com You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page. The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000). Errata An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision of silicon and revision of document to which it applies. To determine if an errata sheet exists for a particular device, please check with one of the following: • Microchip’s Worldwide Web site; http://www.microchip.com • Your local Microchip sales office (see last page) When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are using. Customer Notification System Register on our web site at www.microchip.com to receive the most current information on all of our products. © 2007 Microchip Technology Inc. DS41211D-page 3

<strong>PIC12F683</strong><br />

8-Pin Diagram (PDIP, SOIC)<br />

VDD<br />

1<br />

8<br />

VSS<br />

GP5/T1CKI/OSC1/CLKIN<br />

GP4/AN3/T1G/OSC2/CLKOUT<br />

2<br />

3<br />

<strong>PIC12F683</strong><br />

7<br />

6<br />

GP0/AN0/CIN+/ICSPDAT/ULPWU<br />

GP1/AN1/CIN-/VREF/ICSPCLK<br />

GP3/MCLR/VPP<br />

4<br />

5<br />

GP2/AN2/T0CKI/INT/COUT/CCP1<br />

8-Pin Diagram (DFN)<br />

VDD<br />

GP5/TICKI/OSC1/CLKIN<br />

GP4/AN3/TIG/OSC2/CLKOUT<br />

GP3/MCLR/VPP<br />

1<br />

8<br />

2<br />

7<br />

<strong>PIC12F683</strong><br />

3<br />

6<br />

4 5<br />

VSS<br />

GP0/AN0/CIN+/ICSPDAT/ULPWU<br />

GP1/AN1/CIN-/VREF/ICSPCLK<br />

GP2/AN2/T0CKI/INT/COUT/CCP1<br />

8-Pin Diagram (DFN-S)<br />

VDD<br />

GP5/TICKI/OSC1/CLKIN<br />

GP4/AN3/TIG/OSC2/CLKOUT<br />

GP3/MCLR/VPP<br />

1<br />

8<br />

2<br />

7<br />

<strong>PIC12F683</strong><br />

3<br />

6<br />

4 5<br />

VSS<br />

GP0/AN0/CIN+/ICSPDAT/ULPWU<br />

GP1/AN1/CIN-/VREF/ICSPCLK<br />

GP2/AN2/T0CKI/INT/COUT/CCP1<br />

TABLE 1:<br />

8-PIN SUMMARY<br />

I/O Pin Analog Comparators Timer CCP Interrupts Pull-ups Basic<br />

GP0 7 AN0 CIN+ — — IOC Y ICSPDAT/ULPWU<br />

GP1 6 AN1/VREF CIN- — — IOC Y ICSPCLK<br />

GP2 5 AN2 COUT T0CKI CCP1 INT/IOC Y —<br />

GP3 (1) 4 — — — — IOC Y (2) MCLR/VPP<br />

GP4 3 AN3 — T1G — IOC Y OSC2/CLKOUT<br />

GP5 2 — — T1CKI — IOC Y OSC1/CLKIN<br />

— 1 — — — — — — VDD<br />

— 8 — — — — — — VSS<br />

Note 1: Input only.<br />

2: Only when pin is configured for external MCLR.<br />

DS41211D-page 2<br />

© 2007 <strong>Microchip</strong> Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!