LX Posted April 17, 2008 Report Share Posted April 17, 2008 I need this function to masking LED shift registers. It is exactly that what I need, but I dont know how to use.In MIOS Functions Reference is this description:IN see map belowOUT 0x00 -> b'11111110' 0x01 -> b'11111101' 0x02 -> b'11111011' 0x03 -> b'11110111' 0x04 -> b'11101111' 0x05 -> b'11011111' 0x06 -> b'10111111' 0x07 -> b'01111111'Its great but which register is changed? IN:W OUT:W ?or register which by FSR pointer shows ?Thanks for replyLX Quote Link to comment Share on other sites More sharing options...
bugfight Posted April 17, 2008 Report Share Posted April 17, 2008 W movlw 0x00 ; <-input call MIOS_HLP_GetBitANDMask ;W register now contains b'11111110' Quote Link to comment Share on other sites More sharing options...
LX Posted April 17, 2008 Author Report Share Posted April 17, 2008 wow quickly reply :omany thanks, It is perfect I need exactly this :)B.R.LX 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.