Joined: 17 Aug 2005 Posts: 316 Location: Perth, Western Australia
Posted: Wed Aug 19, 2009 7:06 am
Ttelmah wrote:
What is annoying in the CCS _shift_ functions, is that they don't allow direct access to the bit shifted out.
It's the returned value!? And perfect for implementing an LFSR _________________ Andrew
John P
Joined: 17 Sep 2003 Posts: 331
Posted: Wed Aug 19, 2009 7:55 am
I'm inclined to say, if you understood the code I posted yesterday, you can easily figure out a 4-bit rotation. Generally people here are ready to help, but we want the help to be in the form of increasing your understanding, not doing all the work for you.
But if you need a hint:
You must test a different bit. And you also need to add one line, in order to leave the correct value in the register.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum