Post Created date
Any neat sign extension tricks for 10-bit to 16-bit?
My general solution looks like this:     arg ^= 0x200;     arg += ( 0x0 ^ 0x8000 ) - ( 0x0 ^ 0x200 );     arg ^= 0x8000;   I...
Thursday, 7 May 2015 - 20:21
Any neat sign extension tricks for 10-bit to 16-bit?
I am beaten by the pig by one lousy clock cycle. Victory and honor is all yours theush.  
Thursday, 7 May 2015 - 19:59
Any neat sign extension tricks for 10-bit to 16-bit?
I guess we ended up in something like...   inline int16_t foo ( uint16_t arg ) {     return ( arg ^ 0x200 ) - 0x200; }  
Thursday, 7 May 2015 - 18:19
Anyone ever heard of a brushless tachometer?
The sens-coil only has two taps...just a guess, it's wound like a bifilar transformer?  
Monday, 4 May 2015 - 06:28
Sign Extending 10-bit signed value?
Some might prove to be a worthy of seeing other might not.
Thursday, 8 January 2015 - 19:46
LUFA mass storage demo udev rules (?) for Ubuntu
No extra rules was needed. I installed usbmont. The mounting is a lot slower that an ordinary USB memory. I am not totally sure that usbmount actually was required. Anyway it...
Sunday, 14 December 2014 - 20:27
A Cautionary (Bit-Setting) Tale
I never liked the design of header files with the purpose for use in a C-program that required the usage of the left shift operator in order to be useful. The source code becomes...
Saturday, 15 November 2014 - 19:31
A Cautionary (Bit-Setting) Tale
I never liked the design of header files with the purpose for use in a C-program that required the usage of the left shift operator in order to be useful. The source code becomes...
Saturday, 15 November 2014 - 19:31
Sign Extending 10-bit signed value?
By average I ment arithmetic mean.  Of course input data should allow arbitrary values just as if the input is a bit noisy real time AD-converted signal.  Would it be...
Friday, 7 November 2014 - 23:38
Sign Extending 10-bit signed value?
So here is an additional bonus weed end problem for you all. Find the optimal  solution to compute the average of 10 consecutive samples of the 10 bit signed numbers and give...
Friday, 7 November 2014 - 11:50
Sign Extending 10-bit signed value?
Cool solution. Edit: Seems like GCC (also avr-gcc) optimize my solution and this solution to to same 3 assembler instructions AVR, or 2 instructions on an IA64.
Saturday, 1 November 2014 - 06:24
Sign Extending 10-bit signed value?
I believe testing the sign bit, making conditional jumps and shifting in '1' had already been proposed earlier in the thread. Anyway since there is no concept of a data type like...
Friday, 24 October 2014 - 17:16

Pages