PIC12F683-I/P Microchip Technology Inc., PIC12F683-I/P Datasheet - Page 169
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC12F683-I/P
Manufacturer Part Number
PIC12F683-I/P
Description
8 PIN, 3.5 KB FLASH, 128 RAM, 6 I/O
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC12F683-IP.pdf
(176 pages)
Specifications of PIC12F683-I/P
A/d Inputs
4-Channel, 10-Bit
Comparators
1
Cpu Speed
5 MIPS
Eeprom Memory
256 Bytes
Input Output
5
Memory Type
Flash
Number Of Bits
8
Package Type
8-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
128 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part
Electrostatic Device
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC12F683-I/P
Manufacturer:
KINGBRIGHT
Quantity:
12 000
Company:
Part Number:
PIC12F683-I/P
Manufacturer:
Microchip Technology
Quantity:
41 739
Part Number:
PIC12F683-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
INDEX
A
A/D
Absolute Maximum Ratings .............................................. 115
AC Characteristics
ADC .................................................................................... 61
ADCON0 Register............................................................... 65
ADRESH Register (ADFM = 0) ........................................... 66
ADRESH Register (ADFM = 1) ........................................... 66
ADRESL Register (ADFM = 0)............................................ 66
ADRESL Register (ADFM = 1)............................................ 66
Analog Input Connection Considerations............................ 52
Analog-to-Digital Converter. See ADC
ANSEL Register .................................................................. 33
Assembler
B
Block Diagrams
© 2006 Microchip Technology Inc.
Specifications.................................................... 133, 134
Industrial and Extended ............................................ 125
Load Conditions ........................................................ 124
Acquisition Requirements ........................................... 67
Associated registers.................................................... 69
Block Diagram............................................................. 61
Calculating Acquisition Time....................................... 67
Channel Selection....................................................... 61
Configuration............................................................... 61
Configuring Interrupt ................................................... 64
Conversion Clock........................................................ 62
Conversion Procedure ................................................ 64
GPIO Configuration..................................................... 61
Internal Sampling Switch (R
Interrupts..................................................................... 63
Operation .................................................................... 63
Operation During Sleep .............................................. 64
Reference Voltage (V
Result Formatting........................................................ 63
Source Impedance...................................................... 67
Special Event Trigger.................................................. 64
Starting an A/D Conversion ........................................ 63
MPASM Assembler................................................... 112
(CCP) Capture Mode Operation ................................. 76
ADC ............................................................................ 61
ADC Transfer Function ............................................... 68
Analog Input Model ............................................... 52, 68
CCP PWM................................................................... 78
Clock Source............................................................... 19
Comparator ................................................................. 51
Compare ..................................................................... 77
Crystal Operation ........................................................ 22
External RC Mode....................................................... 23
Fail-Safe Clock Monitor (FSCM) ................................. 29
GP1 Pin....................................................................... 37
GP2 Pin....................................................................... 37
GP3 Pin....................................................................... 38
GP4 Pin....................................................................... 38
GP5 Pin....................................................................... 39
In-Circuit Serial Programming Connections.............. 100
Interrupt Logic ............................................................. 93
MCLR Circuit............................................................... 86
On-Chip Reset Circuit ................................................. 85
PIC12F683.................................................................... 5
Resonator Operation................................................... 22
Timer1......................................................................... 44
REF
)........................................... 62
SS
) I
MPEDANCE
................ 67
Brown-out Reset (BOR)...................................................... 87
C
C Compilers
Calibration Bits.................................................................... 85
Capture Module. See Capture/Compare/PWM (CCP)
Capture/Compare/PWM (CCP) .......................................... 75
CCP. See Capture/Compare/PWM (CCP)
CCP1CON Register............................................................ 75
Clock Sources
Clock Switching .................................................................. 27
Code Examples
Timer2 ........................................................................ 49
TMR0/WDT Prescaler ................................................ 41
Watchdog Timer (WDT).............................................. 96
Associated .................................................................. 88
Calibration .................................................................. 87
Specifications ........................................................... 129
Timing and Characteristics ....................................... 128
MPLAB C18.............................................................. 112
MPLAB C30.............................................................. 112
Associated registers w/ Capture, Compare
Associated registers w/ PWM and Timer2.................. 81
Capture Mode............................................................. 76
CCPx Pin Configuration.............................................. 76
Compare Mode........................................................... 77
Prescaler .................................................................... 76
PWM Mode................................................................. 78
PWM Period ............................................................... 79
Setup for PWM Operation .......................................... 80
Timer Resources ........................................................ 75
External Modes........................................................... 21
Internal Modes............................................................ 23
A/D Conversion .......................................................... 64
Assigning Prescaler to Timer0.................................... 42
Assigning Prescaler to WDT....................................... 42
Changing Between Capture Prescalers ..................... 76
Data EEPROM Read.................................................. 73
Data EEPROM Write .................................................. 73
and Timer1 ......................................................... 81
CCPx Pin Configuration...................................... 77
Software Interrupt Mode ............................... 76, 77
Special Event Trigger ......................................... 77
Timer1 Mode Selection................................. 76, 77
Duty Cycle .......................................................... 79
Effects of Reset .................................................. 80
Example PWM Frequencies and
Example PWM Frequencies and
Operation in Sleep Mode.................................... 80
Setup for Operation ............................................ 80
System Clock Frequency Changes .................... 80
EC ...................................................................... 21
HS ...................................................................... 22
LP ....................................................................... 22
OST .................................................................... 21
RC ...................................................................... 23
XT ....................................................................... 22
Frequency Selection........................................... 25
HFINTOSC ......................................................... 23
INTOSC .............................................................. 23
INTOSCIO .......................................................... 23
LFINTOSC.......................................................... 25
Resolutions, 20 MHZ .................................. 79
Resolutions, 8 MHz .................................... 79
PIC12F683
DS41211C-page 167