Program Memory Organization The PIC12F683 has a 13-bit program counter capable of addressing an 8k x 14 program memory space. Only the first 2k x 14 (0000h-07FFh) for the PIC12F683 is physically implemented. Accessing a location above these boundaries will cause a wraparound within the first 2K x 14 space. The Reset vector is at 0000h and the interrupt vector is at 0004h. Data Memory Organization The data memory is partitioned into two banks, which contain the General Purpose Registers (GPR) and the Special Function Registers (SFR). The Special Function Registers are located in the first 32 locations of each bank. Register locations 20h-7Fh in Bank 0 and A0h-BFh in Bank 1 are General Purpose Registers, implemented as static RAM. Register locations F0h-FFh in Bank 1 point to addresses 70h-7Fh in Bank 0. All other RAM is unimplemented and returns ¡®0¡¯ when read. RP0 of the STATUS register is the bank select bit.
Key Features
High-Performance RISC CPU:
Only 35 instructions to learn:
All single-cycle instructions except branches
Operating speed:
DC ? 20 MHz oscillator/clock input
DC ? 200 ns instruction cycle
Interrupt capability
8-level deep hardware stack
Direct, Indirect and Relative Addressing modes
Special Microcontroller Features:
Precision Internal Oscillator:
Factory calibrated to ¡¾1%, typical
Software selectable frequency range of 8 MHz to 125 kHz
Software tunable
Two-Speed Start-up mode
Crystal fail detect for critical applications
Clock mode switching during operation for power savings
Power-Saving Sleep mode
Wide operating voltage range (2.0V-5.5V)
Industrial and Extended temperature range
Power-on Reset (POR)
Power-up Timer (PWRT) and Oscillator Start-up Timer (OST)
Brown-out Reset (BOR) with software control option
Enhanced Low-Current Watchdog Timer (WDT) with on-chip oscillator (software selectable nominal 268 seconds with full prescaler) with software enable
Multiplexed Master Clear with pull-up/input pin
Programmable code protection
High Endurance Flash/EEPROM cell:
100,000 write Flash endurance
1,000,000 write EEPROM endurance
Flash/Data EEPROM Retention: > 40 years
Low-Power Features:
Standby Current:
50 nA @ 2.0V, typical
Operating Current:
11 ¥ìA @ 32 kHz, 2.0V, typical
220 ¥ìA @ 4 MHz, 2.0V, typical
Watchdog Timer Current:
1 ¥ìA @ 2.0V, typical
Peripheral Features:
6 I/O pins with individual direction control:
High current source/sink for direct LED drive
Interrupt-on-pin change
Individually programmable weak pull-ups
Ultra Low-Power Wake-up on GP0
Analog Comparator module with:
One analog comparator
Programmable on-chip voltage reference (CVREF) module (% of VDD)
Comparator inputs and output externally accessible
A/D Converter:
10-bit resolution and 4 channels
Timer0: 8-bit timer/counter with 8-bit programmable prescaler
Enhanced Timer1:
16-bit timer/counter with prescaler
External Timer1 Gate (count enable)
Option to use OSC1 and OSC2 in LP mode as Timer1 oscillator if INTOSC mode selected
Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
Capture, Compare, PWM module:
16-bit Capture, max resolution 12.5 ns
Compare, max resolution 200 ns
10-bit PWM, max frequency 20 kHz
In-Circuit Serial Programming via two pins
Core processor: PIC
Core size: 8-bit
Speed: 20MHz
Peripherals: under-voltage detection/reset, POR, PWM, WDT
I / O: 5
Program storage capacity: 3.5KB (2K x 14)
Program memory type: Flash
EEPROM capacity: 256 x 8
RAM capacity: 128 x 8
Voltage - power supply (Vcc / Vdd): 2 V ~ 5.5 V
Data converter: A/D 4x10b
Oscillator type: internal
Working temperature: -40¡ÆC ~ 85¡ÆC (TA)
Package/Shell: 8-SOIC (0.154", 3.90mm wide)
Supplier device package: 8-SOIC