PIC16F506-I/SL Microchip Technology, PIC16F506-I/SL Datasheet - Page 56

IC PIC MCU FLASH 1KX14 14SOIC

PIC16F506-I/SL

Manufacturer Part Number
PIC16F506-I/SL
Description
IC PIC MCU FLASH 1KX14 14SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F506-I/SL

Program Memory Type
FLASH
Program Memory Size
1.5KB (1K x 12)
Package / Case
14-SOIC (3.9mm Width), 14-SOL
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
11
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
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
67 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
12
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, ICE2000
Minimum Operating Temperature
- 40 C
On-chip Adc
3-ch x 8-bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP
Quantity:
16 700
Part Number:
PIC16F506-I/SL
Manufacturer:
Microchip Technology
Quantity:
33 360
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/SL
0
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 PIC16F506-I/SL