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: How can I improve this code?
greeniemax

Replies: 6
Views: 13721

PostForum: General CCS C Discussion   Posted: Mon Jun 06, 2016 9:45 am   Subject: How can I improve this code?
Thanks for your help guys, I'll surely go with an encoding IC, but I tried it without PC817 and trust me it works great.

I get to about 200 RPM without any problem, I don't need it to work beyond 1 ...
  Topic: How can I improve this code?
greeniemax

Replies: 6
Views: 13721

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2016 10:04 am   Subject: How can I improve this code?
Thank you Ttelmah for your great informative response.

I think I know why is it happening though, please guide me if you think I'm wrong.

I have PC817 Photocoupler on the line, I used it to redu ...
  Topic: How can I improve this code?
greeniemax

Replies: 6
Views: 13721

PostForum: General CCS C Discussion   Posted: Sun Jun 05, 2016 12:21 am   Subject: How can I improve this code?
Hi, I'm not very new to CCS C but I have a problem that I can't seem to get my head around.

I have a rotary encoder, which is 4000 CPR and can work till 6000 RPM, I'm using PIC18F26K22 working at 4 ...
  Topic: External Interrupt Timing
greeniemax

Replies: 3
Views: 10147

PostForum: General CCS C Discussion   Posted: Sat Sep 27, 2014 5:07 am   Subject: External Interrupt Timing
Thanks Ttelmah,

Your code looks much refined, I'll use this one.

But it seems like there is no way to configure interrupt to have this delay?


Thanks and Regards,
  Topic: External Interrupt Timing
greeniemax

Replies: 3
Views: 10147

PostForum: General CCS C Discussion   Posted: Fri Sep 26, 2014 11:31 pm   Subject: External Interrupt Timing
Hi,

I have a circuit where everything is working fine but because my board is installed in a heavy industrial place, I get lots of noise on my external interrupt, I tried adding capacitor to remove ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sun Dec 15, 2013 9:28 am   Subject: 4 Serial Ports on 16F1828
Thanks a lot, FORCE_SW solved the problem.

I've already tested the motor with other PIC but because I didn't had enough pins on 14-Pin PIC16F684, I used PIC16F1828, which is newer and had 20 pins a ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sun Dec 15, 2013 7:39 am   Subject: 4 Serial Ports on 16F1828
Just one question, how do I tell compiler to use software uart and not hardware?
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sat Dec 14, 2013 11:03 pm   Subject: 4 Serial Ports on 16F1828
I added fixed IO outputs for C0, C2, B7, didn't work.

I commented out the line of #use FIXED_IO( that didn't work either.

Thought I don't really need interrupt that often, I did add a simple Mov ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sat Dec 14, 2013 10:29 pm   Subject: 4 Serial Ports on 16F1828
I'll try to add PINs to the list that are suppose to be TX but C4 works fine, B7, C0, C2, don't work.

Let me try that, thanks for the tip.
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sat Dec 14, 2013 5:18 am   Subject: 4 Serial Ports on 16F1828
Thanks for the tip, I'll try to put it in somewhere around 100 to have little damping.

Okay sorry about the code, I couldn't understand what was needed let me post it here.

Main Program

#incl ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sat Dec 14, 2013 3:21 am   Subject: 4 Serial Ports on 16F1828
That the only thing that is going to Servo other than settings when the system starts or when EEPROM is plugged in.

It sets Motor Speed to 255 and Dampening to 0. Which makes it run at highest spee ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Sat Dec 14, 2013 2:44 am   Subject: 4 Serial Ports on 16F1828
I'm not reading anything from the servo, I'm maintaining all the data inside the PIC, my PIC reads information from External EEPROM and based on data move the Servo to the location by giving it " ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Fri Dec 13, 2013 11:13 pm   Subject: 4 Serial Ports on 16F1828
The motor is from Rhino It's RMCS-2203

http://robokits.co.in/shop/index.php?main_page=product_info&cPath=2_71&products_id=367


I tried controlling it with I2C actually didn't work beca ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Thu Dec 12, 2013 10:53 pm   Subject: 4 Serial Ports on 16F1828
Compiler version I'm using is PCWH 4.140

I want full duplex communication, at 9600 Baud.

Here is what I get when I set it through Wizard.
#use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B ...
  Topic: 4 Serial Ports on 16F1828
greeniemax

Replies: 24
Views: 47422

PostForum: General CCS C Discussion   Posted: Thu Dec 12, 2013 6:41 am   Subject: 4 Serial Ports on 16F1828
Hi,

I'm trying to make 4 Serial ports working, but when I use the wizard, it only configures 2 and when I try to make it work on C5 and C4 are working.

I can't change port using fprintf, but I u ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group