What's a Microcontroller Page 174 - ??
Rong
Posts: 25
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
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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
DTQ
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
PAR
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