English
Language : 

RA8806 Datasheet, PDF (56/174 Pages) RAIO Technology Inc. – Two Layers Character/Graphic LCD Controller Specification
Preliminary Version 1.0
RA8806
Two Layers Character/Graphic LCD Controller
(2) Program Example:
Key-Scan_Enable ( );
Key-Scan_INT_Mask_Enable ( );
:
:
Execute other functions
:
:
Int EXT_INT_Service_Routine
{
LCD_CmdWrite ( INTR );
INT_Sta = LCD_DataRead ( );
// Set Reg. KSCR1 Bit-7=1
// Set Reg. INTR Bit-5=1
// Jump to ISR when external interrupt
// ISR entry
// Check INT status
If ( INT_Sta & 0x02 )
{
LCD_CmdWrite ( KSDR0 );
KeyCode1 = LCD_DataRead ( );
// Check if Key-Scan interrupt
// Read Key Code
Switch ( KeyCode1 )
{
case 0 :
:
:
break;
case 1 :
:
:
}
LCD_CmdWrite ( INTR );
temp = LCD_DataRead ( );
temp = temp & 0xfd;
LCD_CmdWrite ( INTR );
LCD_DataWrite ( temp );
}
else if (INT_Sta & 0x01)
{
:
:
}
else if (INT_Sta & 0x04)
{
:
:
}
}
// Execute keystroke function
// Clear Key-Scan status
// Check if Touch Panel interrupt
// Check if Wakeup interrupt
RAiO TECHNOLOGY INC.
56/174
www.raio.com.tw