PDA

View Full Version : correct my code for 16f84.....



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.

Acetronics2
- 30th August 2008, 09:11
Hi, kvrajasekar

Will you notice it's a PicBASICPro Forum here ...

So, You'd have much better chances to get answers on dedicated forums.( Microchip i.e. )


Sorry, but I can't debug your program ... some asm included lines Ok, but Whole program is too much for most of us here.

Alain

kvrajasekar
- 30th August 2008, 12:11
Hi mr.Acetronics,

Thank u very much.







-raja.