BitsIO with different port

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

BitsIO with different port

653 Views
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

Labels (1)
0 Kudos
Reply
4 Replies

469 Views
kyizawwin
Contributor II

No better way than creating bit by bit?

Bryan

0 Kudos
Reply

469 Views
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 Kudos
Reply

469 Views
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 Kudos
Reply

469 Views
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 Kudos
Reply