I2C bit banging component

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

I2C bit banging component

ソリューションへジャンプ
895件の閲覧回数
Kewal
Contributor IV

Hi

 

There is a GenericSWI2C component available for bit banging but it is not compatible with KSDK 1.2.0 and KDS 3.0.

 

So is there any such component available for use with processor expert on KDS 3.0.

ラベル(1)
タグ(1)
0 件の賞賛
1 解決策
706件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Kewal,

you could create a project for Processor Expert without the SDK, then add the GenericSWI2C component and copy over the sources.

In the .c file there are the following macros

#define SCL_SetDir(dir) SCL1_SetDir(dir)

#define SCL_ClrVal()    SCL1_ClrVal()

#define SCL_GetVal()    SCL1_GetVal()

#define SDA_SetDir(dir) SDA1_SetDir(dir)

#define SDA_ClrVal()    SDA1_ClrVal()

#define SDA_GetVal()    SDA1_GetVal()

you would need to call the SDK functions.

I hope this helps,

Erich

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
707件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Kewal,

you could create a project for Processor Expert without the SDK, then add the GenericSWI2C component and copy over the sources.

In the .c file there are the following macros

#define SCL_SetDir(dir) SCL1_SetDir(dir)

#define SCL_ClrVal()    SCL1_ClrVal()

#define SCL_GetVal()    SCL1_GetVal()

#define SDA_SetDir(dir) SDA1_SetDir(dir)

#define SDA_ClrVal()    SDA1_ClrVal()

#define SDA_GetVal()    SDA1_GetVal()

you would need to call the SDK functions.

I hope this helps,

Erich

0 件の賞賛
707件の閲覧回数
Kewal
Contributor IV

Anyways I achieved it through code warrior ..

thanks.

0 件の賞賛
707件の閲覧回数
Kewal
Contributor IV

Yeah, actually I tried before posting this question. I got an error with below description

Error during adding referenced component/template "Unsupported/Wait-UNSUPPORTED".

Component is either missing or corrupted.

It was just a project with processor expert and KSDK option as none. Also tried with codewarrior and found same issue.

Do i need to add any other component?

GenericSWI2C.JPG

0 件の賞賛