AP08113
Capacitive-Touch Color Wheel Implementation
Downloading Modified Color Wheel Software Code
Application Note
16
V1.0, 2010-08
MAIN_vInit();
...
...
}
INT.C
void INT_vInit(void)
{
NMICON = 0x00; //NMI Control Register
IEN0 |= 0x01; // interrupt enable register 0
IEN1 |= 0x00; // interrupt enable register 1
EXICON0 = 0xF3; // External interrupt Control Register 0
SFR_PAGE(_su3, noSST); // switch to page 3 without saving
MODPISEL1 |= 0x18; // peripheral input select register 1
SFR_PAGE(_su0, noSST); // switch to page 0 without saving
}// End of function INT_vInit
void INT_viExt0(void) interrupt EXT0INT
{
// USER CODE BEGIN (IR_IsrExt0,2)
// emulate Reset Pin an falling edge
SFR_PAGE(_su1, noSST); // switch to page1
while( !(P2_DATAIN & 0x01) );
MAIN_vSoftReset();
// USER CODE END
...
.....
} // End of function INT_viExt0
All manuals and user guides at all-guides.com
all-guides.com