Posted by Yash /////////////////////////// SYSCR = 0x09; /* NMI Edge detected */ ABWCR = 0xFC ; P1DDR |= 0x20; /* set port1/bit 5 for output */ ISCRL |= 0x01; /* IRQ0 is Falling edge */ IER |= 0x01; /* Enable IRQ0 */ /* Initialise bus access for the UART */ } void irq0_isr(void) void nmi_isr(void) /////////////////////////// Main program just blinks LED which is on port 1.5. Yash
![]()
on January 31, 2003, 10:41:22
203.124.158.130
Hi,
I am using H8S2623 EVB and GNU tool chain.
I want to use the IRQ0 and NMI.
Here are the routines I use.
void hw_initialise (void)
{
WCRL = 0xFC ;
BCRH = 0xD0 ;
PFCR = 0x0F ;
PCDDR = 0xFF ;
PFCR = (AE3 | AE2 | AE1 | AE0);
PCDDR = 0xFF;
{
PutChar('0');
set_ccr(0);
}
{
PutChar('N');
set_ccr(0);
}
Now when I use NMI I always get 'N'. But I get '0' only once. i.e. first time.
After that I do not get any '0'.
Which means that the program enters IRQ0 only once.
I am running the program from Flash.
What could be the problem ?
Am I missing something ?
Message Thread:
![]()
« Back to thread
Evaluation Kit Support
Renesas Evaluation Boards are intended for evaluation of Renesas microprocessors only, not as development tools.