Created
October 22, 2019 21:03
-
-
Save d-boz-wtwh/8934d6a642d2c113f30f9700075b2d68 to your computer and use it in GitHub Desktop.
Microcontroller Projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<reg52.h> | |
void delay() | |
{ | |
unsigned int i,j; | |
for(i=0;i< 500;i++) | |
for(j=0;j< 1000;j++); | |
} | |
void main() | |
{ | |
unsigned int count; | |
while(1){ | |
for(count=0;count<=15;count++) | |
P1=count; | |
delay(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment