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

Back to Subject List

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


 
#112351 - Not my Homework
Responding to: ???'s previous message
Jan Waclawek said:
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


Hi Jan

In answer to your above reply. I took pattern generator out of a text book on 8051 microcontrollers. The writer of the book said it was tested and did in fact work. Being writer had many books on microcontrollers I beleived this would work as it was designed. I never said I wrote the source code for 89c2051.
I did get it run on my simulator with out errors. I just wanted to know why design so poorly.

Also I try to contact writer 3 months ago on his email address and voice mail which he never reply to me. After 6 trys on email and voice mail I gave up. Took his book sold it on ebay.
I then though I try 8052 for reason why source code did not work the way it should. Neil Kurzman told me use http://www.maxim-ic.com/appnotes....umber/1743 which I did change code to fit my application and it worked the way it should. But still wanted to know why the other code from text book was so bad. If none of members want tell me that ok too. That best I do to answer your question. That did not do my homework. I am not student. I worked with ttl,cmos,555 timer,
op amp and special chips for 20 years. I have only worked on
8051 chips for about 5 years on and off. So am not in programming league like most members on 8052 site. But I do enjoy working the 8051 product. I always though books were the best way to learn, but if the information in them is wrong it does not help reader to learn his subject. Jan sorry if pushed your buttons.


Best reguards,


Ralph







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