[an error occurred while processing this directive]
|
для АВР все работает у меня так:
u08 lcd_read_data(void)
{
u08 data;
DDR(LCDDATAPORT) = 0; //на вход
LCDDATAPORT = 0xff; //подтяг.
LCD_A0 = 1;
LCD_RD = 0;
LCD_WR = 1;
data = PIN(LCDDATAPORT);
LCD_WR = 0;
LCD_RD = 1;
DDR(LCDDATAPORT) = 0xff;//
LCDDATAPORT = 0;
return (data);
}