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

12F683 external interrupts,pwm and quadrature encoder

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



Joined: 14 Oct 2008
Posts: 103

View user's profile Send private message

12F683 external interrupts,pwm and quadrature encoder
PostPosted: Sat Nov 20, 2010 9:31 pm     Reply with quote

Hi, I'm building a circuit to control a motor.
Its based on 12F683.

My requirements is

    1.) generate pwm for speed control
    2.) read a quadrature encoder
    3.) use external interrupt pin to attach IR receiver

I can use PWM pin to generate PWM.
My problem is

    1.) How to read two pulse streams from quadrature encoder and read IR sensor? I mean only interrupt type left is interrupt on change (can't use external interrupt as pin is used to generate PWM). So how to use this to read two pulse streams.
    2.) And does any of these interrupts interfere with PWM? Or does PWM module run independently without any interferences from interrupts?


My compiler version is V4.084.
Thank you
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