How to configure Chip Select MPC555?

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

How to configure Chip Select MPC555?

1,421 Views
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?
 
Labels (1)
0 Kudos
1 Reply

482 Views
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 Kudos