Operational Amplifier Version 1.0
Chapter 9 Sample Code
#pragma intvect DefaultIRQHandler 6 | // | IRQ6: | |
#pragma intvect DefaultIRQHandler 7 | // | IRQ7: | Output Compare ch0 |
#pragma intvect DefaultIRQHandler 8 | // | IRQ8: | Output Compare ch1 |
#pragma intvect DefaultIRQHandler 9 | // | IRQ9: | none |
#pragma intvect DefaultIRQHandler 10 | // IRQ10: Voltage Compare ch0 | ||
#pragma intvect DefaultIRQHandler 11 | // IRQ11: Voltage Compare ch1 | ||
#pragma intvect DefaultIRQHandler 12 | // IRQ12: Voltage Compare ch2 | ||
#pragma intvect DefaultIRQHandler 13 | // IRQ13: Voltage Compare ch3 | ||
#pragma intvect DefaultIRQHandler 14 | // IRQ14: | ||
#pragma intvect DefaultIRQHandler 15 | // | IRQ15: | |
#pragma intvect DefaultIRQHandler 16 | // | IRQ16: I2C ch0 | |
#pragma intvect DefaultIRQHandler 17 | // | IRQ17: none | |
#pragma intvect DefaultIRQHandler 18 | // | IRQ18: | |
#pragma intvect DefaultIRQHandler 19 | // | IRQ19: Timebase timer | |
#pragma intvect DefaultIRQHandler 20 | // | IRQ20: Watch timer | |
#pragma intvect DefaultIRQHandler 21 | // | IRQ21: none | |
#pragma intvect DefaultIRQHandler 22 | // | IRQ22: none | |
#pragma intvect DefaultIRQHandler 23 | // | IRQ23: Flash Memory |
DefaultIRQHandler()
This function is a placeholder for all vector definitions.
Either use your own placeholder or add necessary code here
(the real used resource interrupt handlers should be defined in the main.c).
__interrupt void DefaultIRQHandler(void)
{ |
|
__DI(); | // disable interrupts |
while(1) |
|
__wait_nop(); | // halt system |
} |
|