Jump to content

Recommended Posts

Posted

Hello, I am trying to scan the ain for peak voltage before sending midi information and I am having trouble understanding these macros and instructions.Any help is appreciated

andlw.....I don't understand and

xorlw......I don't understand exclusive or

IFNEQ does this mean not equal

IFLEQ does this mean (less than equal) or (less than or equal to)

IFGEQ does this mean (greater than equal) or (greater than or equal to)

I appologize for the newbie questions, but I guess there is only one way to learn, Thanks in advance for any help.

Posted

If you are working with the 18F just print out page 217-252 of the datasheet. These are the instructions. Also print out TK's macros.h file. Then do like Driftz says and run the examples from the on paper with binary numbers. Then run some examples going through TK's macros. This should help you learn what they do.

Justin

  • 2 weeks later...
Posted

thanks you guys,

            I think I got it figured out, at least partially.

the binary thing helped me on  the (and) and (or) stuff.

And the instruction set for pic showed exactly what the macros were doing,I was just overlooking the compare instructions.

          Thanks again,much appreciation

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...