kvrajasekar
- 30th August 2008, 08:20
Hi all,
plz go thru my attached code for pic16f84.point me if i did anything wrong.
here is my requirement.
1.first generate pulse in free run condition(10ms ON/OFF)
2.if main present find the duty cycle(tON)
3.if duty cycle is within 9-11ms,goto step 4,else step 1
4.compare with o/p feedback duty cycle(wat pulse generated at free run is feed back to i/p)
5.do the modifications to match both duty cycles.
6.if both matches,wait for rising edges match,
7.if both match,say under lock condition.
plz go thru my attached code for pic16f84.point me if i did anything wrong.
here is my requirement.
1.first generate pulse in free run condition(10ms ON/OFF)
2.if main present find the duty cycle(tON)
3.if duty cycle is within 9-11ms,goto step 4,else step 1
4.compare with o/p feedback duty cycle(wat pulse generated at free run is feed back to i/p)
5.do the modifications to match both duty cycles.
6.if both matches,wait for rising edges match,
7.if both match,say under lock condition.