aruna1
Joined: 14 Oct 2008 Posts: 103
|
12F683 external interrupts,pwm and quadrature encoder |
Posted: Sat Nov 20, 2010 9:31 pm |
|
|
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 |
|