Demo entry 6362237

ZY

   

Submitted by Zhao Yi on May 08, 2017 at 03:21
Language: C. Code size: 152 Bytes.

void delay_ms(unsigned char ms)
{
     unsigned int i;
	 do{
	      i = MAIN_Fosc / 13000;
		  while(--i)	;   //14T per loop
     }while(--ms);
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).