| blackelbowfoot ( @ 2009-03-24 21:26:00 |
how to lose weight
i'm talking about code weight, of course. :) sorry to disappoint those who thought i was writing about something non-technical for once, haha...
i've written what should function (if murphy doesn't have his say) as a simple boost regulator firmware for the attiny13a. what made this programming expedition nontrivial? well, the tiny13 only has 1k of flash memory. to cut down on code size, my code uses no delays or interrupts, and instead monitors the ADIF (analog to digital conversion interrupt flag) bit in one of the tiny13's ADC registers to check when a new conversion result is available. the entire program uses only 492 bytes of the allotted 1024, so i think all should be ok. (probably not enough space for a full PID controller though, lol!)
wow, i really had a field-day with the hyperlinks this time... :P
~ brad.
i'm talking about code weight, of course. :) sorry to disappoint those who thought i was writing about something non-technical for once, haha...
i've written what should function (if murphy doesn't have his say) as a simple boost regulator firmware for the attiny13a. what made this programming expedition nontrivial? well, the tiny13 only has 1k of flash memory. to cut down on code size, my code uses no delays or interrupts, and instead monitors the ADIF (analog to digital conversion interrupt flag) bit in one of the tiny13's ADC registers to check when a new conversion result is available. the entire program uses only 492 bytes of the allotted 1024, so i think all should be ok. (probably not enough space for a full PID controller though, lol!)
wow, i really had a field-day with the hyperlinks this time... :P
~ brad.