Post Created date
ADC using AVR
A better description of "what" you are trying to do instead of "how" you trying to do it would help. Why are you using an A/D input to read a "square wave" ? Is the peak of the...
Sunday, 11 March 2012 - 15:59
parity bit used as a start of datgram signal
It should be no problem reading the data format from your SeaTalk system. It will be much simpler to analyze the system as a 9 bit data format without parity (9th data bit set for...
Saturday, 3 March 2012 - 14:25
Being thrifty w/ Memory Usage
Try commenting out your _delay_ms() functions, then recompile. I suspect that a large amount of code is being used there.
Monday, 27 February 2012 - 02:06
How to read this serial data?
I took Image4 from the OP's post, inverted it (since he inverted it with a transistor), then divided up the signal into bit cells using the narrowest pulse as a reference. The...
Thursday, 23 February 2012 - 03:24
help please
A Vishay/Siliconix SI4466DY will handle 6 amps at room temperature continuously without a heatsink. Rds is specified with a gate drive all the way down to 2.5V. http://www.vishay....
Monday, 20 February 2012 - 01:23
Code improvment
Thanks Clawson. Your code segment is exactly what one would expect. But I wonder if your line of C code is biased. When you wrote your line of code, you grouped all the constants...
Thursday, 2 February 2012 - 13:44
Code improvment
Bob said: Quote:, but I never noticed that the compiler needed any help, because all my programs carefully removed expressions like that using gray matter before the compiler got...
Thursday, 2 February 2012 - 02:51
Code improvment
To be fair, ImageCraft v7.05 is not a 2012 compiler. It is 5 years old - maybe more. I would be interested in seeing some assembly code generated from other compilers (GCC, newer...
Wednesday, 1 February 2012 - 13:59
Code improvment
Although we may be getting off into the weeds here (not providing direct help to the OP), I decided to run an experiment with my C compiler (ImageCraft v7.05). "answer" is setup...
Wednesday, 1 February 2012 - 04:08
Code improvment
Quote:Do you actually know of a compiler that falls into that category? Often specifying 5 / 1024 / 0.01 is more self documenting about what the constant is than some anonymous...
Monday, 30 January 2012 - 01:12
Code improvment
To optimize performance, try to eliminate as many floating point operations as possible. This line of code has several floating point operations, and they are not necessary. (...
Sunday, 29 January 2012 - 15:39
Is this good coding?
Of course, everyone has their own style, but here is how I indent code. if (switchChannel == 3) { adc_result2 = adc_read(2); if (...
Thursday, 5 January 2012 - 00:53

Pages