User`s manual
RX62N Group, RX621 Group 4. Library Reference
Remarks
•
Multiple chip select signals can be output from one I/O pin. The following diagram shows the
CSn pins for 176-pin packages. Please refer hardware manual for other pin packages.
Pin CS0# CS1# CS2# CS3# CS4# CS5# CS6# CS7#
P24 CS4C
P25 CS5C
P26 CS6C
P27 CS7C
P60 CS0A
P61 CS1A
P62 CS2A
P63 CS3A
P64 CS4A
P65 CS5A
P66 CS6A
P67 CS7A
P71 CS1B
P72 CS2B
P73 CS3B
P74 CS4B
P75 CS5B
P76 CS6B
P77 CS7B
PC4 CS3C
PC5 CS2C
PC6 CS1C
PC7 CS0B
•
Port Function Control registers PF1CSS to PF6BUS are modified by this function.
•
The external bus is enabled by this function.
•
Call this function before using function R_BSC_CreateArea.
•
A callback function is executed by the interrupt processing function. This means that no other
interrupt can be processed until the callback function has completed.
•
For setting the SDCLK pin output, please use the R_CGC_Set function.
•
For the 85-pin package, there are no CS0 to CS3 areas.
•
The available parameter options will be different for different pin packages. Please refer to the
hardware manual for more details.
Program example
/* RPDL definitions */
#include "r_pdl_bsc.h"
/* RPDL device-specific definitions */
#include "r_pdl_definitions.h"
/* Bus error handler */
void BusErrorFunc(void){}
void func(void)
{
/* Select CS2-B, all address signals, enable interrupts and register the
callback function */
R_BSC_Create(
PDL_BSC_CS2_B | PDL_BSC_WAIT_NOT_USED,
0,
PDL_BSC_ERROR_ILLEGAL_ADDRESS_ENABLE | \
PDL_BSC_ERROR_TIME_OUT_ENABLE,
BusErrorFunc,
5
);
}
R20UT0084EE0112 Rev.1.12 Page 4-53
July. 16, 2014