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

I2C- SCL & SDA pin change!!

Hi

In my custom project I'm using pins P0.14 as SCL and P0.15 as SDA . I know the pins selection #define is in twi_master_config.h. But the question is whether I have to use twi_hw_master.c or twi_hw_master.c for this pin configuration?

Do I have to do any extra configurations other than this?

Regards HPC

Parents
  • Hi,

    I found the answer myself

    According to nRf51822 Reference Manual, The different signals SCL and SDA associated with the TWI master are mapped to physical pins according to the configuration specified in the PSELSCL and PSELSDA registers respectively so the pins configured in the register are mapped to the TWI/I2C hardware inside the board

    Regards HPC

Reply
  • Hi,

    I found the answer myself

    According to nRf51822 Reference Manual, The different signals SCL and SDA associated with the TWI master are mapped to physical pins according to the configuration specified in the PSELSCL and PSELSDA registers respectively so the pins configured in the register are mapped to the TWI/I2C hardware inside the board

    Regards HPC

Children
No Data
Related