/*------------------------------------------------------------------------
	Converts 2 digit decimal to ACSII string...	26 to "26"
	returns pointer to converted string i.e 2  
--------------------------------------------------------------------------*/
unsigned char* dec2ascii (unsigned char dec)
{
code unsigned char asciitable[10]={'0','1','2','3','4','5','6','7','8','9'}; //look up table for ascii values
static unsigned char buffer[2];	//to hold the 2 ascii codes ... MUST be static

buffer[0]=asciitable[(dec-dec%10)/10];	//tens
buffer[1]=asciitable[dec%10];		//ones
return buffer;
}