Shop OBEX P1 Docs P2 Docs Learn Events
What's a Microcontroller Page 174 - ?? — Parallax Forums

What's a Microcontroller Page 174 - ??

RongRong Posts: 25
edited 2005-03-10 02:26 in Learn with BlocklyProp
Hi.· I am new to this forum, so here goes my first question.
On page 174 of the "What's a Microcontroller?" book, I don't understand something.
In the "i" box, it says;

"The command HIGH 15 is really the same as OUT15 = 1 followed by DIR15 = 1.
"Likewise, the command LOW 15 is the same as OUT15 = 1 followed by DIR15 =1.· If you want to change P15 back to an input, use DIR15 = 0."

Am I missing something? Is this right?
Or is this a mistake in the book?
Both HIGH 15 and LOW 15 are the same as OUT15 =1 followed by DIR15 = 1?· I would have thought that LOW 15 is the same as OUT15 = 0 followed by DIR15 = 1.

Ron

Comments

  • kb2hapkb2hap Posts: 218
    edited 2005-03-09 22:47
    what version a wam do you have I dont see that on page 174

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    DTQ
  • Beau SchwabeBeau Schwabe Posts: 6,547
    edited 2005-03-09 22:51
    I don't have to book right here in front of me, but yes, from your description this would be a typo.

    Looking at the PDF version
    on page 178 This looks like a typo to me.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • PARPAR Posts: 285
    edited 2005-03-10 00:10
    RonG was presumably looking at What's a Microcontroller, vers 2.1 (page 174), and Beau Schwabe was looking at vers 2.2 (page 178).

    PAR
  • RongRong Posts: 25
    edited 2005-03-10 01:27
    I thought so. Thanks.
    Ron
  • edited 2005-03-10 02:26
    Ron,

    Yes, it's a typo; thanks for pointing it out.

    We'll add it to our list for the next revision.

    Oh, and yes, your assumption that LOW 15 is equivalent to OUT15 = 0 and DIR15 = 1 is correct.

    Regards, Andy
Sign In or Register to comment.