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 73 matches
CCS Forum Index
Author Message
  Topic: RTC with events
Blob

Replies: 5
Views: 10441

PostForum: General CCS C Discussion   Posted: Thu Sep 19, 2013 7:11 am   Subject: RTC with events
Works as a charm, thanks guys!

I found the rise and set times of the sun and the moon of my location of interest at www.timeanddate.com

the site also provides info about solar noon and distance ...
  Topic: RTC with events
Blob

Replies: 5
Views: 10441

PostForum: General CCS C Discussion   Posted: Thu Sep 12, 2013 3:57 am   Subject: RTC with events
awch,

painful mistake...

FF = 1 byte

F = 1 nibble

I see I made the same mistake in my first post Embarassed Embarassed
  Topic: RTC with events
Blob

Replies: 5
Views: 10441

PostForum: General CCS C Discussion   Posted: Thu Sep 12, 2013 1:09 am   Subject: RTC with events
Hello,

Following temtronics idea, I am thinking to count minutes

24*60/day = 1440
1440/day*365 = 525600/year.

this takes only 5 bytes
if I take 3 bytes for the instruction and options this ...
  Topic: RTC with events
Blob

Replies: 5
Views: 10441

PostForum: General CCS C Discussion   Posted: Wed Sep 11, 2013 8:00 am   Subject: RTC with events
Hello All,

I am planning to build a little control unit based on the RTC by ckielstra.
http://www.ccsinfo.com/forum/viewtopic.php?p=59789
I want to control the lights on my shrimp tank.


In m ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Mon May 07, 2012 6:09 am   Subject: SOLVED
I changed my #org list of over 10000 entries
#ROM address_1 = {data_1}
#ROM address_2 = {data_2}
#ROM address_3 = {data_3}
...
#ROM address_n-2 = {data_n-2} ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Thu May 03, 2012 8:36 am   Subject: #org necessary when #ROM in header
sorry forgot to delete the second range when copy-pasting the code

should be this:
#ORG 9984, 30080 DEFAULT //setting the memory region to be skipped by compiler
#include "app_data.h" / ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Thu May 03, 2012 6:07 am   Subject: #org necessary when #ROM in header
Setting the default keyword does stop the out of rom error,

but it still gives me warnings: Memory not available at requested location (for every address in the range)

As I understand the manual ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Thu May 03, 2012 1:45 am   Subject: #org necessary when #ROM in header
Indeed,

my lst file shows that the function (which the compiler is complaining about to be to long) falls in the memory region I want to reserve.

I was thinking of this solution:

1 I compile ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Wed May 02, 2012 7:26 am   Subject: #org necessary when #ROM in header
Hello,

the compiler version is 4.104
pic 18f2620

I can not make a small sample program for you,

I I take some code away, there is no OUT of ROM error...


what I want to do is this:

I ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Wed May 02, 2012 3:35 am   Subject: #org necessary when #ROM in header
Hello All,

I tried Jeremiah's suggestion.

when I use the ORG statement, my code compiles correctly.
#org 9984, 30080 {}



However when I use the ROM statement, I get OUT of ROM e ...
  Topic: #org necessary when #ROM in header
Blob

Replies: 13
Views: 18043

PostForum: General CCS C Discussion   Posted: Mon Mar 19, 2012 6:02 am   Subject: #org necessary when #ROM in header
Hello,

In my application, I use some memory to keep some variables.

I use #org 9984, 30080 {}
To define the memory block.

Afterwards, this memory will be filled with data with a PC ...
  Topic: ccp1 & 2
Blob

Replies: 15
Views: 22741

PostForum: General CCS C Discussion   Posted: Mon Mar 19, 2012 4:24 am   Subject: ccp1 & 2
Hello,



in 4.093 the header does not have these lines:#define T3_CCP1_TO_2
#define T3_CCP2
A colleague of mine has 4.104 installed and his headers do have these lines.

As I can deduce from ...
  Topic: ccp1 & 2
Blob

Replies: 15
Views: 22741

PostForum: General CCS C Discussion   Posted: Fri Mar 16, 2012 4:51 am   Subject: ccp1 & 2
I have version 4.093 installed on an other pc.

Apparently in this version "use timer 3" is obsolete?

//#define CCP_USE_TIMER3 0x100 OBSOLETE, SEE TIMER-3

What sh ...
  Topic: ccp1 & 2
Blob

Replies: 15
Views: 22741

PostForum: General CCS C Discussion   Posted: Fri Mar 16, 2012 4:00 am   Subject: ccp1 & 2
I didnt find a 252, so I tried with a 2520

I get a similar result,

I used the same code,
only my Xtal now is 20 MHz
so I changed the dividers of the timers to get the same timings

one shoul ...
  Topic: ccp1 & 2
Blob

Replies: 15
Views: 22741

PostForum: General CCS C Discussion   Posted: Thu Mar 15, 2012 9:16 am   Subject: ccp1 & 2
Hello Ttelmah,

I was playing with the code you suggested, and I managed to narrow the error to 1 line (I think it is caused by the same error)

I changed your code a bit

#include <18F2620.h ...
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group