Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/14/06 23:17
Read: times


 
#112188 - homework
Responding to: ???'s previous message
This is the result of somebody not doing his homework properly.

The LFSR outcome is to be used after a full shuffle!!! I.e. if you want 16 bits, you must do 16 "rotations" before you produce an output.
I hope you verified this arrangement produces a full 65536 run length. However, for 16-bit output I'd recommend you at least a 32-bit LFSR. Search the net for recommended configurations, or pester Jez to tell you some :-)

You might want to keep the shift register in the internal memory and copy only the result to the ports.

Other remarks:

  • read Jon's "noob" document (btw., english speakers, what the #$%^ is "noob"?), mind the <pre> and </pre> tags and the remark on posting WORKING code (yours now has two errors which prevents assembling).
  • I don't believe your assembler doesn't support cpl c; but you certainly will find some nicer way for the xor. The presence of bit manipulation instructions does not force you to use them.
  • calculate the delay - it's not 250ms nor 500ms as your comment says. This is your homework for today :-)


Jan Waclawek

List of 48 messages in thread
TopicAuthorDate
LFSR The unknown            01/01/70 00:00      
   As in a Random number generator?            01/01/70 00:00      
      Fine Tune            01/01/70 00:00      
         Did you Google?            01/01/70 00:00      
            Yes I did Google            01/01/70 00:00      
               OK            01/01/70 00:00      
               The structure of an lfsr            01/01/70 00:00      
   Random numbers            01/01/70 00:00      
   Look on Keil            01/01/70 00:00      
   LFSR testbench            01/01/70 00:00      
      trouble with LFSR's            01/01/70 00:00      
         randomness            01/01/70 00:00      
         Not Random            01/01/70 00:00      
            not pseudorandom            01/01/70 00:00      
   LFSRs            01/01/70 00:00      
   Flowchart            01/01/70 00:00      
      flowchart of implementing a pRNG???            01/01/70 00:00      
         the whole issue            01/01/70 00:00      
            what is a good pRNG            01/01/70 00:00      
               a fun story about pseudorandom            01/01/70 00:00      
                  seed            01/01/70 00:00      
                     you are forghiven, it's bedtime in slova            01/01/70 00:00      
                        you are right, time to go sleep            01/01/70 00:00      
                           Code change            01/01/70 00:00      
                              Read the App Note            01/01/70 00:00      
                  Been Done            01/01/70 00:00      
                     I don't understand            01/01/70 00:00      
                        Do it....            01/01/70 00:00      
                        It's there for you to use!            01/01/70 00:00      
               the best pseudo random number generator            01/01/70 00:00      
                  pseudo?            01/01/70 00:00      
                     well..            01/01/70 00:00      
   Pattern Generator            01/01/70 00:00      
      as has been said many times            01/01/70 00:00      
      Posting Code - Make it 3            01/01/70 00:00      
      homework            01/01/70 00:00      
         NOOB            01/01/70 00:00      
            thanks Andy...            01/01/70 00:00      
               Quite so            01/01/70 00:00      
                  "hosed"            01/01/70 00:00      
                     Gone tits up, or gone Pete Tong            01/01/70 00:00      
         Not my Homework            01/01/70 00:00      
            whoever said that the ability to write e            01/01/70 00:00      
            No problemo            01/01/70 00:00      
            What does "working" mean?            01/01/70 00:00      
      Fibonacci/Galios Generator            01/01/70 00:00      
         Thank you            01/01/70 00:00      
   the hunt for pseudo not being pseudo            01/01/70 00:00      

Back to Subject List