drumwide Posted October 11, 2003 Report Share Posted October 11, 2003 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 appreciatedandlw.....I don't understand andxorlw......I don't understand exclusive orIFNEQ does this mean not equalIFLEQ 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. Quote Link to comment Share on other sites More sharing options...
DriftZ Posted October 11, 2003 Report Share Posted October 11, 2003 Hi, not really PIC asm, but the Bitwise logical operations are pretty good explained on this page:http://atrevida.comprenica.com/atrtut02.htmlgreetz(no idea wat the IFLEQ stuff is, sorry)oh BTW, in the PIC datasheet; instructions section; if you replace the hex numbers in the examples with binary numbers, it shows more clear :) Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted October 11, 2003 Report Share Posted October 11, 2003 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 Quote Link to comment Share on other sites More sharing options...
drumwide Posted October 21, 2003 Author Report Share Posted October 21, 2003 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.