PIC16F506 Microchip Technology, PIC16F506 Datasheet - Page 62

no-image

PIC16F506

Manufacturer Part Number
PIC16F506
Description
(PIC12F510 / PIC16F506) 8-Bit Flash Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F506-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
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
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/ST
0
Company:
Part Number:
PIC16F506-I/ST
Quantity:
8 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
ROHM
Quantity:
400 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506T-I/ST
Manufacturer:
ZARLINK
Quantity:
320
PIC12F510/16F506
Although the oscillator will operate with no external
capacitor (C
above 20 pF for noise and stability reasons. With no
capacitance or small external capacitance, the oscilla-
tion frequency can vary dramatically due to changes in
external capacitances, such as PCB trace capacitance
or package lead frame capacitance.
Section 13.0 “Electrical Characteristics”, shows RC
frequency variation from part-to-part due to normal
process variation. The variation is larger for larger val-
ues of R (since leakage current variation will affect RC
frequency more for large R) and for smaller values of C
(since variation of input capacitance will affect RC
frequency more).
Also, see the Electrical Specifications section for
variation of oscillator frequency due to V
R
to operating temperature for given R, C and V
values.
FIGURE 10-5:
10.2.5
The internal RC oscillator provides a fixed 4/8 MHz
(nominal) system clock (see Section 13.0 “Electrical
Characteristics” for information on variation over
voltage and temperature).
10.2.6
For applications where a clock is already available
elsewhere, users may directly drive the PIC12F510/
16F506 devices provided that this external clock
source meets the AC/DC timing requirements listed in
Section 10.6 “Watchdog Timer (WDT)”. Figure 10-6
below shows how an external clock circuit should be
configured.
DS41268B-page 60
EXT
C
V
R
EXT
SS
EXT
/C
F
V
EXT
OSC
DD
/4
values, as well as frequency variation due
INTERNAL 4/8 MHz RC
OSCILLATOR
EXTERNAL CLOCK IN
EXT
= 0 pF), we recommend using values
EXTERNAL RC
OSCILLATOR MODE
OSC1
OSC2/CLKOUT
N
PIC12F510
PIC16F506
DD
Internal
clock
for given
Preliminary
DD
FIGURE 10-6:
In addition, a calibration instruction is programmed into
the last address of memory, which contains the calibra-
tion value for the internal RC oscillator. This location is
always uncode protected, regardless of the code-pro-
tect settings. This value is programmed as a MOVLW XX
instruction where XX is the calibration value, and is
placed at the Reset vector. This will load the W register
with the calibration value upon Reset and the PC will
then roll over to the users program at address 0x000.
The user then has the option of writing the value to the
OSCCAL Register (05h) or ignoring it.
OSCCAL, when written to with the calibration value, will
“trim” the internal oscillator to remove process variation
from the oscillator frequency.
For the PIC12F510/16F506 devices, only bits <7:1> of
OSCCAL are implemented. Bits CAL6-CAL0 are used
for calibration. Adjusting CAL6-CAL0 from ‘0000000’
to ‘1111111’
Register 4-3 for more information.
OSC2/CLKOUT/RB4
PIC16F506: EC, HS, XT, LP
PIC12F510: XT, LP
Note 1: RB4 is available in EC mode only.
Note:
Note:
Clock From
ext. system
Clock From
ext. system
OSC2
Erasing the device will also erase the pre-
programmed internal calibration value for
the internal oscillator. The calibration
value must be read prior to erasing the
part so it can be reprogrammed correctly
later.
The 0 bit of OSCCAL is unimplemented
and should be written as ‘0’ when modify-
ing OSCCAL for compatibility with future
devices.
changes the clock
EXTERNAL CLOCK INPUT
OPERATION
© 2006 Microchip Technology Inc.
OSC2/CLKOUT/RB4
GP4/OSC2
RB5/OSC1/CLKIN
GP5/OSC1/CLKIN
speed.
(1)
See

Related parts for PIC16F506