Flex Bus API for reading and writing data

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

Flex Bus API for reading and writing data

Jump to solution
1,816 Views
chethankumar
Contributor III

Can anyone help me with the API for reading and writing data from flex bus?

Tags (3)
0 Kudos
1 Solution
1,043 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Please check Kintis 100MHz product example, which includes FlexBus example code.

The code could be downloaded from below link:

KINETIS512_SC : Kinetis family example projects.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K60_100&nodeId=01624698C9DE2DDDAF&fps...

Wish it help.

View solution in original post

0 Kudos
11 Replies
1,043 Views
chethankumar
Contributor III

Hi,

Can anyone provide source code for KITSTARTER2EVM: Sensor Toolbox Starter Kit. i.e for accelerometer, pressure sensor, proximity sensor and motion sensing flatform.


0 Kudos
1,043 Views
chethankumar
Contributor III

Hi,

Can anyone provide source code for KITSTARTER2EVM: Sensor Toolbox Starter Kit. i.e for accelerometer, pressure sensor, proximity sensor and motion sensing flatform.


0 Kudos
1,043 Views
apanecatl
Senior Contributor II

The code is written in the App Note, you only need to copy, paste and compile.

0 Kudos
1,043 Views
apanecatl
Senior Contributor II

I recommend you check AN4393, you will find it useful

1,043 Views
chethankumar
Contributor III

Hi,

Can u provide example code for read and write operation in flex bus?

Thanks

On Thu, Apr 11, 2013 at 10:49 PM, Pedro Augusto Panecatl Salas <

0 Kudos
1,044 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Please check Kintis 100MHz product example, which includes FlexBus example code.

The code could be downloaded from below link:

KINETIS512_SC : Kinetis family example projects.

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=K60_100&nodeId=01624698C9DE2DDDAF&fps...

Wish it help.

0 Kudos
1,043 Views
chethankumar
Contributor III

How to set flex bus frequency? Is there any API for it? Othervise how to

set.

Thanks

ck

0 Kudos
1,043 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

You can set Flexbus clock frequency at System Clock Divider Register 1 (SIM_CLKDIV1) [OUTDIV3] bits.

Wish it helps.

0 Kudos
1,043 Views
chethankumar
Contributor III

Hi,

My present code is working on 10MHz and i want to increase it to 30MHz. How to do that. I tried SIM_CLKDIV1 but thats not helping me. Is there any particular register where we to set frequency of a flexbus?

thanks

CK

0 Kudos
1,043 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Kumar,

Which mode of MCG module works in? Just use MCG works in PEE as an example, Kinetis 100MHz product could run core clock frequency up to 100MHz and Flexbus clock frequency up to 50MHz. When MCG module output clock at 100MHz, the System Clock Divider Register 1 (SIM_CLKDIV1) [OUTDIV3] bits set value to 0b11, which is 1/4 of MCG output clock frequency (25MHz). If you want to run Flexbus at 30MHz, the MCG output clock need to be 90MHz/60MHz/30MHz. And you need to set (SIM_CLKDIV1) [OUTDIV3] bits value to 0b10/0b01/0b00.

Wish it helps.

Best regards,

Ma Hui

0 Kudos
1,043 Views
chethankumar
Contributor III

Ok thank u

0 Kudos