ra8806 RAIO Technology Inc., ra8806 Datasheet - Page 47

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:
Unsigned char X1,X2,Y1,Y2;
Touch_Panel_Enable ( );
TP_Manual_Enable ( );
TP_INT_Mask_Enable ( );
Switch_Wait_TP_Event( );
Int EXT_INT_Service_Routine
{
Else if (INT_Sta & 0x02)
Else if (INT_Sta & 0x04)
}
{
{
}
}
LCD_CmdWrite ( INTR );
INT_Sta = LCD_DataRead ( );
If ( INT_Sta & 0x01)
{
}
Execute other function
:
:
:
:
Switch_Latch_X_data( );
Delay_Time( );
Switch_Latch_Y_data( );
Delay_Time( );
LCD_CmdWrite(TPXR);
X1 = LCD_DataRead( );
Y1 = LCD_DataRead( );
LCD_CmdWrite(TPZR);
LCD_CmdWrite(TPZR);
Y2 = LCD_DataRead( ) & 0x0C; // LSB two Bits of Y
LCD_CmdWrite ( INTR );
temp = LCD_DataRead ( ) & 0xfe;
LCD_CmdWrite ( INTR );
LCD_DataWrite ( temp );
X2 = LCD_DataRead( ) & 0x03; // LSB two Bits of X
LCD_CmdWrite(TPYR);
:
:
:
:
Execute corresponding function
:
:
:
:
47/184
Two Layers Character/Graphic LCD Controller
// Set TPCR1 Bit-7 to 1
// Set TPCR2 Bit 7 to 1
// Set INTR Bit-4 to 1
// Set TPCR2[1:0] to 01b
// Jump to ISR when interrupt
// ISR entry
// Check INT status
// Check If TP interrupt
// Set TPCR2[1:0] to 10b
// Delay enough time for X data stable
// Set TPCR2[1:0] to 11b
// Delay enough time for Y data stable
// MSB of X
// MSB of Y
// Clear Touch Panel status
// Check if Key-Scan interrupt
// Check if Wakeup interrupt
www.raio.com.tw
RA8806

Related parts for ra8806