AnsweredAssumed Answered

Assigning pins to SW_I2C component

Question asked by Luca Matteini on Jun 14, 2018

It's not clear to me how to assign pins to an SW_I2C component.

My application requires also to share one of the pins with an existing BitIO component: if I set the BitIO to "Pin Sharing Enabled" it tells me that a peripheral should initialize it: does that apply to a software component as SW_I2C too?

 

To be clear, I'm using it on a DSC 56F8037, where I'd like to have:

  • GPIOB9, SDA; secondary function (when I2C isn't used at all) as an input pin
  • GPIOB10, SCL

However as I add an SW_I2C component the bean produces always:

**     Settings    :
**         Serial Clock (SCL) pin      :
**             ----------------------------------------------------
**                Number (on package)  |    Name
**             ----------------------------------------------------
**                       5             |  GPIOA9_FAULT2_TA3_CINB1
**             ----------------------------------------------------
**
**         Serial Data (SDA) pin       :
**             ----------------------------------------------------
**                Number (on package)  |    Name
**             ----------------------------------------------------
**                       4             |  GPIOB5_TA1_FAULT3_CLKIN
**             ----------------------------------------------------

Outcomes