This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

D52 Starter kit pins

Hi,

I have a working project where I use PWM driver with LEDs on the development board. I make use of the d52_starterkit.h where I have the following definitions:

#define LED_A        24 //LED A on D52 Starter Kit IO Board
#define LED_B        31 //LED B on D52 Starter Kit IO Board
#define LED_C        17 //LED C on D52 Starter Kit IO Board
#define LED_D        20 //LED D on D52 Starter Kit IO Board

and

#define BSP_LED_0      LED_A
#define BSP_LED_1      LED_B
#define BSP_LED_2      LED_C
#define BSP_LED_3      LED_D

#define BSP_LED_0_MASK (1UL<<BSP_LED_0)
#define BSP_LED_1_MASK (1UL<<BSP_LED_1)
#define BSP_LED_2_MASK (1UL<<BSP_LED_2)
#define BSP_LED_3_MASK (1UL<<BSP_LED_3)

It's working fine with the correct LEDs when I start the PWM module like:

nrf_drv_pwm_config_t const nrf_drv_pwm_config =
{
    .output_pins =
    {
            BSP_LED_2 | NRF_DRV_PWM_PIN_INVERTED,   // channel 0
            NRF_DRV_PWM_PIN_NOT_USED,             	// channel 1
			BSP_LED_3 | NRF_DRV_PWM_PIN_INVERTED,   // channel 2
            NRF_DRV_PWM_PIN_NOT_USED              	// channel 3
    },
    ...

My question is: why the LED pins here are 24, 31, 17 and 20 instead of 17, 18, 19 and 20 according to the DK documentation (P0.17, P0.18, P0.19 and P0.20)?

Related