Hello!
In the description of the usb module, I found the registers: NRF_USBD->DPDMVALUE, NRF_USBD->TASKS_DPDMDRIVE and NRF_USBD->TASKS_DPDMNODRIVE
" State D+ and D- lines will be forced into by the DPDMDRIVE task. The DPDMNODRIVE task reverts the control of the lines to MAC IP (no forcing). "
It seems that the outputs of usb can be translated into several stable states.
I turned on the USB module, connected the VBUS, tried to set the values of the DPDMVALUE register to values 2 and 4, and then started the DPDMDRIVE task, but the state of the D + - pins did not change.
I would like to use these two lines to drive the LEDs as there are not enough I / O ports.
What I doing wrong?