Post Created date
Looking for fast algorithm to count 'leading zero'.
JohanEkdahl wrote:If it looks like a troll, and walks like a troll... Then its probably from lund? :lol: Just had to implement it. uint16 in = ?; int cnt = 0; if((0xFF00...
Mon. Apr 6, 2009 - 05:08 PM
Looking for fast algorithm to count 'leading zero'.
You could try a divide an concor tactic. check lower 8 bits if they are 0 shift down 8bits and 8 to counter check lower 4 bits if they are 0 shift down 4 bits and add 4 to counter...
Mon. Apr 6, 2009 - 01:16 PM
Project ideas for a mechatronics class
There is a thread out here with a name like "pictures of your projects" Try to find it, you may get inspired. :D
Mon. Mar 9, 2009 - 11:27 AM
Uart communication
TX_char(RX_PC0, 1); Should this not be TX_char(RX_PC0(), 1); or you are casting a function pointer to char? :wink:
Wed. Mar 26, 2008 - 03:32 PM
Adobe Flash on AVR32
I don't think there is a ready solution for that. Probably you will be forced to speak to Adobe and they could port it for an insaly large sum. Or posibly there is an open sorce...
Tue. Mar 25, 2008 - 04:48 PM
How random are bounces?
Jepael wrote: I would use the debounced (filtered) button state to start and stop measuring. Perhaps start a 8 or 16 bit timer at a prescaler of 1 to get the maximum out of it (...
Fri. Sep 14, 2007 - 02:48 PM
How random are bounces?
First let me point out a point made by XKCD.com getRandomNumber(){return 4;/*its random from a 6 sided die*/} Cracks me up... Actualy my point is with 2 that you might get random...
Fri. Sep 14, 2007 - 02:16 PM
Overclocking
Just pointing out about Atmel it might be possible to get them to test AVR:s at a highter speed so you could get AVR:s tested for 16.4MHz but I expect you will haveto pay thrue...
Wed. Sep 12, 2007 - 07:33 AM
Overclocking
There has been some general discussion about overclocking... And generaly stay away from it, there have been exampels of projects with 50% overclocking that work ok but there is...
Thu. Sep 6, 2007 - 08:54 AM
EEPROM
Due to a bug in the AVR hardware you should never use EEPROM adress 0 as it may be corupted when powering down. Try an other address, might help. Best of luck.
Thu. Aug 16, 2007 - 10:06 AM
[perverse code] speedchange during uart transmition
Whell, my point was that I whould need to change the settings for the other HW blocks at the same time as to preserve the comunication. Ofcorse its posible to design around it so...
Fri. Apr 27, 2007 - 10:06 AM
[TUT] [C] GCC and the PROGMEM Attribute
1. Yes, no worries. 2. Agreed, mostly it's an intresting question when doing somthing verry timeing critical. 3. Will do. Remember "Magic is just a technology that we have yet to...
Fri. Apr 27, 2007 - 08:23 AM

Pages