dimp2.c
//
//  pretty close to 1ms delay at 1MHz...
//
pretty close to 1ms delay at 1MHz
pretty close to 1ms delay at 1MHz
static void delay_ms(unsigned char ms)
{
	volatile int i;
	while (ms--)
		for (i = 0; i < 54; i++)
			;
}
static void delay_ms ( unsigned char ms ) { volatile int i ; while ( ms -- ) for ( i = 0 ; i < 54 ; i ++ ) ; }
pretty close to 1ms delay at 1MHz...
pretty close to 1ms delay at 1MHz ...