C program to send values 00 to FF to port P1 (8051)

//send values 00 to FF to port P1 in c using Kiel for 8051 microcontroller
#include <reg51.h>
void main(void)
{
unsigned char c;
for (c=0;c<=255;c++)
P1=c;
}

No comments: