SMPC functions can be classified into system management and peripheral control systems.
● System management system
The system management system can reset hardware (CPU, sound, etc.), set and get the clock.
● Peripheral control system
The peripheral control system automatically collects data from the peripheral (peripheral device) connected to the peripheral I / F and returns it to the main CPU.
3.2 Processing overview
The interface between SMPC and main CPU is handshaking. To execute a function (command), write the necessary parameters to the SMPC register, and then write the command. When a command is written, SMPC executes processing according to the command. There are intebacks and non-intebacks for processing.
● Into Back
Intback is a process in which a result is returned by an interrupt (SMPC interrupt) after passing a command to SMPC. SMPC interrupt processing and registration are performed inside the library. Also, other interrupts are prohibited during SMPC interrupt processing. The command issuance timing varies depending on the function.
Non-intoback
Non-intoback is a process that simply passes a command to SMPC. The library function waits for SMPC processing to end. (Refer to the SMPC User's Manual for details on each SMPC processing time)
Functions that can be used in this process are functions that do not need to receive results after passing a command (such as reset).
The processing systems that can be used for each function are shown below.