Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 2nd September 2008, 05:11 PM   #1
Default Does Freescale MPC561 drive Data pins 23-0 when instructed to write a byte?

We write Embedded C for Freescale MPC561 Micrcontroller. It has 32-bit data bus. It is Big Endian. DATA0 is the most significant bit and DATA31 is the least significant bit.
This microcontroller is wired to external SRAM, Battery Backed RAM, etc.
I instruct this microcontroller to write a byte to a specific address of SRAM as follows:

static void sram_send(unsigned char volatile * const dst,
unsigned char const * src) {
...
..
/* prefetch 4 bytes at once */
long c = *++s;

/* then slam them out one at a time */
*dst = (unsigned_8 char)((c >> 24) & 0xff);
*dst = (unsigned_8 char)((c >> 16) & 0xff);
*dst = (unsigned_8 char)((c >> 8) & 0xff);
*dst = (unsigned_8 char) c;
...
}

Apparently, Microcontroller drives DATA31 to DATA24 when we instruct it to write a byte to SRAM.
DOES THE MICROCONTROLLER DRIVE DATA23 TO DATA0?

Here is the link for MPC561 Microcontroller.

http://www.freescale.com/webapp/sps/...8&fromPage=tax
naseeam is offline  
Reply

Tags
230, byte, data, drive, freescale, instructed, mpc561, pins, write

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
data write/read from EEPROM in pic16f877 flemmard Micro Controllers 4 6th September 2007 02:07 PM
Receive byte with data 0 mcs51mc Micro Controllers 2 9th September 2006 03:18 AM
i need data about floppy drive ?? hm_fa_da Micro Controllers 2 11th January 2005 12:01 PM
Write data from PIC16c57c MCU to Atmel93C46 yce_kelvin Micro Controllers 0 3rd August 2004 03:27 AM
PIC 16f876 data eeprom write SuperBud Micro Controllers 3 22nd October 2003 02:15 AM



All times are GMT. The time now is 11:19 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker