PIC24FJ128GA308-I/PT Microchip Technology, PIC24FJ128GA308-I/PT Datasheet - Page 147

no-image

PIC24FJ128GA308-I/PT

Manufacturer Part Number
PIC24FJ128GA308-I/PT
Description
16-bit, 16 MIPS, 128 KB Flash, 8 KB RAM, 69 I/O, LCD, XLP W/Vbat 80 TQFP 12x12x1
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC24FJ128GA308-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
9.3
The operation of the oscillator is controlled by three
Special Function Registers:
• OSCCON
• CLKDIV
• OSCTUN
The OSCCON register
trol register for the oscillator. It controls clock source
switching and allows the monitoring of clock sources.
REGISTER 9-1:
 2010-2011 Microchip Technology Inc.
bit 15
bit 7
Legend:
R = Readable bit
-n = Value at POR
bit 15
bit 14-12
bit 11
bit 10-8
Note 1:
CLKLOCK
R/SO-0
U-0
2:
3:
Control Registers
Reset values for these bits are determined by the FNOSC Configuration bits.
The state of the IOLOCK bit can only be changed once an unlocking sequence has been executed. In
addition, if the IOL1WAY Configuration bit is ‘1’ once the IOLOCK bit is set, it cannot be cleared.
This bit also resets to ‘0’ during any valid clock switch or whenever a Non-PLL Clock mode is selected.
Unimplemented: Read as ‘0’
COSC<2:0>: Current Oscillator Selection bits
111 = Fast RC Oscillator with Postscaler (FRCDIV)
110 = Reserved
101 = Low-Power RC Oscillator (LPRC)
100 = Secondary Oscillator (SOSC)
011 = Primary Oscillator with PLL module (XTPLL, HSPLL, ECPLL)
010 = Primary Oscillator (XT, HS, EC)
001 = Fast RC Oscillator with Postscaler and PLL module (FRCPLL)
000 = Fast RC Oscillator (FRC)
Unimplemented: Read as ‘0’
NOSC<2:0>: New Oscillator Selection bits
111 = Fast RC Oscillator with Postscaler (FRCDIV)
110 = Reserved
101 = Low-Power RC Oscillator (LPRC)
100 = Secondary Oscillator (SOSC)
011 = Primary Oscillator with PLL module (XTPLL, HSPLL, ECPLL)
010 = Primary Oscillator (XT, HS, EC)
001 = Fast RC Oscillator with Postscaler and PLL module (FRCPLL)
000 = Fast RC Oscillator (FRC)
IOLOCK
COSC2
R/W-0
R-0
OSCCON: OSCILLATOR CONTROL REGISTER
(Register
(2)
CO = Clearable Only bit
W = Writable bit
‘1’ = Bit is set
COSC1
9-1) is the main con-
LOCK
R-0
R-0
(3)
PIC24FJ128GA310 FAMILY
COSC0
R-0
U-0
(1)
SO = Settable Only bit
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
R/CO-0
The CLKDIV register
features associated with Doze mode, as well as the
postscaler for the FRC oscillator.
The OSCTUN register
fine tune the FRC oscillator over a range of approxi-
mately ±12%. Each bit increment or decrement
changes the factory calibrated frequency of the FRC
oscillator by a fixed amount.
U-0
CF
POSCEN
R/W-x
NOSC2
R/W-0
(1)
(Register
(Register
x = Bit is unknown
SOSCEN
R/W-x
NOSC1
R/W-0
9-3) allows the user to
(1)
9-2) controls the
DS39996F-page 147
R/W-x
OSWEN
NOSC0
R/W-0
(1)
bit 8
bit 0

Related parts for PIC24FJ128GA308-I/PT