PIC18F1230 MICROCHIP [Microchip Technology], PIC18F1230 Datasheet - Page 109

no-image

PIC18F1230

Manufacturer Part Number
PIC18F1230
Description
18/20/28-Pin, Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F1230-E/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC18F1230-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP
Quantity:
5
Part Number:
PIC18F1230-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F1230T-I/ML
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
12.2
A crystal oscillator circuit is built-in between pins T1OSI
(input) and T1OSO/TICKI (amplifier output). The place-
ment of these pins depends on the value of Configuration
bit, T1OSCMX (see Section 19.1 “Configuration
Bits”). It is enabled by setting control bit T1OSCEN
(T1CON<3>). The oscillator is a low-power oscillator
rated for 32 kHz crystals. It will continue to run during all
power-managed modes. The circuit for a typical LP
oscillator is shown in Figure 12-3. Table 12-1 shows the
capacitor selection for the Timer1 oscillator.
The user must provide a software time delay to ensure
proper start-up of the Timer1 oscillator.
FIGURE 12-3:
TABLE 12-1:
© 2006 Microchip Technology Inc.
Osc Type
Note 1: Microchip suggests this value as a starting
Note:
LP
2: Higher capacitance increases the stability
3: Since each resonator/crystal has its own
4: Capacitor values are for design guidance
Timer1 Oscillator
33 pF
33 pF
C1
C2
See the notes with Table 12-1 for addi-
tional information about capacitor selec-
point in validating the oscillator circuit.
of the oscillator, but also increases the
start-up time.
characteristics, the user should consult
the resonator/crystal manufacturer for
appropriate
components.
only.
32 kHz
32.768 kHz
XTAL
Freq
CAPACITOR SELECTION FOR
THE TIMER OSCILLATOR
EXTERNAL
COMPONENTS FOR THE
TIMER1 LP OSCILLATOR
values
T1OSI
27 pF
T1OSO/T1CKI
C1
PIC18FXXXX
(1)
of
27 pF
Advance Information
external
C2
(1)
12.2.1
The Timer1 oscillator is also available as a clock source
in power-managed modes. By setting the System
Clock Select bits, SCS1:SCS0 (OSCCON<1:0>), to
‘01’, the device switches to SEC_RUN mode; both the
CPU and peripherals are clocked from the Timer1 oscil-
lator. If the IDLEN bit (OSCCON<7>) is cleared and a
SLEEP instruction is executed, the device enters
SEC_IDLE mode. Additional details are available in
Section 3.0 “Power-Managed Modes”.
Whenever the Timer1 oscillator is providing the clock
source, the Timer1 system clock status flag, T1RUN
(T1CON<6>), is set. This can be used to determine the
controller’s current clocking mode. It can also indicate
the clock source being currently used by the Fail-Safe
Clock Monitor. If the Clock Monitor is enabled and the
Timer1 oscillator fails while providing the clock, polling
the T1RUN bit will indicate whether the clock is being
provided by the Timer1 oscillator or another source.
12.3
The oscillator circuit, shown in Figure 12-3, should be
located as close as possible to the microcontroller.
There should be no circuits passing within the oscillator
circuit boundaries other than V
If a high-speed circuit must be located near the
oscillator (such as the PWM pin, or the primary
oscillator using the OSC2 pin), a grounded guard ring
around the oscillator circuit, as shown in Figure 12-4,
may be helpful when used on a single-sided PCB, or in
addition to a ground plane.
FIGURE 12-4:
Note: Not drawn to scale.
Timer1 Oscillator Layout
Considerations
PIC18F1230/1330
USING TIMER1 AS A CLOCK
SOURCE
RB3
RB2
OSC1
OSC2
V
DD
OSCILLATOR CIRCUIT
WITH GROUNDED GUARD
RING
SS
or V
DS39758B-page 107
DD
.

Related parts for PIC18F1230