Renesas Single-Chip Microcomputer M38C89T-ADF Bedienungsanleitung Seite 34

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 138
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 33
Rev.1.00 May 22 2012
REJ09B0566
4-14
Library Reference
4
4.2.2 33BInterrupt Control Unit
R_INTC_Read
5) R_INTC_Read
Synopsis
Read an interrupt register.
Prototype bool R_INTC_Read(
uint8_t data1, // Register selection
uint8_t data2, // Register number
uint8_t * data3 // Data storage location
);
Description
Read an interrupt register and store the value.
[data1]
The register to be read
PDL_INTC_REG_ICR or
PDL_INTC_REG_IPR or
PDL_INTC_REG_IRQRR or
PDL_INTC_REG_PIRR or
PDL_INTC_REG_PINTER or
PDL_INTC_REG_IBNR or
PDL_INTC_REG_IBCR
Select the current CPU interrupt priority level or
IRQ Control Register
IRQ Priority Register
IRQ Interrupt Request Register
PINT Interrupt Enable Register
PINT Interrupt Request Register
Bank Control Register
Bank Number Register
[data2]
The register number.
ICR: Between 0 and 3
IPR: Between 0 and 22 (16h).
IRQRR: Ignored.
PIRR: Ignored.
PINTER: Ignored.
IBCR: Ignored.
IBCR: Ignored.
[data3]
The location where the registers value shall be stored.
Return value
True.
Category
Interrupt control
Reference
R_INTC_Write, R_INTC_Modify
Remarks
None.
Program example
/* PDL definitions */
#include r_pdl_intc.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
void func( void )
{
uint8_t ipl;
/* Read the IPL bits */
R_INTC_Read(
PDL_INTC_REG_IPL,
0,
&ipl
);
}
Seitenansicht 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 137 138

Kommentare zu diesen Handbüchern

Keine Kommentare