Posted by Yash --Previous Message--
![]()
on February 3, 2003, 10:05:33, in reply to "Problem using IRQ0 on H8S/2623 EVB "
203.124.158.130
Hi,
Update on this.
When I use HDI for debugging this, the code works very well.
Does it mean that I am missing some initialisation or something related to Interrupts ?
Thanks in advance.
Yash
: 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.