BitsIO with different port

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

BitsIO with different port

1,233 次查看
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,049 次查看
kyizawwin
Contributor II

No better way than creating bit by bit?

Bryan

0 项奖励
回复

1,049 次查看
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,049 次查看
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,049 次查看
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 项奖励
回复