Random number generator (RNG)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Random number generator (RNG)

1,506 次查看
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,209 次查看
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,209 次查看
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,209 次查看
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,209 次查看
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 项奖励
回复