void SC_INT_Init(void)
{
GPIO_Init(GPIO2, GPIO_PIN_1,GPIO_MODE_IN_PU);
INT2_SetTriggerMode(0x00|INT21,INT_TRIGGER_FALL_ONLY);
INT2_ITConfig(ENABLE,HIGH);
}
void INT2Interrupt() interrupt 10
{
/*<Generated by EasyCodeCube begin>*/
UART0_SendData8(0x09);
// ADC_Value=ADC_GetConversionAverageValue(ADC_EAIN_2);
// ADC_FLAG=1;
/*<Generated by EasyCodeCube end>*/
}
|