Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC24FJ256DA206 Datasheet(PDF) 149 Page - Microchip Technology

Part # PIC24FJ256DA206
Description  64/100-Pin, 16-Bit Flash Microcontrollers with Graphics Controller and USB On-The-Go (OTG)
PDF  408 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC24FJ256DA206 Datasheet(HTML) 149 Page - Microchip Technology

Back Button PIC24FJ256DA206 Datasheet HTML 145Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 146Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 147Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 148Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 149Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 150Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 151Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 152Page - Microchip Technology PIC24FJ256DA206 Datasheet HTML 153Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 149 / 408 page
background image
 2010 Microchip Technology Inc.
DS39969B-page 149
PIC24FJ256DA210 FAMILY
A recommended code sequence for a clock switch
includes the following:
1.
Disable interrupts during the OSCCON register
unlock and write sequence.
2.
Execute the unlock sequence for the OSCCON
high byte by writing 78h and 9Ah to
OSCCON<15:8>
in
two
back-to-back
instructions.
3.
Write new oscillator source to the NOSCx bits in
the instruction immediately following the unlock
sequence.
4.
Execute the unlock sequence for the OSCCON
low
byte
by
writing
46h
and
57h
to
OSCCON<7:0> in two back-to-back instructions.
5.
Set the OSWEN bit in the instruction immediately
following the unlock sequence.
6.
Continue
to execute
code that
is
not
clock-sensitive (optional).
7.
Invoke an appropriate amount of software delay
(cycle counting) to allow the selected oscillator
and/or PLL to start and stabilize.
8.
Check to see if OSWEN is ‘0’. If it is, the switch
was successful. If OSWEN is still set, then
check the LOCK bit to determine the cause of
failure.
The core sequence for unlocking the OSCCON register
and initiating a clock switch is shown in Example 8-1.
EXAMPLE 8-1:
BASIC CODE SEQUENCE
FOR CLOCK SWITCHING
IN ASSEMBLY
8.5
96 MHz PLL Block
The 96 MHz PLL block is implemented to generate the
stable 48 MHz clock required for full-speed USB
operation, a programmable clock output for the
graphics controller module and the system clock from
the same oscillator source. The 96 MHz PLL block is
shown in Figure 8-2.
The 96 MHz PLL block requires a 4 MHz input signal; it
uses this to generate a 96 MHz signal from a fixed, 24x
PLL. This is, in turn, divided into three branches. The first
branch generates the USB clock, the second branch
generates the system clock and the third branch gener-
ates the graphics clock. The 96 MHz PLL block can be
enabled and disabled using the PLL96MHZ Configura-
tion bit (Configuration Word<11>) or through the PLLEN
(CLKDIV<5>) control bit when the PLL96MHZ
Configuration bit is not set. Note that the PLL96MHZ
Configuration bit and PLLEN register bit are available
only for PIC24F devices with USB and graphics
controller modules.
The 96 MHz PLL prescaler does not automatically
sense the incoming oscillator frequency. The user must
manually configure the PLL divider to generate the
required 4 MHz output, using the PLLDIV<2:0> Config-
uration bits (Configuration Word 2<14:12> in most
devices).
;Place the new oscillator selection in W0
;OSCCONH (high byte) Unlock Sequence
MOV
#OSCCONH, w1
MOV
#0x78, w2
MOV
#0x9A, w3
MOV.b
w2, [w1]
MOV.b
w3, [w1]
;Set new oscillator selection
MOV.b
WREG, OSCCONH
;OSCCONL (low byte) unlock sequence
MOV
#OSCCONL, w1
MOV
#0x46, w2
MOV
#0x57, w3
MOV.b
w2, [w1]
MOV.b
w3, [w1]
;Start oscillator switch operation
BSET
OSCCON,#0



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com