I am trying to run a simple interruption routine on a
EVAL-ADUC7020QSPZ development board. The .hex file is properly
generated with Keil without error, however the code does not work.
What I expect is that when pressing the IRQ0 interrupt button of the
board, the LED (output P4.2) status should be complemented. Here is
my code :
#include <ADuC7020.h>
void IRQ_Handler(void) __irq;
int main (void) {
IRQEN = XIRQ0_BIT;
GP4DAT = 0x04000000
↧