I want to use EMIOS and PWM for SPC56EC74. When debugging the code for Channel 0, I can see that channel 9 is being initialized instead.
Looking into the xpc56ec.h file, EMIOS section, the UCDIS Disable Channel Register is being described starting at (Base+0x000F), whereas in the datasheet it is said to be at (Base+0x000C).
Is the xpc56ec.h header not compatible with SPC56EC74?
pwm_lld_start (&PWMD1, &pwm_config_pwmcfg);
pwm_lld_enable_channel (&PWMD1, 0, PWM_PERCENTAGE_TO_WIDTH(&PWMD1,5000));
The header in question is taken from the following plugin: