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

how to set default I2C pin(SDA AND SCL) for nrf52832 using UICR customer register?

How to set  SDA= p0.25;and SCL=P0.26 default pin configration.

Parents Reply
  • The PS (V1.4, chapter 49.8.6) leaves no ambiguity here:

    "PSELSCL [0..31] Pin number configuration for TWI SCL signal".

    Any experienced programmer can calculate the decimal pin number from those simple hex values - and everybody else just uses windows calculator in programmer mode.

    SCL is  P0.26, SDA is P0.27 as shown here.

    Dunno why the values are encoded in hex in your case. Decimal values work fine here, and would match the P0.xx values from the PS.

Children
No Data
Related