Technical information
SH7285 Group
Example of Initialization
REJ06B0860-0100/Rev.1.00 June 2009 Page 4 of 21
Start Start
End
PowerON_Reset_PC function HardwareSetup function
End
Configure the hardware
(HardwareSetup function)
Initialize sections B and R
(_INITSCT function)
Set the Vector base register (VBR)
Set the Status register (SR)
Call the main function
Execute the sleep instruction
Set the CPG
(io_set_cpg function)
Permit interrupts
Set the register bank
Start
End
Set the Frequency control register
(FRQCR)
Clear the module standby function
(STBCR3 to STBCR6)
io_set_cpg function
Set the MTU2S clock frequency control
register (MCLKCR)
Set the AD clock frequency control register
(ACLKCR)
Figure 1 Flow Charts of Functions (PowerON_Reset_PC, HardwareSetup, io_set_cpg)