The following is a description for how to set a mode and initialize the accelerator.