30.5.8.3 Parameter change request and change completion acknowledgment - PWM Output (LT Series)

Specify the output frequency and the ON duty value under "Request special I/O parameter change."

Setup Process

To set the output frequency and the ON duty value, change the parameter under "Request special I/O parameter change" in the system variable (#L_ExIOSpParmChg).

Then, acknowledge the completion under [Special I/O parameter change completed]. Bit positions of the request flag and completed flag differ depending on the CH to which you allocate PWM output.

  1. Change the parameter under "Request special I/O parameter change" (#L_ExIOSpParmChg).
    #L_ExIOSpParmChg

    Request Special I/O Parameter Change

    This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to request the special I/O parameter change.

    a: CH1 special I/O parameter change request
    c: CH2 special I/O parameter change request
    e: CH3 special I/O parameter change request
    g: CH4 special I/O parameter change request

    You can also read the previous settings using the Operation bits below.

    b: CH1 special I/O parameter read request
    d: CH2 special I/O parameter read request
    f: CH3 special I/O parameter read request
    h: CH4 special I/O parameter read request

  2. Acknowledge the completion in [Special I/O Parameter Change Completed]. Details of variables differ depending on the CH to which you allocate the counter, as in the following figure.

    Request Special I/O Parameter Change

    a: CH1 special I/O parameter change complete
    c: CH2 special I/O parameter change complete
    e: CH3 special I/O parameter change complete
    g: CH4 special I/O parameter change complete

    You can also read the previous settings using the watch bits below.

    b: CH1 special I/O parameter read complete
    d: CH2 special I/O parameter read complete
    f: CH3 special I/O parameter read complete
    h: CH4 special I/O parameter read complete

  3. The figure below shows the flag timing chart for the special I/O parameter change request and completion.

    1) Set the output frequency and the ON duty value.
    2) Turn ON the request flag for the special I/O parameter change to change the parameter.
    3) Once the parameter is changed, the completion flag of the special I/O parameter change turns ON.
    4) Acknowledge that the completion flag of the special I/O parameter change is ON and turn OFF the request flag for the special I/O parameter change.
    5) When the request flag for the special I/O parameter is recognized as OFF, the completion flag of the special I/O parameter change turns OFF.