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 22 matches
CCS Forum Index
Author Message
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Fri Sep 24, 2010 6:38 pm   Subject: TIMER1 interrupt
Yes, I did, thank you.

Be aware that your timings will still not be right, if you do something like a 'delay' statement, unless you have fixed the clock statement. Your chip is _not_ running at 3.9 ...
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Fri Sep 24, 2010 12:45 pm   Subject: timer1 interrupt
ckielstra, I took your timer0 rtc example in another post and I had the same problem. Then instead of using set_timer0(250) I tried set_timer0(65000) and that changed the time as it should. It still w ...
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Fri Sep 24, 2010 11:31 am   Subject: Re: timer1 interrupt
ckielstra: thank you for the note on the setup_spi.
As for the timer I tried 8 and 16 bit and I didn't correct before sending.
INTRC is what I use and I tried INTRC_IO to see if it would make a diff ...
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Thu Sep 23, 2010 11:03 pm   Subject: timer1 interrupt
Sorry, I forgot to mention that I run it on the real hardware and not simulation. For the sake of this problem the only relevant hardware is a darlington driving the LED.

1. Post a compilable progr ...
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Thu Sep 23, 2010 10:19 pm   Subject: Timer1 interrupt
Thanks for the prompt reply PCM.

The compiler version is CCS PCH C Compiler, Version 4.106, 49215

I did paste what was in the main.h in the main.c for simplicity.
Whatever I write in set_time ...
  Topic: TIMER1 interrupt
Rocky

Replies: 9
Views: 31962

PostForum: General CCS C Discussion   Posted: Thu Sep 23, 2010 7:47 pm   Subject: TIMER1 interrupt
I am using a PIC18F23k20 and whatever I write to set_timer1(nnnn) the time between two interrupts is not changing. Looking at the .lst shows that the registers are written as expected. Changing the cl ...
  Topic: problem diff between PIC18F and PIC24F
Rocky

Replies: 2
Views: 5055

PostForum: General CCS C Discussion   Posted: Sun Sep 27, 2009 12:02 am   Subject: problem diff between PIC18F and PIC24F
Thank you PCM that was the problem.

Note that in the CCS PCH compiler (and PCB and PCM), integer data types
are 'unsigned' by default. If you want a signed value, you need to
declare it explici ...
  Topic: problem diff between PIC18F and PIC24F
Rocky

Replies: 2
Views: 5055

PostForum: General CCS C Discussion   Posted: Sat Sep 26, 2009 3:42 pm   Subject: problem diff between PIC18F and PIC24F
I wrote a graphic application that run perfectly on the PIC24 using
primitive routine like the one below which is driving a line.

On the PIC18F I replaced the 'int' with 'int16'.
All my functions ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Sat Aug 15, 2009 6:31 pm   Subject: Re: rtos not working
After several emails, the last one copying the CEO of the company I received this answer on 8/3/09:


It seems there is a bug in the 24 bit RTOS even though it is our intention for it to work. I w ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Sat Jul 25, 2009 10:16 am   Subject: rtos not working
PCM in fact I should have think about that too as I have been consulting the manual. Embarassed

I did notify CCS and I am curious to see their answer.

Actually they do say it is supported in PCWHD ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Sat Jul 25, 2009 10:09 am   Subject: RTOS not working
Thank you PCM I will.
It is a pity because it is working really well on the 18F. At least for this project.
Again, I'll post any news I get on this subject.

Actually they do say it is supported i ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2009 6:56 pm   Subject: Re: RTOS NOT WORKING
here is the answer from CCS:


This message is a reply to CCS e-mail id: 9G5689

Hey,

RTOS is not supported for PCD. Is there somewhere on our website that documents that it is? Thanks.

C ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2009 4:05 pm   Subject: RTOS NOT WORKING
I did try the same program on a 18F8490 board and it works.

What could make a PIC24 reset while it doesn't with the 18F?
Is there a bug in the watch dog timer that prevent it to be disabled?
An e ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2009 3:05 pm   Subject: rtos not working
I received a confirmation from CCS support that the processor is resetting. They are going to look into it but didn't say how long it will take.
I am going to try with an 18F8490 to see if I have the ...
  Topic: RTOS not working
Rocky

Replies: 9
Views: 10580

PostForum: General CCS C Discussion   Posted: Fri Jul 24, 2009 11:38 am   Subject: rtos not working
Sorry, I forgot to remove that line. I was trying different things in my desperation and forgot to remove the line before posting.
I did ask CCS tech support and hope to get an answer today. If I do ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group