DDRJ = 0X00; // PJ0判断行同步脉冲到达
//PPSJ = 0x01; // Port J Polarity Select Register-rising EDGE
PPSJ = 0x00; // Port J Polarity Select Register-falling EDGE
PIEJ = 0X01; // VIDEO SYNC INTERRUPT DISABLED,BUT NOT IN MAIN()
PERJ = 0xff;
}
void main(void)
{ /* put your own code here */
byte i=0;
Port_Init(); // initial board
SetBusCLK_32M();
PORTB=0XFF;
EnableInterrupts;
for(;;)
{
Dly_ms(500);
PORTB_PB1=~PORTB_PB1;
} /* please make sure that you never leave this */