Searching \ for ' [PIC]Random Noise 16C84' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'Random Noise 16C84'.

No exact or substring matches. trying for part
PICList Thread
'[PICLIST] [PIC]Random Noise 16C84'
2001\10\16@060639 by 29ycmFs?=


I have to do a Ramdon noise generator with PIC 16C84 using MPLAB to
programme the microcontroller.

Where do I can find the one random noise program?


Descargue GRATUITAMENTE MSN Explorer en

-- hint: The PICList is archived three different
ways.  See for details.

2001\10\16@110733 by David P. Harris

picon face
You must have just missed it earlier this month:

Hi Antonio,

Looking at your Pseudo-Random Generator, there is an easier way to do this
in software. It produces an equivalently random stream of bits. Its called
the "Galois" Configuration where the bits are manipulated like:

// define our mask for bits 0, 1, 2, 4, 6 and 31
#define MASK 0x80000057

int Clock_LFSR() {
       // if we are going to output a 1, we need to xor the mask into
       // the register to do the feedback.
       if( ShiftRegister & 0x00000001 ) {
               // XOR the feedback taps into the register and shift in a 1

               ShiftRegister = ((ShiftRegister ^ MASK) >> 1) | 0x80000000;

               return 1;       // output 1
       } else {
               ShiftRegister >>= 1;    // shift in a 0
               return 0;

It will run a bit quicker because you don't need to extract all the
individual bits and you can use any maximal feedback polynomial you want.
And you can extend this to any size shift register (I have a large list of
polynomials to use that goes up to a 9690 bit register :) it can be found
"Applied Cryptography" by Schneier, page 376).

Ashley Roll
Digital Nemesis Pty Ltd
Mobile: +61 (0)417 705 718

David Expssito Corral wrote:

{Quote hidden}

-- hint: The PICList is archived three different
ways.  See for details.

More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...