please anyone answer for how to configure the digital input to make active the digital output in nrf52832? if give example program means it is much better
please anyone answer for how to configure the digital input to make active the digital output in nrf52832? if give example program means it is much better
You want one pin that is configured as input, and another pin that is configured as output ? and when the input pin goes high, you want the output pin also to be set high?
ya please suggest solution i am fresher for embedded
Hi,
Take a look at the pin-change example. It's located in the folder SDK_folder\examples\peripheral\pin_change_int
. The examples configures a input pin(button 1 in this example), and generates a interrupt when the input value is changed. The interrupt handler in_pin_handler()
is then called. In this example the output pin is toggled each time the input value is changed. Read more about the example here.