MK41Z I2C Bus Implementation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MK41Z I2C Bus Implementation

1,888件の閲覧回数
c_dawg
Contributor III

Hi!  Where can I find information and examples on how to implement a I2C bus using both a master and slave configuration?  The examples should be using the functions in Serial Manager.c file.

One issue I have in the Master configuration is the slave address appears to be locked in:

/* Defines the address of the slave when in master mode*/
#ifndef gSerialMgrIICAddress_c
#define gSerialMgrIICAddress_c (0x76)
#endif

I would like to be able to select more than one slave.

Second as the slave how is the slave address set?  I'm using the MK41Z for both.

I'm looking at this https://mcuxpresso.nxp.com/api_doc/dev/116/group__i2c.html, but I'm having a difficult time correlating the serialmanager.c and this .html.

I appreciate the help!

0 件の賞賛
返信
3 返答(返信)

1,844件の閲覧回数
c_dawg
Contributor III

Hello!  I hope you day is going well.  I appreciate the help.  Can you tell how to get the frdmkw41z SDK examples into MCUXpresso?

I have this:

c_dawg_0-1631109823777.png

c_dawg_1-1631109945373.png

 

0 件の賞賛
返信

1,843件の閲覧回数
c_dawg
Contributor III

I found my problem.  I didn't have a check mark next to the SDK_2x_FRDM-KW41Z at the bottom middle: 

c_dawg_0-1631110439967.png

The SDK_2.x_MKW41z512xxx4 doesn't have the same examples...

0 件の賞賛
返信

1,854件の閲覧回数
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Hope you are doing well. The Serial Manager is one of the Framework Services Provided by the Connectivity Framework software. You can use it to communicate with multiple serial interfaces and works with the connectivity stacks.

For more information, please check section 9 of the "Connectivity Framework Reference Manual.pdf" (Path: SDK_FRDM-KW41Z_doc.zip\docs\wireless\Common). Also, this Community post might be helpful: Enable I2C Serial Interface in Bluetooth KW41Z Heart Rate Sensor Demo Application.

And there is only one address to be used for I2C (gSerialMgrIICAddress_c).

 

The link you shared, corresponds to the SDK API. You can import the driver examples from the SDK:

Ricardo_Zamora_1-1631048119926.png

 

Best Regards,

Ricardo

0 件の賞賛
返信