智慧职教: 如下简易秒表的中断程序中,如果采用定时器T1中断,括号里数据为多少?void Timer0Interrupt(void) interrupt ( ){TH0=0x3c;//重新赋初值TL0=0xb0;i++;if(i= =20){i=0;second++;second%=100;//记满1s,更新second变量}}
举一反三
- 编写一个定时器0中断的中断函数(空函数),下列定义正确的是? A: void aaa0( )interrupt 0 {} B: void int0( )interrupt 1 {} C: void time1( )interrupt 1 {} D: void time1( )interrupt 0 {}
- 下列定义的外部中断0函数正确的是( )。 A: void int0( ) interrupt 0 using 0 B: void int0( ) interrupt 1 using 0 C: void int0( ) interrupt 3 using 0 D: void int0( ) interrupt 3 using 0
- 外部中断0的中断服务函数为()。 A: void<br/>int0_isr(void) interrupt 0 B: void<br/>int0_isr(void) interrupt 1 C: char<br/>int0_isr(void) interrupt 0 D: char<br/>int0_isr(void) interrupt 1
- void aaa() interrupt 0 ,表示()的中断函数。 A: 外部中断0 B: 外部中断1 C: 定时器中断0 D: 定时器中断1
- 定义定时器0的中断服务函数正确的是: A: void timer0( ) interrupt 1 { } B: void timer0( ) interrupt 0 { } C: void timer0( ) { } D: void timer0( ) interrupt 1