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