Microcontroller › 8051 › Re: Project MC012 – Problems with code › is this why thee is a second
March 12, 2011 at 8:47 pm
#5727
G Thomas
Participant
is this why thee is a second added on?
void mplex_delay(unsigned int time) // Function to provide a time delay of approximatelty one second using Timer 1
{
int i,j;
for (i=0;i<=time;i++)
for(j=0;j<=50;j++);
}
void digi_out(unsigned int current_num)
{
P2=digi_val[current_num];
mplex_delay(msec);
}