Posted by Yash Regards --Previous Message--
![]()
on February 3, 2003, 10:09:32, in reply to "Re: Problem using IRQ0 on H8S/2623 EVB "
203.124.158.130
Yes.
I am doing this. It work fine when debugging thro' HDI. But when I use Flash it works only for the first time.
Yash.
: Are you telling the compiler that it is
: an interrupt service routine, with
: a prototype something like...
: irq0_isr(void) __attribute__
: ((interrupt_handler));
: Best regards
: Andy G
: --Previous Message--
: 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)
: {
: SYSCR = 0x09; /* NMI Edge detected
: */
: ABWCR = 0xFC ;
: WCRL = 0xFC ;
: BCRH = 0xD0 ;
: PFCR = 0x0F ;
: PCDDR = 0xFF ;
: P1DDR |= 0x20; /* set port1/bit 5
: for output */
: ISCRL |= 0x01; /* IRQ0 is Falling
: edge */
: IER |= 0x01; /* Enable IRQ0 */
: /* Initialise bus access for the
: UART */
: PFCR = (AE3 | AE2 | AE1 | AE0);
: PCDDR = 0xFF;
: }
: void irq0_isr(void)
: {
: PutChar('0');
: set_ccr(0);
: }
: void nmi_isr(void)
: {
: PutChar('N');
: set_ccr(0);
: }
: ///////////////////////////
: Main program just blinks LED which is
: on port 1.5.
: 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 ?
: Yash
:
: :
:
Message Thread:
![]()
« Back to thread
Evaluation Kit Support
Renesas Evaluation Boards are intended for evaluation of Renesas microprocessors only, not as development tools.