nrf52832 P0.00 set as ouput but it's input value will be changed by pwm's ouput ?
nrf52832 P0.00 set as ouput but it's input value will be changed by pwm's ouput ?
Hi,
Is P0.00 controlled by the PWM peripheral? If yes, then this will override any local GPIO settings when active.
Kind regards,
Håkon
how can I check this config : P0.00 controlled by the PWM peripheral?
no matter how I use PWM0 or PWM1, or the PWM's ouput pin was others, P0.00 input value changed with the PWM output
Enter debug mode and see what the peripheral registers are set to. If you are toggling GPIOs near the P0.00, there could be cross-talk that drives that input, especially if there is no pull-resistor on P0.00. Try enabling a pull-down or pull-up resistor on P0.00 and see if that works better.
Kind regards,
Håkon
I find the reason: the PWM init .output_pins if not used must set NRF_DRV_PWM_PIN_NOT_USED