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 6 matches
CCS Forum Index
Author Message
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Tue Jul 30, 2013 5:24 am   Subject: Solar tracking mechanism PIC16F877A
thanks again jay! that really help.

Also, for my code, I done some backup programming using PIC16F84A (which does not have the ADC function) just in case, and I wanted it to work exactly like how t ...
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Sun Jul 28, 2013 11:41 am   Subject: Solar tracking mechanism PIC16F877A
ok, now i've encountered another problem. I'm expecting it to stop when input the value from Pin A0 and A1 is equal but it doesn't stop. What should I do?
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Sun Jul 28, 2013 7:55 am   Subject: Solar tracking mechanism PIC16F877A
Do not use 'fixed_io...' unless you're a really good programmer !
Let the compiler handle what direction the I/O pins need to be for your programs.That's one of the great features of CCS C compiler.. ...
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Sun Jul 28, 2013 6:52 am   Subject: Solar tracking mechanism PIC16F877A
Also, do I require this line? What is the effect of having this line actually?

//#use fixed_io(b_outputs = PIN_B0, PIN_B1) //Set Port B as the output.
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Sun Jul 28, 2013 6:48 am   Subject: Solar tracking mechanism PIC16F877A
You really don't need this line and it's mate...

char adcV1 = (adcValue*5)/255; //Convert the digital value to analog

...
Play 'computer' and see what happens when the adcValue is greater than ...
  Topic: Solar tracking mechanism PIC16F877A
mpingu

Replies: 8
Views: 14516

PostForum: General CCS C Discussion   Posted: Sun Jul 28, 2013 5:21 am   Subject: Solar tracking mechanism PIC16F877A
Hello guys. I'm doing a project about solar tracking mechanism and used PIC16F877A as my microcontroller. But I have troubles on the programming part.


#include <16F877A.h> //Include all th ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group