#include <AT89S52.h>
#define uchar unsigned char
#define uint unsigned int
volatile unsigned char i;
uint y;
uchar x=0;
void ioint()
{
OPTION = 0xc8;//全局控制寄存器
INTCON = 0xc0;//中断控制
TRISC = 0x09;//定义RC端口各脚输入输出
TRISB = 0xF0;
PORTC = 0;//端口赋值
//GIE=1;//全局中断使能位
//RBIE=1;//RB电平变化中断使能位
//PEIE=1;//外围模块中断使能位
}