Assigning pins to SW_I2C component

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Assigning pins to SW_I2C component

438 Views
lmatte
Contributor II

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
**             ----------------------------------------------------

Labels (1)
0 Kudos
1 Reply

337 Views
lmatte
Contributor II

I answer myself, as I just expanded the SW_I2C bean and discovered the two (hidden) BitsIO to use as SDA/SCL.

Maybe they should be present as a tab in "Component Inspector", along with "Methods" and "Events", as they are already listed together in "Components" window -- my two cents

0 Kudos