How to configure Chip Select MPC555?

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

How to configure Chip Select MPC555?

2,372 次查看
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,433 次查看
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 项奖励
回复