User`s manual

RX62N Group, RX621 Group 5. Usage Examples
/* Read the direction for pin P03 */
R_IO_PORT_ReadControl(
PDL_IO_PORT_0_3,
PDL_IO_PORT_DIRECTION,
&direction
);
/* Set the lower 4 bits on port P1 to output */
R_IO_PORT_ModifyControl(
PDL_IO_PORT_1,
PDL_IO_PORT_DIRECTION | PDL_IO_PORT_OR,
0x0F
);
/* Enable the pull-up on pin PA3 */
R_IO_PORT_ModifyControl(
PDL_IO_PORT_A_3,
PDL_IO_PORT_PULL_UP | PDL_IO_PORT_OR,
1
);
}
Figure 5-2: Example of I/O Port Operations
R20UT0084EE0112 Rev.1.12 Page 5-4
July. 16, 2014