CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

EX_WDT.C examlpe from CCS (16F877), doesn’t work

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kas



Joined: 02 May 2007
Posts: 1

View user's profile Send private message

EX_WDT.C examlpe from CCS (16F877), doesn’t work
PostPosted: Wed May 02, 2007 7:07 am     Reply with quote

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







PostPosted: Wed May 02, 2007 10:17 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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