User`s manual
RX62N Group, RX621 Group 4. Library Reference
5) R_BSC_Control
Synopsis
Modify the External Bus & SDRAM Controller operation.
Prototype
bool R_BSC_Control(
uint16_t data
// Control options
);
Description
Control the BSC & SDRAM operation
[data]
Control the BSC & SDRAM operation. Only one control operation is allowed at one time.
•
Error clearing
PDL_BSC_ERROR_CLEAR
Clear the bus-error status registers.
•
Disable bus error interrupt request
PDL_BSC_DISABLE_BUSERR_IRQ
Disable bus error interrupt request.
•
SDRAM initialization
PDL_BSC_SDRAM_INITIALIZATION
Perform SDRAM initialization.
•
Set Auto-Refresh register
PDL_BSC_SDRAM_AUTO_REFRESH_ENABLE
Set Auto-Refresh register.
•
Clear Auto-Refresh register
PDL_BSC_SDRAM_AUTO_REFRESH_DISABLE
Clear Auto-Refresh register.
•
Set Self-Refresh register
PDL_BSC_SDRAM_SELF_REFRESH_ENABLE
Set Self-Refresh register.
•
Clear Self-Refresh register
PDL_BSC_SDRAM_SELF_REFRESH_DISABLE
Clear Self-Refresh register.
•
Enable SDRAM
PDL_BSC_SDRAM_ENABLE
Enable SDRAM operation.
•
Disable SDRAM
PDL_BSC_SDRAM_DISABLE
Disable SDRAM operation.
Return value
True if success; False if multiple option selection, or condition not right for register modification.
Category
Bus Controller
Reference
R_BSC_Create, R_BSC_SDRAM_CreateArea, R_BSC_Destroy
Remarks
•
This function can be called from the error handling function (see R_BSC_Create).
•
This function will clear the Interrupt Status Flag indirectly.
•
The available parameter options will be different for different pin packages. Please refer to the
hardware manual for more details.
R20UT0084EE0112 Rev.1.12 Page 4-60
July. 16, 2014