Source Code
Source Code
h> sfr out1=0x90; sfr out2=0xa0; sfr out3=0xb0; unsigned int i; void main() { out1=out2=out3=0x00; while(1) { out1=out2=out3=0xaa; for(i=0;i<25000;i++); out1=out2-out3=0x55; for(i=0;i<25000;i++); } }
RESULT: Thus the source code for square wave generator is written using Keil and implemented in Proteus and verified.