Information
© 2010 Microchip Technology Inc. DS70152H-page 21
dsPIC33F/PIC24H PROGRAMMING SPECIFICATION
3.6.2 PROGRAMMING METHODOLOGY
Configuration bits may be programmed a single byte at
a time using the PROGC command. This command
specifies the configuration data and Configuration
register address.
Twelve PROGC commands are required to program all
the Configuration bits. A flowchart for Configuration bit
programming is illustrated in Figure 3-5.
3.6.3 PROGRAMMING VERIFICATION
After the Configuration bits are programmed, the
contents of memory should be verified to ensure that
the programming was successful. Verification requires
the Configuration bits to be read back and compared
against the copy held in the programmer’s buffer. The
READC command reads back the programmed
Configuration bits and verifies that the programming
was successful.
Any unimplemented Configuration bits are read-only
and read as ‘0’. The reserved bits are read-only and
read as ‘1’.
FIGURE 3-5: CONFIGURATION BIT PROGRAMMING FLOW
Note: If either of the General Code Segment
Code-Protect bits (GSS<1:0>) is
programmed to ‘0’, code memory is
code-protected and cannot be read.
Code memory must be verified before
enabling read protection. See
Section 3.6.4 “CodeGuard™ Security
Configuration Bits” for detailed
information about code-protect
Configuration bits.
Send PROGC
Command
ConfigAddress = 0xF80000
Is
PROGC response
PASS?
No
Yes
No
Failure
Report Error
Start
End
Yes
Is
ConfigAddress
0xF80018?
(1)
ConfigAddress =
ConfigAddress + 2
Note 1: For dsPIC33FJ06GS101/102/202, dsPIC33FJ16GS402/404/502/504, dsPIC33FJ32GS406/606/608/610 and
dsPIC33FJ64GS406/606/608/610 devices, the Configuration address is 0xF80014.