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 CCS Technical Support

i2c and wdt reset

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



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

i2c and wdt reset
PostPosted: Thu Mar 30, 2006 10:09 am     Reply with quote

Hi everybody,

I use i2c bus as below:
Quote:

// Configura bus
#use I2C(MASTER,sda=PIN_C4,scl=PIN_C3,restart_wdt,FORCE_HW,fast)


During i2c bus inizialization there is a reset from watchdog.

Why doesn't restart_wdt as option of #use i2c work ?

Thanks for support
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 30, 2006 12:52 pm     Reply with quote

Post your compiler version and post a short, compilable test program
that demonstrates the problem and that has less than 20 lines in it,
if possible.
Guest








PostPosted: Thu Mar 30, 2006 12:54 pm     Reply with quote

The Restart_WDT option only says that it will restart the WDT while waiting in a I2C read. Not during initialization. You have to do that yourself.
Fabri



Joined: 22 Aug 2005
Posts: 275

View user's profile Send private message

PostPosted: Fri Mar 31, 2006 2:30 am     Reply with quote

Hi,
I found a problem in other part of project.

The routine i2c bus work right also with watchdog.

Thanks for support
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