Ex.
Setting of psEvent when waiting for interrupt event 0, interrupt event 1, interrupt event 50, and interrupt event 51
psEvent[0] = 4;
psEvent[1] = 0;
psEvent[2] = 1;
psEvent[3] = 50;
psEvent[4] = 51;
When event 51 occurs, 51 is returned to psSetEventNo.
The event numbers (interrupt pointer numbers) are as follows.
Event number
(Interrupt pointer number)
0 to 15
16 to 49
50 to 1023
Precautions
Do not set the clock data of a C Controller module while executing this function. Otherwise, this function does not operate
properly. (This function may not be completed.)
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant function
• Page 146 CCPU_WaitEvent
Interrupt factor
Interrupt by module
Reserved
Interrupt by module
Notes
Set with CW Configurator
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
151