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

18F2431 Input Capture Module

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



Joined: 23 Jul 2007
Posts: 2

View user's profile Send private message

18F2431 Input Capture Module
PostPosted: Sun Aug 12, 2007 7:41 am     Reply with quote

I'm doing a project on sensorless control of brushless DC motors. I have to use the input capture module of 18F2431 microcontroller. But even in CCS latest edition there is no function for input capture module. Can somebody pls help me? Pls send me an example code on input capture or guide me through it....
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

PostPosted: Sun Aug 12, 2007 11:59 am     Reply with quote

It is best not to rely on the compiler to handle something that you should really understand at the hardware level. Get the datasheet for the PIC that you want to use and read up on the CCP modules, particularly in Input Capture mode, and set up the CCP registers as documented in the datasheet.

Robert Scott
Ypsilanti, Michigan
fabeo123



Joined: 23 Jul 2007
Posts: 2

View user's profile Send private message

PostPosted: Mon Aug 13, 2007 12:19 pm     Reply with quote

It's not actually the CCP module which I'm working with. In PIC 18Fxx31 microcontrollers there's a special module called Input Capture. It's optimized for motor controlling.
Anyway thanks a lot for your reply. It seems I have to access the registers defined in the datasheet to get on with that particular module.
Thanks once again!!!
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