View previous topic :: View next topic |
Author |
Message |
kas
Joined: 02 May 2007 Posts: 1
|
EX_WDT.C examlpe from CCS (16F877), doesn’t work |
Posted: Wed May 02, 2007 7:07 am |
|
|
Hi
I am running the EX_WDT.C examlpe (16F877), but it doesn’t work.
The only messages is: "Hit any key to avoid a watchdog timeout".
From CCS help:Requires: Constants are defined in the devices .h file.
This file doesn’t exist.
Regards
kas |
|
|
Ttelmah Guest
|
|
Posted: Wed May 02, 2007 10:17 am |
|
|
The 'devices.h' file, for your chip, is the file 16F877.h
The '16877', is the 'device' you are using, and it's .h file contains the definitions needed.
You need both serial connections made, and pin_c7, idling high. The code waits in the 'getc', looking for a character on this line, and watchdog's out, when it is not received.
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|