PIC16F506T-I/MG Microchip Technology, PIC16F506T-I/MG Datasheet - Page 56
![1.5 KB Flash, 67 RAM, 12 I/O, Comparator, 8bit ADC 16 QFN 3x3x0.9mm T/R](/photos/6/90/69062/c04-142_16-qfn_sml.jpg)
PIC16F506T-I/MG
Manufacturer Part Number
PIC16F506T-I/MG
Description
1.5 KB Flash, 67 RAM, 12 I/O, Comparator, 8bit ADC 16 QFN 3x3x0.9mm T/R
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheet
1.PIC12F510-ISN.pdf
(124 pages)
Specifications of PIC16F506T-I/MG
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
11
Program Memory Size
1.5KB (1K x 12)
Program Memory Type
FLASH
Ram Size
67 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
Package / Case
16-QFN
Processor Series
PIC16F
Core
PIC
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, ICE2000
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
Details
- Current page: 56 of 124
- Download datasheet (3Mb)
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
Related parts for PIC16F506T-I/MG
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16F506-I/SL](/photos/6/59/65933/150-14-soic_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 14SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-I/ST](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 14TSSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-I/P](/photos/6/59/65935/150-14-dip_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 14DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-E/ST](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC PIC MCU FLASH 1KX14 14TSSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
(PIC12F510 / PIC16F506) 8-Bit Flash Microcontroller
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-E/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,DIP,14PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-E/SL](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,SOP,14PIN,PLASTIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-E/MG](/photos/6/90/69062/c04-142_16-qfn_tmb.jpg)
Part Number:
Description:
1.5 KB Flash, 67 RAM, 12 I/O, Comparator, 8bit ADC 16 QFN 3x3x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F506-I/MG](/photos/6/90/69062/c04-142_16-qfn_tmb.jpg)
Part Number:
Description:
1.5 KB Flash, 67 RAM, 12 I/O, Comparator, 8bit ADC 16 QFN 3x3x0.9mm TUBE
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, SOIC-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/SS](/photos/6/81/68119/150-28-ssop_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, SSOP-20
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/P](/images/manufacturer_photos/0/4/439/microchip_technology_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, DIP-18
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/ML](/photos/6/81/68120/150-28-qfn_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1826-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet:
![PIC16F1827-I/MV](/photos/12/13/121305/c04-152_mv_tmb.jpg)
Part Number:
Description:
IC, 8BIT MCU, PIC16F, 32MHZ, QFN-28
Manufacturer:
Microchip Technology
Datasheet: