2010 Microchip Technology Inc.
DS70102K-page 9
dsPIC30F Flash Programming Specification
5.6.3
PROGRAMMING VERIFICATION
Once the data EEPROM is programmed, the contents
of memory can be verified to ensure that the
programming was successful. Verification requires the
data EEPROM to be read back and compared against
the copy held in the programmer’s buffer. The READD
command reads back the programmed data EEPROM.
Alternatively, the programmer can perform the
verification once the entire device is programmed using
Note:
TBLRDL instructions executed within a
REPEAT loop must not be used to read
from Data EEPROM. Instead, it is
recommended to use PSV access.
5.7
Configuration Bits Programming
5.7.1
OVERVIEW
The dsPIC30F has Configuration bits stored in seven
16-bit registers. These bits can be set or cleared to
select various device configurations. There are two
types of Configuration bits: system-operation bits and
code-protect bits. The system-operation bits determine
the power-on settings for system-level components
such as the oscillator and Watchdog Timer. The code-
protect bits prevent program memory from being read
and written.
The FOSC Configuration register has three different
register descriptions, based on the device. The FOSC
Configuration
register
description
for
the
dsPIC30F2010 and dsPIC30F6010/6011/6012/6013/
Note:
If user software performs an erase opera-
tion on the configuration fuse, it must be
followed by a write operation to this fuse
with the desired value, even if the desired
value is the same as the state of the
erased fuse.
The FOSC Configuration register description for the
dsPIC30F4011/4012 and dsPIC30F5011/5013 devices
The FOSC Configuration register description for
all remaining
devices
(dsPIC30F2011/2012,
dsPIC30F3010/3011/3012/3013,
dsPIC30F3014/
4013, dsPIC30F5015 and dsPIC30F6011A/6012A/
6013A/ 6014A) is shown in
Table 5-6. Always use the
correct register descriptions for your target processor.
The FWDT, FBORPOR, FBS, FSS, FGS and FICD
Configuration registers are not device-dependent. The
register descriptions for these Configuration registers
The Device Configuration register maps are shown in
TABLE 5-4:
FOSC CONFIGURATION BITS DESCRIPTION FOR dsPIC30F2010 AND
dsPIC30F6010/6011/6012/6013/6014
Bit Field
Register
Description
FCKSM<1:0>
FOSC
Clock Switching Mode
1x = Clock switching is disabled, Fail-Safe Clock Monitor is disabled
01 = Clock switching is enabled, Fail-Safe Clock Monitor is disabled
00 = Clock switching is enabled, Fail-Safe Clock Monitor is enabled
FOS<1:0>
FOSC
Oscillator Source Selection on POR
11 = Primary Oscillator
10 = Internal Low-Power RC Oscillator
01 = Internal Fast RC Oscillator
00 = Low-Power 32 kHz Oscillator (Timer1 Oscillator)
FPR<3:0>
FOSC
Primary Oscillator Mode
1111 = ECIO w/PLL 16X – External Clock mode with 16X PLL. OSC2 pin is I/O
1110 = ECIO w/PLL 8X – External Clock mode with 8X PLL. OSC2 pin is I/O
1101 = ECIO w/PLL 4X – External Clock mode with 4X PLL. OSC2 pin is I/O
1100 = ECIO – External Clock mode. OSC2 pin is I/O
1011 = EC – External Clock mode. OSC2 pin is system clock output (FOSC/4)
1010 = Reserved (do not use)
1001 = ERC – External RC Oscillator mode. OSC2 pin is system clock output
(FOSC/4)
1000 = ERCIO – External RC Oscillator mode. OSC2 pin is I/O
0111 = XT w/PLL 16X – XT Crystal Oscillator mode with 16X PLL
0110 = XT w/PLL 8X – XT Crystal Oscillator mode with 8X PLL
0101 = XT w/PLL 4X – XT Crystal Oscillator mode with 4X PLL
0100 = XT – XT Crystal Oscillator mode (4 MHz-10 MHz crystal)
001x = HS – HS Crystal Oscillator mode (10 MHz-25 MHz crystal)
000x = XTL – XTL Crystal Oscillator mode (200 kHz-4 MHz crystal)