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 11 matches
CCS Forum Index
Author Message
  Topic: Need Help on PIC16F877A
misaeldv

Replies: 10
Views: 7051

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 8:49 pm   Subject: Need Help on PIC16F877A
What kind of problems are you facing?
  Topic: Linear actuator - Sinusoidal motion
misaeldv

Replies: 6
Views: 7646

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 9:14 am   Subject: Linear actuator - Sinusoidal motion
Thanks, just a couple more questions to clarify my issue. I just looked in the compiler help and it says that by default the only signed type is long, but that int16 can also be declared as signed if ...
  Topic: Linear actuator - Sinusoidal motion
misaeldv

Replies: 6
Views: 7646

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2007 7:21 am   Subject: Linear actuator - Sinusoidal motion
So what you're saying is that I am not allowed to decrement, or that int16 doesn't go negative?
Thanks
  Topic: Linear actuator - Sinusoidal motion
misaeldv

Replies: 6
Views: 7646

PostForum: General CCS C Discussion   Posted: Wed Sep 12, 2007 7:40 pm   Subject: Linear actuator - Sinusoidal motion
Ok, I finally got it to approximate a sinusoid, however my current test code is giving me some problem which I cannot reason out. Basically the curve going down is just the opposite of the one up, so ...
  Topic: Reading port A
misaeldv

Replies: 8
Views: 6039

PostForum: General CCS C Discussion   Posted: Fri Aug 31, 2007 5:49 am   Subject: Reading port A
Thanks, that makes a lot more sense, just one more question wouldn't shift right be the opposite?

controller = (input_a() & 0x0E) << 1;

Thanks
  Topic: Reading port A
misaeldv

Replies: 8
Views: 6039

PostForum: General CCS C Discussion   Posted: Wed Aug 29, 2007 10:33 pm   Subject: Reading port A
So, will this theoretically work in a switch statement? I tried it, but it seems to be doing random things.
Basically I'm not using A4 or A5, and A0 is being used as a switch, only A1 - A3 are being ...
  Topic: Reading port A
misaeldv

Replies: 8
Views: 6039

PostForum: General CCS C Discussion   Posted: Wed Aug 29, 2007 11:50 am   Subject: Reading port A
Sorry about that, it should be 6 bits for port A, A0 - A5;

int8 x;
x = input_a();

would x be as follows?
x = 00A5A4A3A2A1A0

Thanks.
  Topic: Reading port A
misaeldv

Replies: 8
Views: 6039

PostForum: General CCS C Discussion   Posted: Wed Aug 29, 2007 11:42 am   Subject: Reading port A
Hi, I have a question about reading port A, it is only 5 pins, which will be 5 bits (right). My question is if I read this into an int8, what would I get.
Will it be as follows?
Pin A1 is high,
Pi ...
  Topic: Linear actuator - Sinusoidal motion
misaeldv

Replies: 6
Views: 7646

PostForum: General CCS C Discussion   Posted: Tue Jul 31, 2007 9:06 am   Subject: Linear actuator - Sinusoidal motion
Hi, I'm using a linear stepper motor (stepper motor coupled to a lead screw) to drive a certain load and everything is working fine, however I'm getting a triangular wave when I am really interested i ...
  Topic: Weird Loop Problem
misaeldv

Replies: 3
Views: 4203

PostForum: General CCS C Discussion   Posted: Wed May 23, 2007 10:19 am   Subject: Weird Loop Problem
Thanks, that did it. I guess it wasn't weird after all, just a mistake on my part.
  Topic: Weird Loop Problem
misaeldv

Replies: 3
Views: 4203

PostForum: General CCS C Discussion   Posted: Wed May 23, 2007 9:17 am   Subject: Weird Loop Problem
Hi, I'm having a problem with my for loop, the compiler is complaining that it is an endless loop (and it is indeed since the code that I have after that loop does not execute). I tried doing a while ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group