Only get peripheral data OL>
This chapter will focus on the peripheral control function. This section explains the acquisition of peripheral data following the acquisition of SMPC status in (2) and the acquisition of only peripheral data in (3).
● How to get peripheral data following SMPC status acquisition
This section describes the procedure for acquiring peripheral data following the SMPC status acquisition using the INTBACK command. Since SMPC status acquisition was explained in Chapter 2, the procedure after status data acquisition is shown below. (See Figure 3.3 and Figure 3.4)
- Continue request or break request (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt generation (SMPC)
- Peripheral data acquisition (SH-2)
If there is any remaining peripheral data, repeat from step (1)
- End of INTBACK command
● How to get peripheral data only
The procedure for acquiring only peripheral data using the INTBACK command is shown below. (See Figure 3.3 and Figure 3.4)
- Command parameter setting (SH-2)
Table 3.3 shows examples of command parameter settings.
- Issue INTBACK command (SH-2)
- Peripheral data collection, result parameter setting (SMPC)
- SMPC interrupt generation (SMPC)
- Peripheral data acquisition (SH-2)
Endback command (SMPC) when there is no remaining peripheral data UL>
- Continue request or break request (SH-2)
- When a continuation request is made, the processing from (3) is repeated.
- End INTBACK command