Post Created date
Time taken for a mathematical operation
somehow i always thinking of code optimization during development. We can always decide, if you need speed then you loss the space (hence using look up table), and vice versa with...
Saturday, 2 July 2011 - 10:08
[TUT] [SOFT] How to install JTAGICE mkII on Windows 7 x64
Mr_CookiePants wrote:So i have a problem.... my avrisp mkII doesnt work because the drive message is Device couldnt start (CODE 10) so whats the problem and how can i solve it? i...
Wednesday, 17 March 2010 - 07:23
Volatile problems
maybe it should be do { } while(!wakeup)
Tuesday, 27 October 2009 - 15:14
X * 1/Y != X/Y
in my style, i prefer integer calculation than float, so i'd rather do this: X = X * 1000 X = X / Y then put a dot (or comma) in between the first and the second digit....
Tuesday, 27 October 2009 - 14:43
why do these two different?
like this: DAC = (uint32_t) 255*(dist-zero)/(span-zero); yup, this works great! Thanks
Wednesday, 24 September 2008 - 02:47
why do these two different?
should i change all the variable type to 32bit?
Wednesday, 24 September 2008 - 02:19
Switching a relay with an AVR
If you don't want to provide another voltage source, you can use solid state relay (TRIAC), bear in mind to drive TRIAC indirectly using opto-TRIAC to keep the microcontroller's...
Monday, 14 July 2008 - 10:27
Disabling External Interrupts from within corresponding ISR
Maybe in the future, if there are presence in that kind of code, the compiler should know that something is not right and generate a warning signal...
Saturday, 28 June 2008 - 06:24
strange wireless problem (433MHz)
Shouldn't you need to wait for the serial data to receive completely before doing this ontvangen = UDR1; What PWM mode do you set? for driving motor usually i use Phase...
Saturday, 28 June 2008 - 05:47
ADMUX |= (0 << REFS0); should be ADMUX &= ~(1 << REFS0); This seems not right while (1) { val = ReadADC(); if (val > 2048...
Saturday, 28 June 2008 - 05:39
measuring pulse width input on PIND
Usually I still use timer for measuring pulse width signal. uint16_t measure(uint8_t PINx) { do { // Init timer as suitable for your need init_timer1(); // wait here...
Friday, 27 June 2008 - 02:01
AT90USBKEY project suggestions
You are just newly know what is a car and want to drive a Ferrari. :shock: Why don't you try something simpler and maturing your AVR programming experience. USB projects using...
Monday, 23 June 2008 - 03:35