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
Posted: Sun Aug 12, 2007 11:59 am
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
Posted: Mon Aug 13, 2007 12:19 pm
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!!!
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