linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* rs232 endianness on PPC
@ 2006-06-30 19:10 tauanna
  2006-07-01  8:53 ` White
  0 siblings, 1 reply; 5+ messages in thread
From: tauanna @ 2006-06-30 19:10 UTC (permalink / raw)
  To: linuxppc-embedded

Hi,

when I write a byte on the SMC1 (MPC875) serial device (let us say 
0x11) what should I expect on the output pin? First a 0 then 0, 0, 1, 
0, 0, 0, 1 or the opposite. Is it different on a little endian CPU?

Bye,
Antonio.




		
Hai voglia di fare un viaggio, ma non sai dove andare?
Scegli una delle nostre offerte HOTEL IN ITALIA E IN EUROPA da 50 euro.
Prenota subito su Expedia.it e... buona vacanza!

http://expedia.viaggi.tiscali.it/default.aspx?eapid=330-8 
 
	

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: rs232 endianness on PPC
@ 2006-07-02 10:10 Antonio Di Bacco
  2006-07-06 15:31 ` Walter L. Wimer III
  0 siblings, 1 reply; 5+ messages in thread
From: Antonio Di Bacco @ 2006-07-02 10:10 UTC (permalink / raw)
  To: linuxppc-embedded

PowerPC is neither byte swapped nor bit swapped.
When transmitting on a network card the most significant byte is transmitted 
first, and, inside the byte, the most significant bit is sent first.
RS232 is an exception: LSB is sent first.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-07-06 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-30 19:10 rs232 endianness on PPC tauanna
2006-07-01  8:53 ` White
2006-07-01 15:56   ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2006-07-02 10:10 Antonio Di Bacco
2006-07-06 15:31 ` Walter L. Wimer III

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).