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 3662 matches
CCS Forum Index
Author Message
  Topic: Code is working fine in proteus but on hardware lcd not work
ckielstra

Replies: 7
Views: 15383

PostForum: General CCS C Discussion   Posted: Sat Dec 17, 2016 8:53 am   Subject: Code is working fine in proteus but on hardware lcd not work
GET RID of the comments on the same line as the #DEFINE
only define text up to the carriage return for compat with older compilersI don't agree with this suggestion. Perhaps there once were buggy ...
  Topic: some code problems
ckielstra

Replies: 6
Views: 12439

PostForum: General CCS C Discussion   Posted: Tue Nov 15, 2016 2:56 pm   Subject: some code problems
For the used input pins have a look at this code line:set_adc_channel(channel);Then, look in the manual for this function and you find:Syntax: set_adc_channel (chan

The channels are define ...
  Topic: C question (switch or .....)
ckielstra

Replies: 28
Views: 54129

PostForum: General CCS C Discussion   Posted: Sat Sep 03, 2016 7:07 am   Subject: C question (switch or .....)
Your code has a lot of duplication which makes your program very long and difficult to maintain. Just a tiny change to one of the switch readings means you'll have to copy this code modification 16 ti ...
  Topic: [recommend]18f MCU
ckielstra

Replies: 5
Views: 11439

PostForum: General CCS C Discussion   Posted: Thu Aug 11, 2016 2:54 pm   Subject: [recommend]18f MCU
For a good advice we need a lot more details about your project, like:
- What is your project about?
- What processor types do you have experience with?
- Why do you want to use a PIC processor?
- ...
  Topic: 3D printer firmware library
ckielstra

Replies: 4
Views: 16254

PostForum: General CCS C Discussion   Posted: Fri May 06, 2016 3:22 pm   Subject: 3D printer firmware library
@drolleman: A 3D printer involves a bit more than just processing the G0/G1 commands. There is route planning, PID based temperature control of heated bed and nozzle, reading thermocouples, LCD screen ...
  Topic: 3D printer firmware library
ckielstra

Replies: 4
Views: 16254

PostForum: General CCS C Discussion   Posted: Wed May 04, 2016 12:31 pm   Subject: 3D printer firmware library
Be more specific.
The code used in the mentioned RepRap derived printers is open source and available from Github. My guess is you know this and that this isn't what you are looking for.
But, if thi ...
  Topic: Problem with receiving strings from SIM900 with INT_RDA
ckielstra

Replies: 42
Views: 69926

PostForum: General CCS C Discussion   Posted: Thu Nov 19, 2015 3:22 pm   Subject: Problem with receiving strings from SIM900 with INT_RDA
I had a quick look at all the posted links and documents.
Please note that the board has both an RS232 level output and also a TTL level output. Perhaps this is where a lot of confusion comes from?
...
  Topic: 18f45k22 union problem: union not working exactly !!!
ckielstra

Replies: 2
Views: 6582

PostForum: General CCS C Discussion   Posted: Tue Nov 17, 2015 3:02 pm   Subject: 18f45k22 union problem: union not working exactly !!!
One big difference between CCS and Visual Studio is how a float is represented internally. Just a simple search on the internet found me the following link: https://www.ccsinfo.com/forum/viewtopic.php ...
  Topic: Motor Control Code
ckielstra

Replies: 22
Views: 31275

PostForum: General CCS C Discussion   Posted: Fri Nov 13, 2015 2:46 am   Subject: Motor Control Code
There are a lot of problems in this project. Some are bugs, some are poor design decisions and there is a general feel of disinterest (for example the unreadable posted schematic).

The fact that al ...
  Topic: how to change timer0 to 16 bits using pic18f452 [SOLVED]
ckielstra

Replies: 10
Views: 15536

PostForum: General CCS C Discussion   Posted: Thu Nov 12, 2015 9:33 am   Subject: how to change timer0 to 16 bits using pic18f452 [SOLVED]
Maybe my compiler is too old I have version 4.018 I'm surprised nobody else remarked on this. The first releases of the v4.xxx series of compilers were very bad, only around v4.075 the compiler became ...
  Topic: after a interrupt off a pin
ckielstra

Replies: 3
Views: 7070

PostForum: General CCS C Discussion   Posted: Tue Nov 10, 2015 2:09 pm   Subject: after a interrupt off a pin
Please don't change your original post so much. Now we can't see what changes you made to improve your program. Leave the original text as it is and post a new reply in this thread when you make chang ...
  Topic: after a interrupt off a pin
ckielstra

Replies: 3
Views: 7070

PostForum: General CCS C Discussion   Posted: Mon Nov 09, 2015 1:16 pm   Subject: after a interrupt off a pin
I haven't checked the rest of your code, but one possible error is that your portB interrupt routine is not reset. At the start of your main routine you have this line: temp=input_b(); //you ...
  Topic: Motor Control Code
ckielstra

Replies: 22
Views: 31275

PostForum: General CCS C Discussion   Posted: Sat Nov 07, 2015 6:10 pm   Subject: Motor Control Code
void sensor(int sensor) //define sensor function
I also suggest you change these names to be more in line with the actual function they perform:void move(int direction) // Set mo ...
  Topic: ssd 1306 initialization problem
ckielstra

Replies: 13
Views: 19324

PostForum: General CCS C Discussion   Posted: Thu Oct 29, 2015 2:38 am   Subject: ssd 1306 initialization problem
Thanks for sharing your code and putting in all the effort.

Just a few remarks, not related to your issue but will make you a better programmer:
1) Using the goto command is considered bad program ...
  Topic: extern variable, how to do ?
ckielstra

Replies: 22
Views: 32146

PostForum: General CCS C Discussion   Posted: Mon Oct 26, 2015 4:20 am   Subject: extern variable, how to do ?

#use rs232(baud4800,parity=N,xmit=pin_c6,rcv=pin-c7,bits=8,TIMEOUT=200,STREAM=rs232_AT,BRGH1OK,DISABLE_INTS)Is this actual code? pin-c7 should be pin_c7
Besides, it is good practice to writ ...
 
Page 1 of 245 Goto page 1, 2, 3 ... 243, 244, 245  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group