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

Search found 12 matches
CCS Forum Index
Author Message
  Topic: Is it possible to get and set the WDT count value?
rsegecin

Replies: 1
Views: 3441

PostForum: General CCS C Discussion   Posted: Fri Mar 30, 2012 8:40 am   Subject: It's not possible
• If the interrupt occurs during or after the execution of a SLEEP instruction, the device will immediately wake-up from Sleep. The SLEEP
instruction will be completely executed before the wake-up. ...
  Topic: Is it possible to get and set the WDT count value?
rsegecin

Replies: 1
Views: 3441

PostForum: General CCS C Discussion   Posted: Fri Mar 30, 2012 7:30 am   Subject: Is it possible to get and set the WDT count value?
I was wondering how to get and set the WDT count as I get and set the timer0 count with the get_timer0() and set_timer0([number to be setted]) functions. I'm not asking to set the pre-scaler nor the t ...
  Topic: sleep() works only after wdt run out?
rsegecin

Replies: 5
Views: 7817

PostForum: General CCS C Discussion   Posted: Mon Sep 05, 2011 10:50 am   Subject: sleep() works only after wdt run out?
Thank you. =D
  Topic: sleep() works only after wdt run out?
rsegecin

Replies: 5
Views: 7817

PostForum: General CCS C Discussion   Posted: Fri Sep 02, 2011 12:43 pm   Subject: sleep() works only after wdt run out?
Hello guys. I've just got the code working. I had just to remove the while, somehow he was getting over there even though the sleep command was called before.

Thanks.
  Topic: sleep() works only after wdt run out?
rsegecin

Replies: 5
Views: 7817

PostForum: General CCS C Discussion   Posted: Fri Sep 02, 2011 9:34 am   Subject: sleep() works only after wdt run out?
Thank you the reply PCM. The compiler version is 4.3.0.225, product version 4 and here it's the code.


#include <16F688.h>

#fuses WDT, HS
#use delay (clock=20Mhz, restart_wdt)
...
  Topic: sleep() works only after wdt run out?
rsegecin

Replies: 5
Views: 7817

PostForum: General CCS C Discussion   Posted: Thu Sep 01, 2011 2:03 pm   Subject: sleep() works only after wdt run out?
Hi I'm trying to save power making the PIC sleep in my project, but as long as I give the command sleep to the PIC he waits the WDT run out of time to go and sleep and I'd like him to go "straigh ...
  Topic: Sleep is taking imprecise life time.
rsegecin

Replies: 10
Views: 14367

PostForum: General CCS C Discussion   Posted: Tue Aug 30, 2011 12:31 pm   Subject: Sleep is taking imprecise life time.
Hi PCM programmer I didn't find any good documentation about the delay_ms, the help file that is installed in the MPLab with CCS doesn't provide much of a help. But anyway I managed to make the code w ...
  Topic: Sleep is taking imprecise life time.
rsegecin

Replies: 10
Views: 14367

PostForum: General CCS C Discussion   Posted: Fri Aug 26, 2011 3:17 pm   Subject: I'm sorry it's HS there. The PIC has an external clock of 20
ops I'm sorry it's HS there. The PIC has an external clock of 20 Mhz. But the code still not doing as I intended to do. The restart_cause() it's looping back as MCLR_FROM_RUN instead to come back as W ...
  Topic: Sleep and timer1
rsegecin

Replies: 4
Views: 8511

PostForum: General CCS C Discussion   Posted: Fri Aug 26, 2011 1:59 pm   Subject: Sleep and timer1
Thanks for the response.

I misunderstood the datasheet. I was assuming that there is an internal clock for Timer1 and asynchronous refers to async to system clock.

I can use the WDT to do this ...
  Topic: Sleep is taking imprecise life time.
rsegecin

Replies: 10
Views: 14367

PostForum: General CCS C Discussion   Posted: Fri Aug 26, 2011 12:19 pm   Subject: Assign the prescaler to the WDT
Hi PCM programmer. I'd like to assign the prescaler to the WDT to wake up the pic as little as I can because I'm only interested to check up once each hour but I'm also interested to use the timer0 if ...
  Topic: Sleep is taking imprecise life time.
rsegecin

Replies: 10
Views: 14367

PostForum: General CCS C Discussion   Posted: Thu Aug 25, 2011 8:39 am   Subject: Sleep is taking imprecise life time.
At first, thank you for the replies. I still wondering if I can use both the WDT and timer 0 at same time without having to add an extra clock in the pic 16f688. Could anyone point out a code example ...
  Topic: Sleep is taking imprecise life time.
rsegecin

Replies: 10
Views: 14367

PostForum: General CCS C Discussion   Posted: Wed Aug 24, 2011 11:35 am   Subject: Sleep is taking imprecise life time.
Hello, I'm trying to build a project using Pic16f688 that sleep for an 1 hour wake up using the WDT do some stuff and go back to sleep again repeating this same process endlessly. I know that the WDT ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group