PIC12F510-I/MC Microchip Technology, PIC12F510-I/MC Datasheet - Page 56
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
PIC12F510-I/MC
Manufacturer Part Number
PIC12F510-I/MC
Description
IC PIC MCU FLASH 1024X12 8DFN
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)
4.PIC12F510-IP.pdf
(116 pages)
Specifications of PIC12F510-I/MC
Program Memory Type
FLASH
Program Memory Size
1.5KB (1K x 12)
Package / Case
8-DFN
Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Peripherals
POR, WDT
Number Of I /o
5
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 ~ 85°C
Processor Series
PIC12F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
38 B
Interface Type
USB
Maximum Clock Frequency
8 MHz
Number Of Programmable I/os
6
Number Of Timers
1
Maximum Operating Temperature
+ 85 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
AC164334 - MODULE SOCKET FOR 8L 2X3MM DFNAC163022 - ADAPTER UNIVERSAL PROG PIC12F5XXAC162070 - HEADER INTRFC MPLAB ICD2 8/14PXLT08DFN2 - SOCKET TRANSITION ICE 14DIP/8DFN
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
PIC12F510/16F506
REGISTER 9-2:
EXAMPLE 9-1:
DS41268D-page 54
;Sample code operates out of BANK0
loop0
loop1
loop2
bit 7
Legend:
R = Readable bit
-n = Value at POR
ADRES7
R-X
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop0
MOVF ADRES, W
MOVWF result0
BSF ADCON0, 2
BSF ADCON0, 1
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop1
MOVF ADRES, W
MOVWF result1
BSF ADCON0, 3
BCF ADCON0, 2
BSF ADCON0, 1
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop2
MOVF ADRES, W
MOVWF result2
ADRES6
R-X
ADRES REGISTER
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
W = Writable bit
‘1’ = Bit is set
ADRES5
R-X
ADRES4
R-X
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
ADRES3
EXAMPLE 9-2:
R-X
loop0
loop1
loop2
MOVLW 0xF1
MOVWF ADCON0
BSF ADCON0, 1
BSF ADCON0, 2
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop0
MOVF ADRES, W
MOVWF result0
BSF ADCON0, 1
BSF ADCON0, 3
BCF ADCON0, 2
BTFSC ADCON0, 1;wait for ‘DONE’
GOTO loop1
MOVF ADRES, W
MOVWF result1
BSF ADCON0, 1
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
ADRES2
R-X
CHANNEL SELECTION
CHANGE DURING
CONVERSION
© 2007 Microchip Technology Inc.
x = Bit is unknown
;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
ADRES1
R-X
ADRES0
R-X
bit 0