How do happen the same program to return different results? Are your external hardware in the same state after each seset. Do you leave your outputs the same. To me it sounds that some parts lose syncronisation. Do your external things...
Thursday, 16 June 2005 - 19:35
Detecting 425Hz ! A good way to find 425 Hz would be to run a Goertzel "filter" at 425*4 Hz =1900 Hz. Then you don't need to make a mul for each sample, only at the end.
Goertzel works fine on a...
Tuesday, 14 June 2005 - 22:03
Full Duplex Software UART The only (but big) problem is that you never know when you recieve a start bit. If you transmit at the same time you need two set of timeres.
I have maded a fullduplex uart in the...
Monday, 13 June 2005 - 19:02
this another IAR compiler bug ? To be ANSI C an int need to be able to hold a pointer. So the amount of memory set the size of a int and not that an AVR is 8bit.(a lot of ANSI compileres have memory models that...
how to calculate in assembler? Why not count for 200ms ?
To MUL whth 0.9 (or the same result) is easy MUL with 256*0.9 app. 230 and then add 0.5 for rounding (128) use only the high byte.
test: 30 * 230 +128 =...
better way possible? (code structure) I know the problem but if the range is 0 to 127 it works fine. And if the function is to call H0 64 times then call H1 64 times over and over again the skip way works fine you...
Wednesday, 8 June 2005 - 23:00
input feedback problem. Need an expert please. What is the V to ground when the AVR works but the read out is 0 RPM.
Depending of how the tach works you may need a pullup to 12V. Or try to use the 12V as the reference point to...
Wednesday, 8 June 2005 - 22:51
How to implement software reset?? First with normal use of the reset an outputpin can be used.
But normaly a CLI, stop timeres, set I/O to input etc, and then jmp to 0 will normaly but close enough to a reset.
Wednesday, 8 June 2005 - 22:29
Serial data transfer PC to AVR I like to use Delphi (you can download a free version) and then APRO (free download) and with that you have a very good tool.
Tuesday, 7 June 2005 - 22:44
playing with GPS Buy streets & trips with a GPS (on sale $99). It's has USB out, but the reviever it self is a 5V TTL signal out just wat you want for your AVR. NMEA 183 is 4800 BAUD, so for...
Are your external hardware in the same state after each seset. Do you leave your outputs the same. To me it sounds that some parts lose syncronisation. Do your external things...
A good way to find 425 Hz would be to run a Goertzel "filter" at 425*4 Hz =1900 Hz. Then you don't need to make a mul for each sample, only at the end. Goertzel works fine on a...
The only (but big) problem is that you never know when you recieve a start bit. If you transmit at the same time you need two set of timeres. I have maded a fullduplex uart in the...
To be ANSI C an int need to be able to hold a pointer. So the amount of memory set the size of a int and not that an AVR is 8bit.(a lot of ANSI compileres have memory models that...
If the bad value is noise I will like rhilton use a median filter (3 or 5 point). Need's not calc just compare's.
Why not count for 200ms ? To MUL whth 0.9 (or the same result) is easy MUL with 256*0.9 app. 230 and then add 0.5 for rounding (128) use only the high byte. test: 30 * 230 +128 =...
First you need to tell were you live. I'm an dane living in US and there is a big difference between EU and US !
I know the problem but if the range is 0 to 127 it works fine. And if the function is to call H0 64 times then call H1 64 times over and over again the skip way works fine you...
What is the V to ground when the AVR works but the read out is 0 RPM. Depending of how the tach works you may need a pullup to 12V. Or try to use the 12V as the reference point to...
First with normal use of the reset an outputpin can be used. But normaly a CLI, stop timeres, set I/O to input etc, and then jmp to 0 will normaly but close enough to a reset.
I like to use Delphi (you can download a free version) and then APRO (free download) and with that you have a very good tool.
Buy streets & trips with a GPS (on sale $99). It's has USB out, but the reviever it self is a 5V TTL signal out just wat you want for your AVR. NMEA 183 is 4800 BAUD, so for...
Pages