Pocket Watch
Archiver
Posts: 46,084
There is no problem to use the equivalent decimal numbers for programming.
Aggelos Mallios
=====================
Original Message
From: andy shor [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fmeW4mHn-Z9e6ikDnDgfxr-saos5uUYvagYL1mU-5HJH2ZC9gslnlQA3x7FGMIBZtPs1fMVnnjY8mg]ashor2000@y...[/url
Sent: Wednesday, September 13, 2000 5:55 AM
To: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] Pocket Watch
Good Day:
Does anyone know if the Solutions Cubed Pocket Watch B
needs to be programed in Hex? Their programing
examples show Hex being used which is a lot harder for
me......
What would be the advantage of Hex?
Thanks,
Andy Shor
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
Aggelos Mallios
=====================
Original Message
From: andy shor [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fmeW4mHn-Z9e6ikDnDgfxr-saos5uUYvagYL1mU-5HJH2ZC9gslnlQA3x7FGMIBZtPs1fMVnnjY8mg]ashor2000@y...[/url
Sent: Wednesday, September 13, 2000 5:55 AM
To: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] Pocket Watch
Good Day:
Does anyone know if the Solutions Cubed Pocket Watch B
needs to be programed in Hex? Their programing
examples show Hex being used which is a lot harder for
me......
What would be the advantage of Hex?
Thanks,
Andy Shor
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
Comments
Does anyone know if the Solutions Cubed Pocket Watch B
needs to be programed in Hex? Their programing
examples show Hex being used which is a lot harder for
me......
What would be the advantage of Hex?
Thanks,
Andy Shor
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
Two thoughts regarding Hex.
Bytes represented in Hex are frequently written using two characters, even
when the leading digit is a 0. This makes multiple lines of hex values
easier to read since every value is always two ASCII digits, and therefore
the values line up better than decimal (values having anywhere from 1 to 3
digits).
Since much of what we do with microcontrollers is bit-oriented, knowing a
number's binary representation is frequently useful. Once you get used to
working with it, looking at Hex, it's easier to visualize the binary
equivalent of the value than decimal.
-- Mitch
Thanks for your time and the info. I'm much relieved!
Andy
--- Aggelos Mallios <amallios@p...> wrote:
> There is no problem to use the equivalent decimal
> numbers for programming.
>
> Aggelos Mallios
> =====================
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
I guess another advantage is Hex takes up less space
in the larger numbers?
--- "Mitchell D. Miller" <mdmiller2@h...> wrote:
> > What would be the advantage of Hex?
>
> Two thoughts regarding Hex.
>
> Bytes represented in Hex are frequently written
> using two characters, even
> when the leading digit is a 0. This makes multiple
> lines of hex values
> easier to read since every value is always two ASCII
> digits, and therefore
> the values line up better than decimal (values
> having anywhere from 1 to 3
> digits).
>
> Since much of what we do with microcontrollers is
> bit-oriented, knowing a
> number's binary representation is frequently useful.
> Once you get used to
> working with it, looking at Hex, it's easier to
> visualize the binary
> equivalent of the value than decimal.
>
> -- Mitch
>
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
pbasic interpreter treats 127 and %01111111 the same way.
On Thu, 14 Sep 2000, andy shor wrote:
> Good Day:
> I guess another advantage is Hex takes up less space
> in the larger numbers?
>
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
format could be three digits, vs. the hex representation always being two.
-- Mitch
Original Message
From: "Sean T. Lamont .lost." <lamont@a...>
To: <basicstamps@egroups.com>
Sent: Friday, September 15, 2000 1:41 AM
Subject: Re: [noparse][[/noparse]basicstamps] Pocket Watch
>
> I expect not. Usually they're both reduced into binary form ; I expect the
> pbasic interpreter treats 127 and %01111111 the same way.
>
> On Thu, 14 Sep 2000, andy shor wrote:
>
> > Good Day:
> > I guess another advantage is Hex takes up less space
> > in the larger numbers?
> >
>
> Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
> Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
> email: lamont@a... WWW: http://www.serv.net
> "...There's no moral, it's just a lot of stuff that happens". - H. Simpson
>
>
>
>
>
> I think what he meant was the ASCII representation of the number in decimal
> format could be three digits, vs. the hex representation always being two.
Well that's certainly true. [noparse]:)[/noparse]
Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
email: lamont@a... WWW: http://www.serv.net
"...There's no moral, it's just a lot of stuff that happens". - H. Simpson