Return to previous page Return to menu Go to next page

Chapter 3 Peripheral Control

3.1 Peripheral control mode

SH-2 can control peripherals via SMPC. There are the following two peripheral control methods.
  1. SMPC control mode
  2. SH-2 direct mode

SMPC control mode

● Block diagram

Figure 3.1 shows a block diagram of the SMPC control mode. SMPC control mode is activated by setting a command parameter in IREG of the SH-2 interface register and issuing an INTBACK command. The peripheral data collection result is output to OREG as a result parameter.

Figure 3.1 Block diagram of SMPC control mode

● Features

This is an effective way to minimize the overhead for accessing peripherals within an application.

● Settings for using SMPC control mode

Figure 3.2 shows a setting example for using the SMPC control mode.
Figure 3.2 shows an example of setting for port 1. Mode settings can be set independently for each port.


Return to previous page Return to menu Go to next page