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 33 matches
CCS Forum Index
Author Message
  Topic: deep sleep problems with PIC18F46J11
heUAcyp

Replies: 13
Views: 28467

PostForum: General CCS C Discussion   Posted: Fri Jun 17, 2011 1:45 pm   Subject: deep sleep problems with PIC18F46J11
Here is the simplified code,

Basically problem is the RTCC does not increment. Initially set values keeps repeating.

#include <18F25J11.h>
#device ADC=10
#include <STDIO.H>
#incl ...
  Topic: deep sleep problems with PIC18F46J11
heUAcyp

Replies: 13
Views: 28467

PostForum: General CCS C Discussion   Posted: Fri Jun 17, 2011 10:49 am   Subject: Still not working
Sir, I have tried many times but RTCC is NOT incrementing while in deep sleep mode:

I am constantly checking registers, and I have fixed all the problems associated with that. RTCC is just not incr ...
  Topic: deep sleep problems with PIC18F46J11
heUAcyp

Replies: 13
Views: 28467

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 12:37 pm   Subject: deep sleep problems with PIC18F46J11
Thanks sir , easiest solution would be to get V 4.121

Regards
  Topic: deep sleep problems with PIC18F46J11
heUAcyp

Replies: 13
Views: 28467

PostForum: General CCS C Discussion   Posted: Thu Jun 09, 2011 9:10 am   Subject: RTCC issue
Hi all,

Since it has been discussed here, I have a question on RTCC.

I set hour = 23 , min= 59 and sec=50 , just to make sure that it will automatically increment the day after 23:59:59. But ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 2:55 pm   Subject: Deep Sleep wake up on INT0 !
Thank you boss
  Topic: A *3* error
heUAcyp

Replies: 2
Views: 4331

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 9:59 am   Subject: header file
Are you sure you include the header file of PIC 16F1827 in .mcw ? Just changing the #include isn't enough
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Wed Jun 08, 2011 6:12 am   Subject: Deep Sleep wake up on INT0 !
Sir thank you very very much for your help.

Interrupt is working with a small problem. I have tested the suggested code and get the expected results on the HyperTerminal:

DS_WAKEUP_BIT: 00
DS_ ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Tue Jun 07, 2011 11:08 am   Subject: Deep Sleep wake up on INT0 !
Sir, I have worked out the RS232 connection here is the code I wrote:

#include <18F25J11.h>
#device ADC=10
#include <STDIO.H>
#include <stdlib.h>
#include <math.h>
#inc ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Mon Jun 06, 2011 3:16 pm   Subject: Deep Sleep wake up on INT0 !
V4.095 .

Should I change to bank 1 using assembly code?
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Mon Jun 06, 2011 2:53 pm   Subject: Deep Sleep wake up on INT0 !
Sir I have realised that and I am trying to set INTEDG0 bit to 0 after executing first if loop.

Why I cannot change it then?

and why device doesn't go back in to sleep even though I use enterdee ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Mon Jun 06, 2011 1:04 pm   Subject: Deep Sleep wake up on INT0 !
Thanks for the reply again FvM. I realise that code flow is wrong but I cannot fixed it.

I tried to add another if loop but its not working. Here is my code:

#include <18F25J11.h>
#device ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2011 3:37 pm   Subject: Deep Sleep wake up on INT0 !
Thanks a lot Ttelmah,

My input connected to pin 21 (INT0) is active high. Then I switch it to low to represent an interrupt. So I am actually using INT0 to detect high to low and not otherwise righ ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2011 2:03 pm   Subject: Deep Sleep wake up on INT0 !
Thanks a lot for your replies FvM,

Here is my new code, now PIC starts in sleep mode than detects a change turns the LED on but does not go back to sleep.

(Note: I am not quite sure if disabling ...
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2011 1:23 pm   Subject: Deep Sleep wake up on INT0 !
To make it clearer, the PIC is entering to sleep mode, but not waking up when I change the voltage level at INT0 (pin 21).

Datasheet states, INT0 pin should detect any change and wake the PIC up.
  Topic: Deep Sleep wake up on INT0 !
heUAcyp

Replies: 19
Views: 36419

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2011 1:18 pm   Subject: Deep Sleep wake up on INT0 !
Thanks for the reply FvM,

I am not getting any errors at all.

But the code is not doing what I want basically. I have tried with single sleep() as well but its not working
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group