How to configure Chip Select MPC555?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to configure Chip Select MPC555?

2,429件の閲覧回数
prezesjasko
Contributor I
Hello

I've got a problem with configure USIU in MPC555. I'm using Phytec phyCORE-MPC555 module. There are two free chip selects (CS2, CS3). I'd like use one.
My configuration is following:

    USIU.BR2.B.BA=0x0200;
    USIU.BR2.B.PS=1;
    USIU.BR2.B.V=1;
    USIU.OR2.B.AM=0xff00;

and i try read from addres:

#define TEST (*(volatile unsigned char *)( 0x02000000))

tmp=TEST;

Unfortunately it doesn't work. Codewarrior show message box (Check Mashine Exception 0x200) when I try read this addres.
Thank you for Your help. I'm using this module in my final thesis. Could You send me any example how to configure chip select?
 
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,490件の閲覧回数
prezesjasko
Contributor I
OK I'm answears my self.
 
When i'm set
USIU.BR2.B.BA=0x0200;
the base address wasn't 0200 but 0100 because Base Address is 17 bits field not 16.
 
0 件の賞賛
返信