This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re :Write to Data bus in MPC565
- From: "Praveen Prabhakar , Bangalore" <pprabhakar at hcl dot in>
- To: <ecos-discuss at ecos dot sourceware dot org>, <ecos-discuss at ecos dot sourceware dot org>
- Date: Tue, 9 May 2006 10:53:04 +0530
- Subject: [ECOS] Re :Write to Data bus in MPC565
Dear Roman ,
Yes you are Right. i have set an External bus .
i will tell how i am doing it .plz tell me if it is wrong .
Step 1 : Setting "SC" bit to "00" in Register SIUMCR.
Single-chip select. This field configures the functionality of the address and data buses.
Changing the SC field while external accesses are performed is not supported. Refer to below table 6-10
Table 6-10. Single-Chip Select Field Pin Configuration
-------------------------------------------------------------------------------------------------------------------------
SC Pin Function
--------------------------------------------------- ------------------------------------------------------------------------
DATA[0:15]/SGPIOD[0:15] DATA[16:31]/SGPIOD[16:31] ADDR[8:31]/SGPIOA[8:31]
---------------------------------------------------------------------------------------------------------------------------
00(multiple chip, 32-bit port size) DATA[0:15] DATA[16:31] ADDR[8:31]
01 (multiple chip, 16-bit port size DATA[0:15] SPGIOD[16:31] ADDR[8:31]
10 (single-chip with address debugging) SPGIOD[0:15] SPGIOD[16:31] ADDR[8:31]
11 (single-chip) SPGIOD[0:15] SPGIOD[16:31] SPGIOA[8:31]
--------------------------------------------------------------------------------------------------------------------------
Step 2: USIU General-Purpose I/O Data Register SGPIO.
i will do a structure mapping for the SGPIO register and then i will use as a data
If i set the data to this Register SGPIO like the below is it fine ?
USIU.SGPIOCR.B.SDDRC = 0x0; /* Input */
In my case i have MPC565 data bus connected to tranceiver .
So i am following the above Steps . Plz tell me if this is not correct ?
Thanks
Praveen
-----Original Message-----
From: Rycerz Roman-G11565 [mailto:roman.rycerz@motorola.com]
Sent: Thursday, May 04, 2006 9:41 PM
To: Praveen Prabhakar , Bangalore; ecos-discuss@ecos.sourceware.org
Subject: RE: [ECOS] Write to Data bus in MPC565
Praven
I'm assuming you have it setup for an external data bus.... To
get it go outside
You have to have a CS configured and then just write data to and
address in that range
Roman
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Praveen
Prabhakar, Bangalore
Sent: Thursday, May 04, 2006 5:08 AM
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] Write to Data bus in MPC565
Hello All ,
i wanted to write data into Data bus of MPC565.
For this i have set 'SC' bit in SIUMCR Register which will set
the databus as data or Gpio
i have set this as data .
Next how to write into the data bus ?
Thanks
Praveen
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss