PCWHD IDE COMPILER Custom Computer Services Inc (CCS), PCWHD IDE COMPILER Datasheet - Page 102

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
WDT or Watch Dog Timer
Different chips provide different options to enable/disable or configure the WDT.
Relevant Functions:
setup_wdt()
restart_wdt()
For PCB/PCM chips it is enabled/disabled using WDT or NOWDT fuses whereas on PCH device it
is done using the setup_wdt function.
The timeout time for PCB/PCM chips are set using the setup_wdt function and on PCH using fuses
like WDT16, WDT256 etc.
RESTART_WDT when specified in #USE DELAY, #USE I2C and #USE RS232 statements like this
#USE DELAY(clock=20000000, restart_wdt) will cause the wdt to restart if it times out during the
delay or I2C_READ or GETC.
Relevant Preprocessor:
#FUSES WDT/NOWDT
#FUSES WDT16
Relevant Interrupts:
None
Relevant Include Files:
None, all functions built-in
Relevant getenv() parameters:
None
Example Code:
For eg:
For PIC16F877
#fuses wdt
For PIC18F452
#fuse WDT1
setup_wdt(WDT_ON);
while(true){
Some of the PCB chips are share the WDT prescalar bits with timer0 so the WDT prescalar
constants can be used with setup_counters or setup_timer0 or setup_wdt functions.
88
setup_wdt(WDT_2304MS);
while(true){
}
}
restart_wdt();
perform_activity();
restart_wdt();
perform_activity();
Enables/disables the wdt or sets the prescalar.
Restarts the wdt, if wdt is enables this must be periodically called to
prevent a timeout reset.
Enabled/Disables wdt in PCB/PCM devices
Sets ups the timeout time in PCH devices

Related parts for PCWHD IDE COMPILER