BitsIO with different port

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

BitsIO with different port

1,231件の閲覧回数
kyizawwin
Contributor II

Hi,

 

I'd like to know whether I could create data bus using BitsIO but pins will be from different port. I am trying to port my mbed program to KDS.

 

I'd like to create data bus as in the following code.

dataBus( PTA13, PTD5, PTD4, PTA12, PTA4, PTA5, PTC8, PTC9 );

 

Thanks,

 

Bryan

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,047件の閲覧回数
kyizawwin
Contributor II

No better way than creating bit by bit?

Bryan

0 件の賞賛
返信

1,047件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

No, I don't think.


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,047件の閲覧回数
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi,

BitsIO component is only for one port, for example portA. if your dataBus contains other port, for example PortC, we can't implement the data bus with one BitsIO component. we need use additional BitsIO component for it. or use BitIO for one pin of each.

then you make your own dataBus function to combine those different together.

does this answer your question?


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,047件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Bryan,

The component of "BitsIO" only can use the continual ports :

pastedImage_0.png

And does add some BitIO_LDD components  can meet your requirement ? then configure different ports .

pastedImage_1.png

Hope it helps

Alice

0 件の賞賛
返信