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 support@ccsinfo.com

programming XL5 Speed controller for TRAAX car

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
geeth9



Joined: 17 Mar 2010
Posts: 2

View user's profile Send private message

programming XL5 Speed controller for TRAAX car
PostPosted: Wed Mar 17, 2010 2:22 pm     Reply with quote

Hi guys

I am new to programming the PIC, I am using a 18F4520 PIC microcontroller to program a XL5 ESC for regulating a TRAAX r.c car.
I observed that the frequency coming out of the R.C receiver was 46Hz (pulse width of 21.7msec).

My clock is 20Mhz and by using the PWM the least frequency I am able to get is 1.22Khz.

Can anybody help to achieve 46 - 50 Hz range frequency.

Thanx
Geeth
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 17, 2010 2:29 pm     Reply with quote

Quote:
Can anybody help to achieve 46 - 50 Hz range frequency.

See the sample code for software PWM using Timer0 (also called RTCC)
in this thread. It will do PWM at lower frequencies:
http://www.ccsinfo.com/forum/viewtopic.php?t=37807
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group