Renesas Single-Chip Microcomputer M38C89T-ADF Bedienungsanleitung Seite 52

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 138
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 51
Rev.1.00 May 22 2012
REJ09B0566
4-32
Library Reference
R_IO_PORT_Compare
4
4.2.3 34BI/O Port
Program example
/* PDL definitions */
#include r_pdl_io_port.h
/* PDL device-specific definitions */
#include r_pdl_definitions.h
void IoHandler1{}
void IoHandler2{}
void func( void )
{
/* Call function IoHandler1 if port pin PC5 is high */
R_IO_PORT_ Compare(
PDL_IO_PORT_C_5,
1,
IoHandler1
);
/* Call function IoHandler2 if port G reads as 0x5501 */
R_IO_PORT_Compare(PDL_IO_PORT_GH,
0x5501,
IoHandler2
);
}
Seitenansicht 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 137 138

Kommentare zu diesen Handbüchern

Keine Kommentare