Hi all,
attached an example to change the passive level of an CCU8 slice.
The CCU8_SLICE_CONFIG is used to generate a PWM output.
OUT0 (P1.0) and OUT1(P0.5) is used for this example.
The passive level is periodicaly changed in an CCU4 interrupt.
The freuqncy of the CCU4 and CCU8 is asynchron. The Digital IO (P0.2) is toggled when the passive level change request is set.
This means the passiv level changes after next Period or one Match update.
Best Regards
Eric
attached an example to change the passive level of an CCU8 slice.
The CCU8_SLICE_CONFIG is used to generate a PWM output.
OUT0 (P1.0) and OUT1(P0.5) is used for this example.
The passive level is periodicaly changed in an CCU4 interrupt.
The freuqncy of the CCU4 and CCU8 is asynchron. The Digital IO (P0.2) is toggled when the passive level change request is set.
This means the passiv level changes after next Period or one Match update.
Best Regards
Eric