Renesas Single-Chip Microcomputer M38C89T-ADF Bedienungsanleitung Seite 27

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 138
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 26
Rev.1.00 May 22 2012
REJ09B0566
4-7
Library Reference
4.2.2 33BInterrupt Control Unit R_INTC_CreateExtInterrupt
4
Remarks (2/2) Please see the notes on callback function use
The NMI callback function should not return. It should stop operation or reset the system.
Program example
#include r_pdl_intc.h
/* Declaration of callback function */
void CallBackFunc( void );
void func( void )
{
/* Configure the IRQ0 interrupt on pin IRQ1-A */
R_INTC_CreateExtInterrupt(
PDL_INTC_IRQ1,
PDL_INTC_IRQ_FALLING | PDL_INTC_A,
7,
CallBackFunc
);
}
Seitenansicht 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 137 138

Kommentare zu diesen Handbüchern

Keine Kommentare