Switching mini-flexbus modes during runtime on M5225x, M52259

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

Switching mini-flexbus modes during runtime on M5225x, M52259

跳至解决方案
2,995 次查看
juanee
Contributor III

Hello everyone,

 

I am new to the M52259 Coldfire and I have read the AN3854 Mini-FlexBus.pdf (Rev. 0, 04/2009) application note concerning this topic.

 

My question... am I able to switch mini-flexbus modes (non-multiplexed to multiplexed and back again) at any time during runtime?

 

The reason:  I wanted to control an asyncronous RAM (that has a 16 bit data bus) and a Flash NAND (that has an 8 bit data bus), but I wanted to have 16 bit data access to the RAM).

 

thanks,

juanee

标签 (1)
0 项奖励
回复
1 解答
1,152 次查看
juanee
Contributor III

"Am I able to switch back and forth between the mini-flexbus mode and general purpose IO (PTE, PTF PTG, etc) during runtime?"

 

To answer my own question, the answer is YES.  I have an external memory on the mini-flexbus that also needs the PTE, PTF ports as GPIO (to interface to another device).

 

Juan

 

Codewarrior 10 Special Edition

Windows XP Pro

MQX 3.6.2

PEMicro USB ColdFire Multilink.

Custom Target based on Coldfire MCF52259.

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,152 次查看
usingbothmuxand
Contributor II

Hi everybody,

           Anybody plz reply me.

Is FB_ALE/FB_CS1_BAR may work as FB_ALE in mux mode and FB_CS1_BAR in non-mux mode for different chip selects at run time? Bcs i need minimum two chip selects in my system...

Is My design right?

 

Thanx...

0 项奖励
回复
1,152 次查看
scifi
Senior Contributor I

Hi Juanee,

 

Have a look at register definitions for CSCR0 and CSCR1. You will find that each chip select has independently configurable multiplexed mode and bus width.

 

Regards,

- mike

 

0 项奖励
回复
1,152 次查看
juanee
Contributor III

Hello Mike,

 

I read what you suggested and I understand better now how it works.  Thanks.

 

But, another question though...

 

Am I able to switch back and forth between the mini-flexbus mode and general purpose IO (PTE, PTF PTG, etc) during runtime?

 

Thanks,

juanee

 

0 项奖励
回复
1,153 次查看
juanee
Contributor III

"Am I able to switch back and forth between the mini-flexbus mode and general purpose IO (PTE, PTF PTG, etc) during runtime?"

 

To answer my own question, the answer is YES.  I have an external memory on the mini-flexbus that also needs the PTE, PTF ports as GPIO (to interface to another device).

 

Juan

 

Codewarrior 10 Special Edition

Windows XP Pro

MQX 3.6.2

PEMicro USB ColdFire Multilink.

Custom Target based on Coldfire MCF52259.

0 项奖励
回复
1,152 次查看
scifi
Senior Contributor I

juanee wrote:
Am I able to switch back and forth between the mini-flexbus mode and general purpose IO (PTE, PTF PTG, etc) during runtime?

I think you should be able to do this. I haven't tried this myself, though...

 

0 项奖励
回复
1,152 次查看
usingbothmuxand
Contributor II

I am facing same problem with this device.

my RAM is accessed as x8 bit and EoPDH device as x16 bit peripheral.

Is it possible to use FB_ALE/FB_CS1_BAR as FB_ALE in multiplex mode and as FB_CS1_BAR in non-multiplex while external devides are selecting by CS0 and CS1 signal?

 

See my block diagram...for that I have attached it.

FB_ALE/FB_CS1_BAR is routed to RAM and x16 latch by FB_CS0_BAR.

conditions is:::

 

if(FB_CS0_BAR==0)

            FB_ALE <= FB_ALE/FB_CS1_BAR       // to x16 latch

else

            FB_CS1_BAR <= FB_ALE/FB_CS1_BAR     // to RAM

 

Thanx...

0 项奖励
回复