
4BUsage Examples
5.3 23BBus Controller
Rev.1.00 May 22 2012
REJ09B0566
R_CPG_Set(18E6, 144E6, 36E6, PDL_CPG_CK_2, PDL_CPG_OUT_CK_01);
/* Try external writes */
cs0_location_16_value = *cs0_location_16;
*cs3_location_16 = 0x55AAu;
/* Read the status flags */
R_BSC_GetStatus(&status);
R_BSC_Control(0);
while(1);
}
void BSC_error_handler(void)
{
/* Invert the port pin */
R_IO_PORT_Modify(PDL_IO_PORT_J_6,0,PDL_IO_PORT_XOR);
/* Disable the refresh Interrupt */
R_BSC_Destroy(3);
}
Figure 5-3 Example of Bus Controller use
Commenti su questo manuale