Post Created date
Problem regardong USART COM using ATMEGA88
Visovian wrote: while (buffer[k] |= 0)Should be while (buffer[k] != 0) Incidentally, the first line happens to work because anything OR zero is unmodified, so if buffer[k] is...
Monday, 10 August 2015 - 18:23
GCC vs ASM code size - Help me close the gap
Note that code like this has undefined (or implementation defined at best) behavior: return( mmc_get_byte() + mmc_get_byte()<<8 );   C doesn't specify the order in...
Saturday, 1 August 2015 - 17:38
file opening and file reading in SD card
These lines immediately stood out: char buffer[15]; // ... char line[82]; /* Line buffer */ // ... sprintf(buffer, "%s", line);Why are you filling up a...
Thursday, 30 July 2015 - 21:54
Problem with pointer to struct field...
Looks like a cross-post here.   The same advice applies here. Post a short, self-contained, compilable, example that demonstrates the problem. I suspect the problem is...
Thursday, 9 July 2015 - 22:07
question about DDS synthesis RC filtering
joeymorin wrote: Exactly like I mentioned in post #36... including some pretty pictures! If I'm reading your post #36 correctly you're referring to amplitude quantization noise...
Tuesday, 7 July 2015 - 23:15
question about DDS synthesis RC filtering
I still believe the noise is caused by truncating the phase accumulator:   https://en.wikipedia.org/wiki/Numerically_controlled_oscillator#Phase_truncation_spurs   "...
Tuesday, 7 July 2015 - 22:20
UART RS232 Character Constant too long
clawson wrote:   Tuurbo46 wrote:        up to say 1020 from previous experience will fit in a byte.  But now not using a uart library or function and...
Tuesday, 7 July 2015 - 21:01
question about DDS synthesis RC filtering
Is your frequency sweep phase-coherent? That is, does each frequency start at the same phase that the previous frequency ended on? Also, DDS inherently has phase noise that is...
Saturday, 4 July 2015 - 22:05
question about DDS synthesis RC filtering
The sample rate of a DDS system can be very high, much higher than any other available audio source. The Commodore 64 DDS module (the SID chip), for example, had a 1 MHz sample...
Saturday, 4 July 2015 - 17:20
8 bit floating point arithmetic on atmega8535
You're in luck! The ATmega series all have hardware 8-bit multiply instructions (returning a 16-bit product) which makes it easier to implement floating-point multiplication. As...
Thursday, 2 July 2015 - 23:10
sending twos complement to a unsigned char.
joeymorin wrote: Just use bitfields: struct { int seven_bit_int : 7; } foo; . . . signed char bar; . . . bar = foo.seven_bit_int;The compiler will generate the appropriate...
Monday, 22 June 2015 - 14:12
sending twos complement to a unsigned char.
Ah, yes, I forgot the part where you need a positive value. Theusch's method should work.   I mentioned shifting and dividing because the shift puts the sign bit of the 7-bit...
Saturday, 20 June 2015 - 15:09

Pages