Flex Bus API for reading and writing data

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

Flex Bus API for reading and writing data

跳至解决方案
3,768 次查看
chethankumar
Contributor III

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

标记 (3)
0 项奖励
回复
1 解答
2,995 次查看
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 项奖励
回复
11 回复数
2,995 次查看
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 项奖励
回复
2,995 次查看
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 项奖励
回复
2,995 次查看
apanecatl
Senior Contributor II

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

0 项奖励
回复
2,995 次查看
apanecatl
Senior Contributor II

I recommend you check AN4393, you will find it useful

2,995 次查看
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 项奖励
回复
2,996 次查看
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 项奖励
回复
2,995 次查看
chethankumar
Contributor III

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

set.

Thanks

ck

0 项奖励
回复
2,995 次查看
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 项奖励
回复
2,995 次查看
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 项奖励
回复
2,995 次查看
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 项奖励
回复
2,995 次查看
chethankumar
Contributor III

Ok thank u

0 项奖励
回复