Post Created date
Issues with ATTINY2313 and 16x2 LCD with H44780 driver in my C program.
topstring and winner are not proper strings. They don't have null terminators.
Monday, 30 March 2015 - 05:21
Getting make.exe: *** No rule to make target `main.elf', needed by `elf'. Stop. when using "make all"
clawson wrote: When you issue "make" it's really an implied "make all". Not exactly. "make" uses the first target in the Makefile if one is not given on the command line. It's...
Tuesday, 24 March 2015 - 15:57
sqrt function for long variables
No, Koshchi's function works just fine with any unsigned 32-bit input, and it doesn't use any types bigger than uint32_t. The output will always fit in an unsigned 16-bit value,...
Saturday, 21 March 2015 - 17:21
problem with util/delay
You changed from pin C5 to C6. Was that intentional?
Saturday, 21 March 2015 - 17:05
sqrt function for long variables
65536 is one larger than the largest unsigned 16-bit value. Square that to get 4294967296. That's too big to fit in an unsigned 32-bit variable. So you'll end up taking the square...
Saturday, 21 March 2015 - 16:12
Bool, or not to Bool
awneil wrote: However, it's usually easy to isolate such dependencies into an "interface" layer - but having something like bool rely upon proprietary stuff scatters the...
Friday, 20 March 2015 - 15:03
Bool, or not to Bool
awneil wrote: IIRC, a bit is returned in the carry flag - so that probably is faster & saves space. Don't remember how bits get passed in. That sounds reasonable. I've used...
Thursday, 19 March 2015 - 21:31
Bool, or not to Bool
awneil wrote:   christop wrote: I doubt any compiler lets you pass a only single bit to or from a function (either as an argument or a return value).   Keil C51 does...
Thursday, 19 March 2015 - 19:18
Preemptive vs. Cooperative Multitasking
Brian Fairchild wrote:   clawson wrote:   You entirely sure about that? Apart from Kartman I don't see any evidence of others taking an interest in this?  ...
Thursday, 19 March 2015 - 19:03
sqrt function for long variables
Koshchi wrote: The routine I posted above I got ~630 for the max (for large numbers) and ~350 min (for small numbers). The average is about on par with what Cliff found for sqrt...
Thursday, 19 March 2015 - 18:10
Bool, or not to Bool
I use bool (which is really a macro defined in stdbool.h for the built-in _Bool type) all the time in C. If a function returns a true/false value, or takes a true/false value, a "...
Thursday, 19 March 2015 - 17:54
How to decode wav files?
An error of 2% in playback speed is easy to notice. Any decent sound editor program will let you change the sample rate to exactly 31250 Hz so you can play it back at the actual...
Tuesday, 17 March 2015 - 14:01