ra8806 RAIO Technology Inc., ra8806 Datasheet - Page 50

no-image

ra8806

Manufacturer Part Number
ra8806
Description
Two Layers Character/graphic Lcd Controller
Manufacturer
RAIO Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ra8806L2N-S
Manufacturer:
ST
Quantity:
2 100
Part Number:
ra8806L2N-S
Manufacturer:
RAIO
Quantity:
20 000
Part Number:
ra8806P1N-S
Manufacturer:
RAIO
Quantity:
4 000
Preliminary Version 1.2
RAiO
TECHNOLOGY INC.
(2) Program Example:
Touch_Panel_Enable ( );
TP_Manual_Enable ( );
Switch_Wait_TP_Event( );
Touch_Sta_Valid = 0;
LCD_CmdWrite ( INTR );
INT_Sta = LCD_DataRead ( );
If ( INT_Sta & 0x08 )
{
}
for ( count = 0 ; count < 100 ; count++ )
{
}
if (Touch_Sta_Valid )
{
}
LCD_CmdWrite ( INTR );
INT_Sta = LCD_DataRead( );
if (INT_Sta == 0)
{
}
if ( count == 99 )
Switch_Latch_X_data( );
Delay_Time( );
Switch_Latch_Y_data( );
Delay_Time( );
LCD_CmdWrite(TPXR);
X1 = LCD_DataRead( );
Y1 = LCD_DataRead( );
LCD_CmdWrite(TPZR);
X2 = LCD_DataRead( ) & 0x03; // Read Least two Bits of X-axis
LCD_CmdWrite(TPZR);
Y2 = LCD_DataRead( ) & 0x0C; // Read Least two Bits of Y-axis
LCD_CmdWrite ( INTR );
temp = LCD_DataRead ( ) & 0xfe;
LCD_CmdWrite ( INTR );
LCD_DataWrite ( temp );
Execute other function
LCD_CmdWrite(TPYR);
Touch_Sta_Valid = 0;
break;
Touch_Sta_Valid = 1;
Execute corresponding function
:
:
:
:
:
50/184
Two Layers Character/Graphic LCD Controller
// Set REG[C0h]. Bit-7 = 1
// Set REG[C4h]. Bit-7 = 1
// Set REG[C4h][1:0] = 01
// Initial Touch state
// Check INTR.Bit-3
// Check 100 times
// When no touch
// Touch is invalid
// When count 100 times, touch is valid
// Set REG[C4h][1:0] = 10
// Delay enough time
// Set REG[C4h][1:0] = 11
// Delay enough time
// Read high byte of X-axis
// Read high byte of Y-axis
// Clear REG[0Fh]. Bit-0
www.raio.com.tw
RA8806

Related parts for ra8806