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 15 matches
CCS Forum Index
Author Message
  Topic: 16f628 clearing INT_RB problem/workaround
matt_at_hanbay

Replies: 10
Views: 10881

PostForum: General CCS C Discussion   Posted: Mon Mar 24, 2008 10:35 am   Subject: 16f628 clearing INT_RB problem/workaround
Thanks for the suggestion. I had searched the forum, and had come up empty until just after posting my question. I think 'noclear' is exactly what I was looking for.

Thanks again for the fast reply ...
  Topic: 16f628 clearing INT_RB problem/workaround
matt_at_hanbay

Replies: 10
Views: 10881

PostForum: General CCS C Discussion   Posted: Mon Mar 24, 2008 9:53 am   Subject: 16f628 clearing INT_RB problem/workaround
Hi,
I have a project using a 16f628. I have a quadrature encoder providing input on PORTB pin 4 and 5. I use INT_RB to catch my encoder signal changes. I also have a couple other pins on PORTB used a ...
  Topic: missed pulses from PWM when changing timer 2 period
matt_at_hanbay

Replies: 1
Views: 3659

PostForum: General CCS C Discussion   Posted: Thu Sep 20, 2007 4:59 pm   Subject: missed pulses from PWM when changing timer 2 period
Problem resolved. Maybe this will help someone else.

So.. the issue was that I was increasing the frequency by decreasing the value of PR2. For example, the current period may be 65, and I was dec ...
  Topic: missed pulses from PWM when changing timer 2 period
matt_at_hanbay

Replies: 1
Views: 3659

PostForum: General CCS C Discussion   Posted: Thu Sep 20, 2007 1:18 pm   Subject: missed pulses from PWM when changing timer 2 period
Hi.
I'm using a 16f886 to control a bipoler stepper via an A3984 ic (step/dir/analog pwr signals). I am using ccp1 along with timer2 in PWM config. to provide the step pulse.

I need to change the ...
  Topic: corrupt/overwritten variable problem
matt_at_hanbay

Replies: 7
Views: 5919

PostForum: General CCS C Discussion   Posted: Tue Sep 04, 2007 7:32 am   Subject: corrupt/overwritten variable problem
Bump.
does anyone have any more ideas?

What is the best way to test for a buffer overflow in ccs?

Thanks again for all suggestions.
  Topic: corrupt/overwritten variable problem
matt_at_hanbay

Replies: 7
Views: 5919

PostForum: General CCS C Discussion   Posted: Sat Sep 01, 2007 9:41 am   Subject: corrupt/overwritten variable problem
Ttelmah,
thank you very much for the suggestions. I don't have the schematic in on my laptop (it is at work), however I think it is essentially the same as the ST VNH3SP30-E The problem is that a 'br ...
  Topic: corrupt/overwritten variable problem
matt_at_hanbay

Replies: 7
Views: 5919

PostForum: General CCS C Discussion   Posted: Sat Sep 01, 2007 7:01 am   Subject: corrupt/overwritten variable problem
Here is the full code as promised:


#include <16f627A.h>
//#include <16f886.h>
#fuses INTRC_IO,NOWDT,NOMCLR,NOPROTECT,NOLVP
#use delay(clock=4000000)


/***************** ...
  Topic: corrupt/overwritten variable problem
matt_at_hanbay

Replies: 7
Views: 5919

PostForum: General CCS C Discussion   Posted: Sat Sep 01, 2007 6:58 am   Subject: corrupt/overwritten variable problem
Thanks for the suggestions.

ckielstra, I will try your suggestion of removing the load when I return to work on Tuesday.

1. Describe the H-Bridge circuit. Is it a separate chip ?
The H-bridge ...
  Topic: corrupt/overwritten variable problem
matt_at_hanbay

Replies: 7
Views: 5919

PostForum: General CCS C Discussion   Posted: Fri Aug 31, 2007 2:25 pm   Subject: corrupt/overwritten variable problem
Hi,
I have a project where I use a PIC 16F627A to control a DC motor through an H-bridge. In the program I was having strange behaviour where it seemed that a variable I was using was being overwrit ...
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Fri Jul 13, 2007 7:52 am   Subject: Program doesn't function after meaningless changes to code.
You don't have to disable the interrupts, the PIC hardware already does this for you on entering the interrupt handler. The interrupts stay disabled until you exit the isr with the RETFIE instruction. ...
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Thu Jul 12, 2007 12:07 pm   Subject: Program doesn't function after meaningless changes to code.
PCM, it looks like you were correct. Adding a software timeout resolved the issue.

ckielstra, you are correct regarding the depth of my interrupts. My comparator interrupt is the main culprit. Thi ...
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Tue Jul 10, 2007 12:27 pm   Subject: Program doesn't function after meaningless changes to code.
Thanks, I'll try that.
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Tue Jul 10, 2007 10:30 am   Subject: Program doesn't function after meaningless changes to code.
PCM, again thank you for your reply. I have just now had an opportunity to spend more time on this problem. From you previous post, using a printf to detect resets... a good idea, unfortunately this p ...
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Sat Jul 07, 2007 11:29 am   Subject: Program doesn't function after meaningless changes to code.
PCM, thanks for the reply. I don't think am currently using any arrays, but I'll look through the code to see if I may be over writing a nother variable. Do you happen to have any ideas regarding the ...
  Topic: Program doesn't function after meaningless changes to code.
matt_at_hanbay

Replies: 10
Views: 14150

PostForum: General CCS C Discussion   Posted: Fri Jul 06, 2007 2:33 pm   Subject: Program doesn't function after meaningless changes to code.
I'll try to make this clear and concise. I have a program that runs on a 16f886, compiler/program size/ram use as follows:

CCS PCM C Compiler, Version 4.042, 38188 06-Jul-07 15:42

...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group