Searching \ for '[PIC]PIC16F877 syntax: What is HIGH and LOW?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=16F
Search entire site for: 'PIC16F877 syntax: What is HIGH and LOW?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]PIC16F877 syntax: What is HIGH and LOW?'
2005\09\22@180040 by Wallace Yang

picon face
Dear Piclist subscribers:

Consider the following code:

Table3
 movwf Temp
 movlw HIGH Table3_Start
 movwf PCLATH
 movf  Temp, w
 addlw LOW Table3_Start
 btfsc STATUS, C
  incf PCLATH, f
 movwf PCL
Table3_Start
 dt    "tab3",0

What is HIGH and LOW?  I can't find any description of
them in the PIC16F87X data sheet.  Are they described
in other documents at the Microchip website?

Thank you to all who reply.

Wallace

Electrical Engineer
U of T new grad

2005\09\22@193041 by olin piclist

face picon face
Wallace Yang wrote:
> What is HIGH and LOW?

Assembler operators.

> I can't find any description of
> them in the PIC16F87X data sheet.  Are they described
> in other documents at the Microchip website?

Yes.  MPASM User's Guide with MPLINK and MPLIB.

*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

2005\09\22@194120 by Jinx

face picon face
>   movlw HIGH Table3_Start

>   addlw LOW Table3_Start

> What is HIGH and LOW?  I can't find any description of
> them in the PIC16F87X data sheet.  Are they described
> in other documents at the Microchip website?

They are MPASM directives to extract the two bytes from
the 16-bit number Table3_Start. Look in

Help / Topics / MPASM Assembler

2005\09\22@195054 by John J. McDonough

flavicon
face
----- Original Message -----
From: "Olin Lathrop" <spam_OUTolin_piclistTakeThisOuTspamembedinc.com>
Subject: Re: [PIC]PIC16F877 syntax: What is HIGH and LOW?


{Quote hidden}

The MPASM User Guide is an important document to have.  The datasheets
detail the assembler instructions, but there are a boatload of directives
and operators that aren't found in the datasheet.

Another surprisingly good place is the help file.   In particular, browse
through the "Assmebler Syntax and Operation"  and the "Directives" sections.
These fill in most of what's missing for the datasheet.  The descriptions
are somewhat terse, but often it's quicker to find things there.  The high,
low and upper operators each occupy one line of a table, with a four word
description, so it's not exactly tutorial.  But often it is enough to tell
you what you want to know.

--McD

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...