Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Serial format

2005-03-14 by stevech

A common practice, where a bit of inefficiency is OK, is to send numeric
information larger than a byte is its HEX-ASCII or Decimal-ASCII form,
rather than, say, 4 binary digits. That way, there are no byte-order or bit
order issues for the other end of the link to have a-priori knowledge of.



-----Original Message-----
From: John Samperi [mailto:samperi@ampertronics.com.au] 
Sent: Sunday, March 13, 2005 6:45 PM
To: AVR-Chat@yahoogroups.com
Subject: Re: [AVR-Chat] Serial format


At 01:28 PM 14/03/2005, you wrote:

>HI,
>I have a question:
>when I sent a Long(4 bytes) variable from the PC to the AVR which
>byte is first? LSB ? MSB ?

You decide. The code for the AVR (or any other processor) has
to match the sender's protocol.

Regards

John Samperi

******************************************************
                         Ampertronics Pty. Ltd.
   11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
          Tel. (02) 9674-6495       Fax (02) 9674-8745
                Email: samperi@ampertronics.com.au
                  Website  http://www.ampertronics.com.au
* Electronic Design   * Custom Products   * Contract Assembly
******************************************************




 
Yahoo! Groups Links

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.