This 90 byte program produces White Noise from the ButterFly Speaker. I based my random number generator similar to the Linear Congruency Algorithm. You can
This versions of the 90 Hour Clock uses the more accurate 32,768Hz on-board crystal. By using a prescaler/divider of 128 and waiting for the clock to overflow
[FONT=Courier] Show time on 6 character LCD screen upto 90 hrs. [code] ;--------------------------------------------------; ; CLOCK.ASM for AVR BUTTERFLY
We set the system clock to 2MHz (the speed Butterflys are as shipped). If we set the timer0 prescaller to /1024 then use the overflow mode, that will give us