I try to invert the Signal on a PIN of the PWM module 0. It sould give out the inverted Signal of another PIN from the same PWM module.
I tried it like the code below shows. Why does NRF_DRC_PWM_PIN_INVERTED doesn't have any influence?
nrf_drv_pwm_config_t const config0 =
{
.output_pins = {
OUTPUT_PIN | NRF_DRV_PWM_PIN_INVERTED, // channel 0 -- NRF_DRV_PWM_PIN_INVERTED seems to have no influence ?!!
OUTPUT_PIN_inv , // channel 1
// BSP_LED_2 | NRF_DRV_PWM_PIN_INVERTED, // channel 2
// BSP_LED_3 | NRF_DRV_PWM_PIN_INVERTED // channel 3
},
.irq_priority = APP_IRQ_PRIORITY_LOWEST,
.base_clock = NRF_PWM_CLK_16MHz,
.count_mode = NRF_PWM_MODE_UP,
.top_value = TOPVAL,
.load_mode = NRF_PWM_LOAD_COMMON,
.step_mode = NRF_PWM_STEP_AUTO
};
nrf_drv_pwm_init(&m_pwm0, &config0, &pwm_handler);
Thanks for replying