
#include <reg51.h>

sbit clear = P0^7;

void flush_data()

	{
	clear=0;
	clear=1;
	clear=0;
	}

void word_delay()
	{
	unsigned int x;
	for(x=0;x<15000;x++);
	}

main()

{
while(1)
	{
	
					
		{
			unsigned char string1[]="RUN";  // You must ensure that there are 10 chars INCLUDING WHITE SPACE or else @ will show up on display
	     	        unsigned char z;						 // and phrase must be written in UPPERCASE LETTERS or else garbage will show up on display!!!!
	     	        for (z=0;z<=2;z++)
				{
			     P0 = (string1[z] & 0xBF)| 0x80;         // Data out, bit 6 low
			     P0 = (string1[z] & 0x3F)| 0xC0; 		 // Bit 6 high
			     P0 =  string1[z] & 0x3F | 0x80;         // Bit 6 low again	
				 						 				 
			    }
				 word_delay();
				 flush_data();
				 
		}		
		{
			
			unsigned char string1[]="BOOST";  // You must ensure that there are 10 chars INCLUDING WHITE SPACE or else @ will show up on display
	     	        unsigned char z;						 // and phrase must be written in UPPERCASE LETTERS or else garbage will show up on display!!!!
	     	        for (z=0;z<=4;z++)
				{
			     P0 = (string1[z] & 0xBF)| 0x80;         // Data out, bit 6 low
			     P0 = (string1[z] & 0x3F)| 0xC0; 		 // Bit 6 high
			     P0 =  string1[z] & 0x3F | 0x80;         // Bit 6 low again						 				 
			    }
				word_delay();
				flush_data();
				
		}	
	
	
	}	
								  
}			 

	 
