We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
dear sir my project is scr power control using 8051 for zero crossing detection i hav used ua741 which gives a square wave of 10ms(0 and 1 after every 10ms) but i m not able to detect dis square wave(0 and 1) with 8051 sir plz help me in this regard i will be thankful to u my code example is
#include<reg51.h> sbit t1=P2^1; sbit zcd=P2^2; sbit t2=P2^3; void main() { zcd=1; while(1) { while(zcd) t1=1; while(!zcd) t2=1; } } dis code is jst for example
zero crossing detection ... i hav used ua741
not 'wrong', but it would be better to use a comparator than an OP-Amp.
as far as your approach, I second the other posts.
Erik
thanks.......