Random number generator (RNG)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Random number generator (RNG)

1,502件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Thu Jan 16 18:36:45 MST 2014
Hi Everyone!

I am considering to use the Random number generator (RNG).

Please give the information to genarate the Random number>

Shiggy
0 件の賞賛
返信
4 返答(返信)

1,205件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Fri Jan 17 05:39:58 MST 2014
Hi Mc-san!

Thanks your kind and clear imformation.

You refer to the stripes of the introduced document, and create a code.
Probably, I think that the assembler of LPC1830 is used.
<---Since there was good code of C in an introduced a site, it will inprement it by C.

Thank you very much.

If possible, I want to get the random() noise(not 1 bit noise).
random noise is more than 16 bits, I think.

Shiggy
0 件の賞賛
返信

1,205件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Jan 16 21:06:57 MST 2014
Hi Shiggy,
I do not have code right now however you can take help from
http://en.wikipedia.org/wiki/Linear_feedback_shift_register
0 件の賞賛
返信

1,205件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by shiggy on Thu Jan 16 20:15:28 MST 2014
Hi mc-san!

Thanks your quick response.

The pseudorandom number is OK for my application.
I am considering to genarate the White Noise.

If possible, please show me code of LPCpresso.

Shiggy
0 件の賞賛
返信

1,205件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Jan 16 18:57:30 MST 2014
You can use LFSR as it is one of the less time consuming method. It will generate pseudorandom number though.If you are using RTC in your application you can use this time  as seed. Or may be two independent time source in your controller to get a seed value.
0 件の賞賛
返信