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 38 matches
CCS Forum Index
Author Message
  Topic: write_eeprom limit problem
capella

Replies: 2
Views: 4922

PostForum: General CCS C Discussion   Posted: Sat Jul 03, 2010 2:31 am   Subject: write_eeprom limit problem
Hello, I try to write internal eeprom(18f452) as big than 255, but I can't. It means when I try to write eeprom 1020 adc value; I can not. Everytime pic eeprom is saved 255...what is wrong? (I defined ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Thu Jun 24, 2010 12:19 am   Subject: math problem?
What is the overall purpose of your project ? Tell us what external
devices are controlled by the PIC.

Overall purpose is that I used pc program what I do. My program sends
string via comport ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Wed Jun 23, 2010 6:27 am   Subject: math problem?
thanks your suggestion I tried what you said.
but can you please explain your last sentence with more details. So I can understand it my language is not good enough to understand your sentence.

Bu ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Wed Jun 23, 2010 2:50 am   Subject: math problem?
I think I have to write my code completly to what I want for my problem understanding correctly..

#include <18f452.H>

#device adc=10

#fuses XT, NOWDT, BROWNOUT, PUT, NOLVP
#use dela ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Tue Jun 22, 2010 7:23 am   Subject: math problem?
You are right, if(b==1) make something also if(b==2) ,if(b==3) ,if(b==4)
makes something. You are right, I changed as if(buf[0]==1), if(buf[0]==2) , if(buf[0]==3) and also if(buf[0]==4) but result ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Tue Jun 22, 2010 6:39 am   Subject: math problem?
Hi,
You have not shown it but a is proberbly defined as int :-
int a;

a = getch();

a is NOT a string so atoi will not work properly on it.
here is an example of what you need to do:-

For 1 ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Tue Jun 22, 2010 2:54 am   Subject: math problem?
thanks your help, I try what you say and I searched,

but
if (kbhit())


a=getch();

b=atoi(a);
////////////////////////////////////////////////
if (a &g ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Tue Jun 22, 2010 1:18 am   Subject: math problem?
Yes you are right, but pc program just send string as 100, 120 , 130 bla bla ...so pic convert string as integer and It has to use as a integer value.
Is it possible to create any code...?
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 12:34 pm   Subject: math problem?
When I change as your suggestion no result again.
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 9:50 am   Subject: math problem?
Thanks for your reply. Problem solved. How can I send three-digit numbers for example 120,132 number? When I try if (a=='100')
compiler give me an error like this....

Character constant constructe ...
  Topic: math problem?
capella

Replies: 23
Views: 18779

PostForum: General CCS C Discussion   Posted: Mon Jun 21, 2010 8:40 am   Subject: math problem?
my problem is when I send data from pc to pic as like code


if (kbhit())


a=getch();


////////////////////////////////////////////////
if (a=='9')
{ ...
  Topic: Long data, unknown data process and traffic?
capella

Replies: 0
Views: 2546

PostForum: General CCS C Discussion   Posted: Fri Jun 18, 2010 9:24 am   Subject: Long data, unknown data process and traffic?
Hello,
my first problem is that
I want to send integer data from pc to pic, I searched and analyzed many codes.
Generally data is sent from pc to pic as character; a,b,c,d,1,2,hello and
general ...
  Topic: pwm motor control via pc?
capella

Replies: 19
Views: 20004

PostForum: General CCS C Discussion   Posted: Fri Jun 18, 2010 2:42 am   Subject: pwm motor control via pc?
yes you are right, I solved my problem via as I put resistor apps 1k. transistor between fet. Because fet needs little current.
  Topic: pwm motor control via pc?
capella

Replies: 19
Views: 20004

PostForum: General CCS C Discussion   Posted: Sat Jun 12, 2010 2:22 am   Subject: pwm motor control via pc?
thanks everybody, I solved my problem. Circuit control is very important. This is necessary. If you don't control circuit carefully, It takes too much your time. my problem was on the circuit.

best ...
  Topic: pwm motor control via pc?
capella

Replies: 19
Views: 20004

PostForum: General CCS C Discussion   Posted: Fri Jun 11, 2010 9:22 am   Subject: pwm motor control via pc?
All of the connections are ok. And also in proteus and real circuit dont work correctly. Why?
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group