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 8 matches
CCS Forum Index
Author Message
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Wed Jun 04, 2008 6:32 am   Subject: Use of RTC in PIC24 using PCD compiler
As a follow-up to my previous post. The conversion to the C30 compiler took me 1 1/2 days, mostly adapting the syntax and solving some timing issues.
The ROM used : CCS compiler: 13922 bytes, C30: 1 ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Tue Jun 03, 2008 5:04 am   Subject: Use of RTC in PIC24 using PCD compiler
Hi Robert,

I have been away on vacation, but just returned. In my "vacation" I used the time also to continue some programming - to the annoyance of my wife-.
I already made the RTC in ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Mon Apr 21, 2008 2:56 am   Subject: Use of RTC in PIC24 using PCD compiler
Robert, I am not sure. I assumed it was for the alarm function, but the RTCC does not work yet. It reads back FF each time.
If I look in the disassembly listing I see that setup_rtc(rtc_enable,0); ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Sat Apr 19, 2008 6:25 am   Subject: Use of RTC in PIC24 using PCD compiler
I managed to start the SOSC. The problem was that the OSCCON needs an unlock sequence, and that MUST be in assembly due to timing. I added:
#ASM
MOV #0x742,W1 //OSCCON L address
MOV.B ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Thu Apr 17, 2008 12:25 pm   Subject: Use of RTC in PIC24 using PCD compiler
Hi Robert,
My PCB arrived this morning and I just finished assembling it. I did already see the the SOSC doe not work. I used
#define OSCCON 0x742
bit_set(*OSCCON,1) to set SOSCEN bit. But no luck ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Thu Apr 03, 2008 2:39 am   Subject: Use of RTC in PIC24 using PCD compiler
Thanks Robert,
It looks as if your code may work. I had not found it in the header file. I will have to wait for my PCB to check my solution to start the oscilator, but if it works I will post it he ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Thu Mar 13, 2008 3:43 am   Subject: Use of RTC in PIC24 using PCD compiler
Andrew,
Thanks for the hekp. I found the files and I think I can solve it that way. However I wanted to use the built-in fuctions rtc_read() , rtc_write() and setup_rtc(). I just found that the compi ...
  Topic: Use of RTC in PIC24 using PCD compiler
ronbreukers

Replies: 27
Views: 33378

PostForum: General CCS C Discussion   Posted: Wed Mar 12, 2008 11:57 am   Subject: Use of RTC in PIC24 using PCD compiler
Does anyone have an example how to read and write the built-in RTC of the PIC 24 processor, using the PCD compiler. I could find no documentation whatsoever except that the compiler is supposed to sup ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group