Renesas TM V.3.20A Specifikace Strana 341

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 762
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 340
Renesas Technology, Tools FAQs
Last Updated: March 20, 2001
Document Number: 01051191_e
Q.
When using the MR308 OS-independent interrupt and enabling the multiple interrupts option, I enable it with "#pragma
INTERRUPT /E".
Is there a similar option for enabling multiple interrupts when using in the OS-dependent interrupt? I want to use the C language to
write the source file.
A.
MR308 is not equipped with a function such as "#pragma", which enables multiple interrupts for the OS-dependent interrupt. Use
the following to describe the area in which you want to enable multiple interrupts.
#include <mr308.h>
#include "id.h"
void inthand (void) /* OS-dependent interrupt handler */
{
/* multiple-interrupt inhibited area */
asm(" FSET I");
/* multiple-interrupt enabled area */
asm(" FCLR I"); <--- delete if there are no interrupt-inhibit
areas after this point.
/* multiple-interrupt inhibited area */
}
Cyclic handlers and alarm handlers are in the multiple-interrupt enabled state.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Zobrazit stránku 340
1 2 ... 336 337 338 339 340 341 342 343 344 345 346 ... 761 762

Komentáře k této Příručce

Žádné komentáře