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 50 matches
CCS Forum Index
Author Message
  Topic: CCP1 & CCP2 does not work together
z3ngew

Replies: 1
Views: 4724

PostForum: General CCS C Discussion   Posted: Sun Sep 15, 2013 1:16 am   Subject: CCP1 & CCP2 does not work together
Hello everyone,
I am trying to use both ccp1 and ccp2 in the compare mode, the isr of ccp1 is running but the isr of ccp2 only respond one time, i don't know what is the problem, but when i disable i ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Fri Sep 13, 2013 12:42 pm   Subject: SOLVED:timer interrupt pwm resolution
Hello again,
i am sorry i am reopening this thread, but if i want to drive digital servo, 300~400 Hz, how can i do that with the same concept, (after implementing the code inspired by your idea) ? I ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Sat Aug 10, 2013 12:14 pm   Subject: SOLVED:timer interrupt pwm resolution
Hi there RLScott ,
first thank you and the other members for helping me through this problem,
i have to say that there was a lot of things in pic microchip i didn't use before, but thanks to you an ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Sat Aug 10, 2013 7:42 am   Subject: SOLVED:timer interrupt pwm resolution
After following RLScott the code is working great and with no problems
here is the code, but it need some extra work to be finished:
#byte MCU_PORTB = 0xF81
#bit pwm_0 = MCU_PORTB.0
#bit pwm_1 = M ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Fri Aug 09, 2013 9:51 am   Subject: SOLVED:timer interrupt pwm resolution
i found a solution, it is dummy in a way, but it should do it.

if i do the following the code in an infinite loop
output_high(PIN_B0);
delay_us(a);
output_low&# ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Fri Aug 09, 2013 8:31 am   Subject: SOLVED:timer interrupt pwm resolution
I have a robotic arm 5 DOF with 4 servo motors and 1 stepper 1 dc motor 1FSR sensor.

- the robot arm and the control circuits have already been designed and performed, so i cannot use other pins(ha ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Fri Aug 09, 2013 6:34 am   Subject: SOLVED:timer interrupt pwm resolution
Hello again,
i want to get the maximum resolution of the rc _servo motor, 2000 step,
I used the following function:
crystal = 20Mhz, and no prescaler(divided by 1)
set_timer1(65531);

Th ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Thu Aug 08, 2013 6:03 am   Subject: SOLVED:timer interrupt pwm resolution
thanks for the feedback jay,
handle_read(); uses UART, but about step(2) will you explain it little more, what i have understood is that i should put (handle_read) in another event handler maybe of t ...
  Topic: SOLVED:timer interrupt pwm resolution
z3ngew

Replies: 18
Views: 35668

PostForum: General CCS C Discussion   Posted: Wed Aug 07, 2013 7:41 pm   Subject: SOLVED:timer interrupt pwm resolution
Hello everyone,
I am designing a code to control 4 servo motor using timer interrupt pwm,
but there is a problem, in the main routine there is a communication protocol designed (handle_read()) this ...
  Topic: Portable Timer Functions
z3ngew

Replies: 4
Views: 7792

PostForum: General CCS C Discussion   Posted: Tue Aug 06, 2013 3:21 am   Subject: Portable Timer Functions
but the hardware pwm is not so useful when low frequencies is need (for example rc servo motor - 50hz)

Thanks,
z3ngew
  Topic: Portable Timer Functions
z3ngew

Replies: 4
Views: 7792

PostForum: General CCS C Discussion   Posted: Tue Aug 06, 2013 2:37 am   Subject: Portable Timer Functions
Hello everyone,
I want take your opinion in something,
I want to design my own pwm library, but somehow i want all my libs to be generic.(it's a curse)
i guess the best method of pwm is using timer ...
  Topic: multiple compilation unit problem
z3ngew

Replies: 2
Views: 5627

PostForum: General CCS C Discussion   Posted: Sat Aug 03, 2013 8:15 am   Subject: multiple compilation unit problem
what is (internal Error - contact ccs LABEL SCR = 752)?
  Topic: multiple compilation unit problem
z3ngew

Replies: 2
Views: 5627

PostForum: General CCS C Discussion   Posted: Fri Aug 02, 2013 9:13 am   Subject: multiple compilation unit problem
Hello everyone,
I have a problem, some time ago i have succeeded to create a multiple compilation unit project, thanks to the members, but now i have a problem there is a function which i have writte ...
  Topic: header and source files linking
z3ngew

Replies: 5
Views: 8982

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2013 5:12 pm   Subject: header and source files linking
Many thanks my friends , Very Happy
Sincerely
  Topic: header and source files linking
z3ngew

Replies: 5
Views: 8982

PostForum: General CCS C Discussion   Posted: Tue Jul 09, 2013 7:24 am   Subject: header and source files linking
you are correct, but please take a look at the following link:
http://web.cs.swarthmore.edu/~newhall/unixhelp/howto_C_libraries.html

Thanks in advance,
z3ngew
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group