Problem initialization GPCM in MPC860

Status
Not open for further replies.

mohd_ind00

Junior Member level 3
Joined
Dec 17, 2004
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
269
mpc860 gpcm

Hi All,

I have some problem in initialization the gpcm module for generating CSs.
Below is brief summery of my prceedings. If any budy knows plz help.....

1. I am using Motorola MCP860 with Flash, SRAM, & other devices.
2. I am able execute the code before i initialize the gpcm module, i.e generating
CS0 to CS7 for various peripherals that i have configured.

3. the initialization for CSs is (this also has other neccessary inits)

///////////////////////////////////////////////////////////////
//-------CS0---------------

oris r3,r0,0x0000 // R3 holds the value temporarily
ori r3,r3,0x0401 // 8-bit acess and V=1,for Test-Board.

oris r5,r0,0xFF00 // R5 holds the value temporarily
ori r5,r5,0x0704
//---Write the values---
stw r3,BR0(r4)
stw r5,OR0(r4)

//----------CS1-----------

// like wise i intialize for other CSs

//----------CS7-----------

addis r3,r0,0x1100 // R3 holds the value temporarily
ori r3,r3,0x0001 // 32-bit access and V=1.

addis r5,r0,0x1200 // R5 holds the value temporarily
ori r5,r5,0x07F0 // normal CS negation,delay CS by Half clock,normal timing

//---Write the values---

stw r5,OR7(r4)
stw r3,BR7(r4)

///////////////////////////////////////////////////////////////

4. If i disable the above initialization code my application program is working (with default CS0), i don't where i am wrong


Plz reply.


regards

Imran
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…