Post Created date
0.2 uA sleep with external watchdog wakeup
Torby wrote:Pretty impressive. And your 40106 hex inverter doesn't draw any more current than that? The hex inverter alone used "0.0 uA" when I set the supply voltage very low...
Friday, 13 September 2013 - 19:29
0.2 uA sleep with external watchdog wakeup
For comparison, the ATtiny45 data sheet indicates 4 uA power down current with internal watchdog, about 20 times as much, albeit with greater accuracy, probably. Yu-Shiang Lin,...
Friday, 13 September 2013 - 00:25
tiny, fast PRNG
When you seed with with s= one of 15 18 63 101 129 156 172 208 and a=96..138 you'll get a period of 55552. These are contiguous ranges of 43 seeds with good period. So you...
Wednesday, 7 November 2012 - 15:45
tiny, fast PRNG
Torby wrote:Um, I don't really know C very well, what does s^ mean? s=s+1; is the same as s+=1; so s^=s<<3; means s=s^(s<<3); And ^ is xor, as bob said.
Monday, 5 November 2012 - 02:38
change reset vector, program code in interrupt table
Wonderful. So simple. Thanks!
Friday, 30 September 2011 - 13:58
Random(ish) Number Generator
I like random numbers so I tried something: Subjected the numbers from 0..2**n to reversible operations: xor, rotate, add. An amateurish low bit symmetric cipher. It sorta works,...
Tuesday, 27 September 2011 - 01:22
self modifying bootloader
clawson wrote:Quote:But the loader (31 words) is much smaller than the bootsection (128 words) I was going to ask that very question - what's the point in writing a bootloader...
Wednesday, 21 September 2011 - 12:56
self modifying bootloader
Bootloader starts at say 3fb2. Flashend is 3fff (on atmega168). To get there I point the reset jump to 3fb2. To get to the application I jump to whereever the reset vector in the...
Wednesday, 21 September 2011 - 12:04
stack initialization / addressing mode rant
clawson wrote: Bootloader eh? Read this: https://www.avrfreaks.net/index.p... Ahh this thread. I've read some of it. Too long to read it all. Quote:It was a kind of competition to...
Wednesday, 21 September 2011 - 10:44
[TUT][SOFT] Recovering from a "locked out" AVR
Multivibrator from http://en.wikipedia.org/wiki/Multivibrator Oscillator and uC ground (negative supply) must be connected. For the multivibrator the clock output would be taken...
Tuesday, 20 September 2011 - 21:09
[TUT][SOFT] Recovering from a "locked out" AVR
A clock can be made with a NOT, NOR, NAND gate feeding its output via a resistor back to the input that has a capacitor to ground. Building an astable multivibrator with 2...
Tuesday, 20 September 2011 - 18:18
stack initialization / addressing mode rant
clawson wrote: (but we are talking about C programming here? if bytes are that tight why not go for Asm and take complete control of everything?) I use avr-gcc to compile/assemble...
Tuesday, 20 September 2011 - 17:37

Pages