以下中断服务函数写法正确得是(
A: __interrupt void P1_ISR(void)
{……}
B:
C: pragma vector = P1INT_VECTOR
__interrupt void P1_ISR(void)
{……}
D: interrupt void P1_ISR(void)
{……}
E:
F: pragma vector = P1INT_VECTOR
interrupt void P1_ISR(void)
{……}
A: __interrupt void P1_ISR(void)
{……}
B:
C: pragma vector = P1INT_VECTOR
__interrupt void P1_ISR(void)
{……}
D: interrupt void P1_ISR(void)
{……}
E:
F: pragma vector = P1INT_VECTOR
interrupt void P1_ISR(void)
{……}
举一反三
- 定时器1的中断服务函数为( )。 A: void<br/>timer_isr(void) interrupt 1 using 3 B: char<br/>timer_isr(void) interrupt 1 C: void<br/>timer_isr(void) interrupt 3 D: char<br/>timer_isr(void) interrupt 3
- 外部中断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
- 如果是P1_5引发的外部中断,以下中断服务函数及中断向量正确是()? A: B: pragma vector=P1INT_VECTOR C: D: pragma vector=P0INT_VECTOR E: F: pragma vector=0x7B G: _interrupt void P1_Int() { }
- void ISR(void) interrupt 5 {...} 以上是哪个中断源的中断服务函数?
- ADC12中断向量函数的定义正确的是()。 A: B: pragma vector = ADC12_VECTOR__interrupt void ADC12_Interrupt( ) C: D: pragma vector = ADC_VECTOR__interrupt void ADC12_Interrupt( ) E: F: pragma vector = MSP430_ADC12__interrupt void ADC12_Interrupt( ) G: H: program vector = ADC_VECTOR__interrupt void ADC12_Interrupt( )