Microchip Technology AC164337 Data Sheet

Page of 286
 2006-2014 Microchip Technology Inc.
DS70000178D-page 217
dsPIC30F1010/202X
18.11 In-Circuit Debugger
When MPLAB
®
 ICD 2 is selected as a debugger, the
in-circuit debugging functionality is enabled. This func-
tion allows simple debugging functions when used with
MPLAB IDE. When the device has this feature enabled,
some of the resources are not available for general
use. These resources include the first 80 bytes of data
RAM and two I/O pins.
One of four pairs of Debug I/O pins may be selected by
the user using configuration options in MPLAB IDE.
These pin pairs are named EMUD/EMUC, EMUD1/
EMUC1 and EMUD2/EMUC2.
In each case, the selected EMUD pin is the Emulation/
Debug Data line, and the EMUC pin is the Emulation/
Debug Clock line. These pins will interface to the
MPLAB ICD 2 module available from Microchip. The
selected pair of Debug I/O pins is used by 
MPLAB ICD 2 to send commands and receive
responses, as well as to send and receive data. To use
the in-circuit debugging function of the device, the
design must implement ICSP connections to MCLR,
V
DD
, V
SS
, PGC, PGD and the selected 
EMUDx/EMUCx pin pair.
This gives rise to two possibilities:
1.
If EMUD/EMUC is selected as the debug I/O pin
pair, then only a 5-pin interface is required, as
the EMUD and EMUC pin functions are multi-
plexed with the PGD and PGC pin functions in
all dsPIC30F devices.
2.
If EMUD1/EMUC1 or EMUD2/EMUC2 is
selected as the debug I/O pin pair, then a 7-pin
interface is required, as the EMUDx/EMUCx pin
functions (x = 1 or 2) are not multiplexed with the
PGD and PGC pin functions.
TABLE 18-7:
FWDT AND FPOR BIT DESCRIPTIONS FOR dsPIC30F1010/202X
Bit Field
Register
Description
FWDTEN
FWDT
Watchdog Timer Enable bit
1
 = Watchdog Timer always enabled. (LPRC oscillator cannot be dis-
abled. Clearing the SWDTEN bit in the RCON register will have no 
effect.)
0
 = Watchdog Timer enabled/disabled by user software (LPRC can be 
disabled by clearing the SWDTEN bit in the RCON register)
WWDTEN
FWDT
Watchdog Timer Window Enable bit
1
 = Watchdog Timer in Non-Window mode
0
 = Watchdog Timer in Window mode
WDTPRE
FWDT
Watchdog Timer Prescaler bit
1
 = 1:128
0
 = 1:32
WDTPOST<3:0>
FWDT
Watchdog Timer Postscaler bits
1111
 = 1:32, 768
1110
 = 1:16, 384
.
.
.
0001
 = 1:2
0000
 = 1:1
FPWRT<2:0>
FPOR
Power-on Reset Timer Value Select bits
111
 = PWRT = 128 ms
110
 = PWRT = 64 ms
101
 = PWRT = 32 ms
100
 = PWRT = 16 ms
011
 = PWRT = 8 ms
010
 = PWRT = 4 ms
001
 = PWRT = 2 ms
000
 = PWRT = Disabled