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

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
6.2.1
The prescaler assignment is fully under software
control (i.e., it can be changed “on-the-fly” during pro-
gram execution). To avoid an unintended device Reset,
the following instruction sequence (Example 6-1) must
be executed when changing the prescaler assignment
from Timer0 to the WDT.
EXAMPLE 6-1:
FIGURE 6-5:
DS41268D-page 42
CLRWDT
CLRF
MOVLW
OPTION
CLRWDT
MOVLW
OPTION
Comparator
Output
Note 1: T0CS, T0SE, PSA, PS<2:0> are bits in the OPTION register.
T0CKI
‘00xx1xxx’b
TMR0
‘00xx1111’b ;These 3 lines (5, 6, 7)
Pin
SWITCHING PRESCALER
ASSIGNMENT
2: T0CKI is shared with pin GP2 on the PIC12F510 and shared with RC5 on the PIC16F506.
3: Bit C1T0CS is located in the CM1CON0 register.
(2)
WDT Enable bit
C1T0CS
Watchdog
CHANGING PRESCALER
(TIMER0 → WDT)
BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER
Timer
T
;Clear WDT
;Clear TMR0 & Prescaler
;are required only if
;desired
;PS<2:0> are 000 or 001
;Set Postscaler to
;desired WDT rate
1
0
CY
(= F
T0SE
(3)
OSC
(1)
/4)
0
1
PSA
M
U
X
(1)
0
1
T0CS
M
U
X
(1)
8-bit Prescaler
0
8-to-1 MUX
Time-Out
To change prescaler from the WDT to the Timer0
module, use the sequence shown in Example 6-2. This
sequence must be used even if the WDT is disabled. A
CLRWDT instruction should be executed before
switching the prescaler.
EXAMPLE 6-2:
8
CLRWDT
MOVLW
OPTION
MUX
WDT
1
0
1
PSA
‘xxxx0xxx’
M
U
X
(1)
PSA
PS<2:0>
(1)
CHANGING PRESCALER
(WDT→TIMER0)
Cycles
;Clear WDT and
;prescaler
;Select TMR0, new
;prescale value and
;clock source
© 2007 Microchip Technology Inc.
Sync
2
(1)
TMR0 Reg
Data Bus
8

Related parts for PIC16F506-I/SL