Re: [Mspgcc-users] Introduce Random Delay in Timer

2013-06-04 Thread ravim
Thank you for your response. That is what I needed! Thanks again :) -- View this message in context: http://msp430-gcc-users.1086195.n5.nabble.com/Introduce-Random-Delay-in-Timer-tp6703p6705.html Sent from the MSP430 gcc - Users mailing list archive at Nabble.com.

Re: [Mspgcc-users] Introduce Random Delay in Timer

2013-06-04 Thread Przemek Klosowski
Do you need a truly random delay or just a jitter on the average value? Truly random is actually tricky, and most applications are quite happy with a pseudorandom value. You can implement a deterministic but randomly wandering value simply by code like this: static int seed = 1234; ...