PIC12F510-E/SN Microchip Technology, PIC12F510-E/SN Datasheet - Page 3
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC12F510-E/SN
Manufacturer Part Number
PIC12F510-E/SN
Description
IC PIC MCU FLASH 1KX14 8SOIC
Manufacturer
Microchip Technology
Series
PIC® 12Fr
Datasheets
1.PIC12F510-ISN.pdf
(124 pages)
2.PIC12F510-ISN.pdf
(8 pages)
3.PIC12F510-ISN.pdf
(20 pages)
Specifications of PIC12F510-E/SN
Core Size
8-Bit
Program Memory Size
1.5KB (1K x 12)
Core Processor
PIC
Speed
8MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Type
FLASH
Ram Size
38 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
8-SOIC (3.9mm Width)
Controller Family/series
PIC12
No. Of I/o's
6
Ram Memory Size
38Byte
Cpu Speed
8MHz
No. Of Timers
1
Digital Ic Case Style
SOIC
Processor Series
PIC12F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
38 B
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
5
Number Of Timers
1
Maximum Operating Temperature
+ 125 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DV164101, DV164120, DM163029
Minimum Operating Temperature
- 40 C
On-chip Adc
8 bit, 3 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC162070 - HEADER INTRFC MPLAB ICD2 8/14P
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
Details
3. Module: Analog-to-Digital Converter
4. Module: Analog-to-Digital Converter
EXAMPLE 9-1:
© 2009 Microchip Technology Inc.
;Sample code operates out of BANK0
loop0
loop1
loop2
Section 9.1.5 “Sleep”, bullets should read as
follows (changes in bold).
• For accurate conversions, T
• 2 μs ≤ T
• T
Work around
None.
Examples 9-1 and 9-2 changes shown in bold
below.
following:
AD
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop0
MOVF ADRES, W
MOVWF result0
BSF ADCON0, 2
BSF ADCON0, 1
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop1
MOVF ADRES, W
MOVWF result1
BSF ADCON0, 3
BCF ADCON0, 2
BSF ADCON0, 1
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop2
MOVF ADRES, W
MOVWF result2
= 1/(F
AD
(ADC)
(ADC)
OSC
< 125 μs
/divisor)
PERFORMING AN
ANALOG-TO-DIGITAL
CONVERSION
;configure A/D
;start conversion
;read result
;save result
;setup for read of
;channel 1
;start conversion
;read result
;save result
;setup for read of
;channel 2
;start conversion
;read result
;save result
AD
must meet the
EXAMPLE 9-2:
loop0
loop1
loop2
Work around
None.
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
BSF ADCON0, 2
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop0
MOVF ADRES, W
MOVWF result0
BSF ADCON0, 1
BSF ADCON0, 3
BCF ADCON0, 2
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop1
MOVF ADRES, W
MOVWF result1
BSF ADCON0, 1
NOP
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop2
MOVF ADRES, W
MOVWF result2
CLRF ADCON0
;pins to Digital mode and turns off
;the ADC module
CHANNEL SELECTION
CHANGE DURING
CONVERSION
PIC12F510
;configure A/D
;start conversion
;setup for read of
;channel 1
;read result
;save result
;start conversion
;setup for read of
;channel 2
;read result
;save result
;start conversion
;read result
;save result
;optional: returns
DS80268F-page 3