2rlp Posted May 19, 2011 Report Share Posted May 19, 2011 Hi, As per your HELP Section on TEST Bit, if I need to test bit no. 10 of ML2, then I need to enter a value of 10 in the Offset of the function. However, I find that in order to test bit no. 10 of ML2, I have to enter a value of 22. I am using a V130 on an application where I shift around 200 bits to the right & need to check any bit in the stream. Hence need to enter a variable in the Offset of TEST bit function. Is the HELP wrong, or am I doing something wrong. Ron Quote Link to comment Share on other sites More sharing options...
Emil Posted May 19, 2011 Report Share Posted May 19, 2011 Hi Ron, You need ot count from LSB (right). For example, if in ther register (MI, ML, DW...) you have value "1", this means that bit with offset 0 and only bit with offset 0 is active. 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.
Note: Your post will require moderator approval before it will be visible.