Esempio n. 1
0
char lcd_read_byte(void) 
{ 
	char low; 
	char high; 
	
	output_high(LCD_RW); 
	delay_cycles(1); 
	
	high = lcd_read_nibble(); 
	
	low = lcd_read_nibble(); 
	
	return( (high<<4) | low); 
} 
Esempio n. 2
0
BYTE lcd_read_byte(void)
{
   BYTE low,high;

 #if defined(__PCB__)
   set_tris_lcd(LCD_INPUT_MAP);
 #else
  #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
   output_float(LCD_DATA4);
   output_float(LCD_DATA5);
   output_float(LCD_DATA6);
   output_float(LCD_DATA7);
  #else
   lcdtris.data = 0xF;
  #endif
 #endif
        
   lcd_output_rw(1);
   delay_cycles(1);
   lcd_output_enable(1);
   delay_cycles(1);
   high = lcd_read_nibble();
      
   lcd_output_enable(0);
   delay_cycles(1);
   lcd_output_enable(1);
   delay_us(1);
   low = lcd_read_nibble();
      
   lcd_output_enable(0);

 #if defined(__PCB__)
   set_tris_lcd(LCD_INPUT_MAP);
 #else
  #if (defined(LCD_DATA4) && defined(LCD_DATA5) && defined(LCD_DATA6) && defined(LCD_DATA7))
   output_drive(LCD_DATA4);
   output_drive(LCD_DATA5);
   output_drive(LCD_DATA6);
   output_drive(LCD_DATA7);
  #else
   lcdtris.data = 0x0;
  #endif
 #endif

   return( (high<<4) | low);
}
Esempio n. 3
0
int8 lcd_read_byte(void){
	int8 low;
	int8 high;

	TRIS_DATA_PIN_4=1;
	TRIS_DATA_PIN_5=1;
	TRIS_DATA_PIN_6=1;
	TRIS_DATA_PIN_7=1;

	RWPIN=1;
	Nop();

	high = lcd_read_nibble();

	low = lcd_read_nibble();

	return( (high<<4) | low);
}